Skip to content

Commit

Permalink
remove showCompileCommands
Browse files Browse the repository at this point in the history
  • Loading branch information
michelleangela committed Sep 13, 2023
1 parent 5aaf739 commit 6ae8189
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 16 deletions.
4 changes: 2 additions & 2 deletions Extension/src/LanguageServer/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,7 @@ export interface Client {
resetDatabase(): void;
deactivate(): void;
promptSelectCompiler(sender?: any): Promise<void>;
promptSelectIntelliSenseConfiguration(command: boolean, sender?: any): Promise<void>;
promptSelectIntelliSenseConfiguration(sender?: any): Promise<void>;
rescanCompilers(sender?: any): Promise<void>;
pauseParsing(): void;
resumeParsing(): void;
Expand Down Expand Up @@ -3634,7 +3634,7 @@ class NullClient implements Client {
selectionChanged(selection: Range): void { }
resetDatabase(): void { }
promptSelectCompiler(sender?: any): Promise<void> { return Promise.resolve(); }
promptSelectIntelliSenseConfiguration(command: boolean, sender?: any): Promise<void> { return Promise.resolve(); }
promptSelectIntelliSenseConfiguration(sender?: any): Promise<void> { return Promise.resolve(); }
rescanCompilers(sender?: any): Promise<void> { return Promise.resolve(); }
deactivate(): void { }
pauseParsing(): void { }
Expand Down
2 changes: 1 addition & 1 deletion Extension/src/LanguageServer/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ async function onRescanCompilers(sender?: any): Promise<void> {

async function selectIntelliSenseConfiguration(sender?: any): Promise<void> {
await clients.ActiveClient.ready;
return clients.ActiveClient.promptSelectIntelliSenseConfiguration(true, sender);
return clients.ActiveClient.promptSelectIntelliSenseConfiguration(sender);
}

async function onSelectConfiguration(): Promise<void> {
Expand Down
13 changes: 0 additions & 13 deletions Extension/src/LanguageServer/ui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -580,19 +580,6 @@ export class LanguageStatusUI {
return selection ? selection.key : undefined;
}

public async showCompileCommands(paths: string[]): Promise<number> {
const options: vscode.QuickPickOptions = {};
options.placeHolder = localize("select.compile.commands", "Select a compile_commands.json...");

const items: IndexableQuickPickItem[] = [];
for (let i: number = 0; i < paths.length; i++) {
items.push({ label: paths[i], description: "", index: i });
}

const selection: IndexableQuickPickItem | undefined = await vscode.window.showQuickPick(items, options);
return selection ? selection.index : -1;
}

public async showWorkspaces(workspaceNames: { name: string; key: string }[]): Promise<string> {
const options: vscode.QuickPickOptions = {};
options.placeHolder = localize("select.workspace", "Select a workspace folder...");
Expand Down

0 comments on commit 6ae8189

Please sign in to comment.