From 6ae81899c76d5d27496cc964be72d08c3436ec23 Mon Sep 17 00:00:00 2001 From: Michelle Matias <38734287+michelleangela@users.noreply.github.com> Date: Tue, 12 Sep 2023 17:45:44 -0700 Subject: [PATCH] remove showCompileCommands --- Extension/src/LanguageServer/client.ts | 4 ++-- Extension/src/LanguageServer/extension.ts | 2 +- Extension/src/LanguageServer/ui.ts | 13 ------------- 3 files changed, 3 insertions(+), 16 deletions(-) diff --git a/Extension/src/LanguageServer/client.ts b/Extension/src/LanguageServer/client.ts index 2ff96d8b66..7fa3cbbc86 100644 --- a/Extension/src/LanguageServer/client.ts +++ b/Extension/src/LanguageServer/client.ts @@ -764,7 +764,7 @@ export interface Client { resetDatabase(): void; deactivate(): void; promptSelectCompiler(sender?: any): Promise; - promptSelectIntelliSenseConfiguration(command: boolean, sender?: any): Promise; + promptSelectIntelliSenseConfiguration(sender?: any): Promise; rescanCompilers(sender?: any): Promise; pauseParsing(): void; resumeParsing(): void; @@ -3634,7 +3634,7 @@ class NullClient implements Client { selectionChanged(selection: Range): void { } resetDatabase(): void { } promptSelectCompiler(sender?: any): Promise { return Promise.resolve(); } - promptSelectIntelliSenseConfiguration(command: boolean, sender?: any): Promise { return Promise.resolve(); } + promptSelectIntelliSenseConfiguration(sender?: any): Promise { return Promise.resolve(); } rescanCompilers(sender?: any): Promise { return Promise.resolve(); } deactivate(): void { } pauseParsing(): void { } diff --git a/Extension/src/LanguageServer/extension.ts b/Extension/src/LanguageServer/extension.ts index 0d08899f1b..9425fd5750 100644 --- a/Extension/src/LanguageServer/extension.ts +++ b/Extension/src/LanguageServer/extension.ts @@ -537,7 +537,7 @@ async function onRescanCompilers(sender?: any): Promise { async function selectIntelliSenseConfiguration(sender?: any): Promise { await clients.ActiveClient.ready; - return clients.ActiveClient.promptSelectIntelliSenseConfiguration(true, sender); + return clients.ActiveClient.promptSelectIntelliSenseConfiguration(sender); } async function onSelectConfiguration(): Promise { diff --git a/Extension/src/LanguageServer/ui.ts b/Extension/src/LanguageServer/ui.ts index c6b32d145b..e162438dfc 100644 --- a/Extension/src/LanguageServer/ui.ts +++ b/Extension/src/LanguageServer/ui.ts @@ -580,19 +580,6 @@ export class LanguageStatusUI { return selection ? selection.key : undefined; } - public async showCompileCommands(paths: string[]): Promise { - 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 { const options: vscode.QuickPickOptions = {}; options.placeHolder = localize("select.workspace", "Select a workspace folder...");