From ce0b25feae469d7efd4f6aeef477f4dc6fb1213a Mon Sep 17 00:00:00 2001 From: reito Date: Wed, 13 Nov 2024 11:47:30 +0800 Subject: [PATCH] fix: unify naming --- extensions/ql-vscode/package.json | 2 +- extensions/ql-vscode/src/common/commands.ts | 2 +- extensions/ql-vscode/src/databases/local-databases-ui.ts | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/extensions/ql-vscode/package.json b/extensions/ql-vscode/package.json index a983d94f0f5..d441b85de29 100644 --- a/extensions/ql-vscode/package.json +++ b/extensions/ql-vscode/package.json @@ -840,7 +840,7 @@ "title": "CodeQL: Choose Database from Folder" }, { - "command": "codeQL.chooseMultipleDatabaseFolder", + "command": "codeQL.chooseDatabaseFoldersParent", "title": "CodeQL: Choose Folder to import all databases contained in it" }, { diff --git a/extensions/ql-vscode/src/common/commands.ts b/extensions/ql-vscode/src/common/commands.ts index afe36d3b24d..14d173070f3 100644 --- a/extensions/ql-vscode/src/common/commands.ts +++ b/extensions/ql-vscode/src/common/commands.ts @@ -211,7 +211,7 @@ export type LanguageSelectionCommands = { export type LocalDatabasesCommands = { // Command palette commands "codeQL.chooseDatabaseFolder": () => Promise; - "codeQL.chooseMultipleDatabaseFolder": () => Promise; + "codeQL.chooseDatabaseFoldersParent": () => Promise; "codeQL.chooseDatabaseArchive": () => Promise; "codeQL.chooseDatabaseInternet": () => Promise; "codeQL.chooseDatabaseGithub": () => Promise; diff --git a/extensions/ql-vscode/src/databases/local-databases-ui.ts b/extensions/ql-vscode/src/databases/local-databases-ui.ts index 6263475615f..b0484a57093 100644 --- a/extensions/ql-vscode/src/databases/local-databases-ui.ts +++ b/extensions/ql-vscode/src/databases/local-databases-ui.ts @@ -269,8 +269,8 @@ export class DatabaseUI extends DisposableObject { "codeQL.getCurrentDatabase": this.handleGetCurrentDatabase.bind(this), "codeQL.chooseDatabaseFolder": this.handleChooseDatabaseFolderFromPalette.bind(this), - "codeQL.chooseMultipleDatabaseFolder": - this.handleChooseMultipleDatabaseFolderFromPalette.bind(this), + "codeQL.chooseDatabaseFoldersParent": + this.handleChooseDatabaseFoldersParentFromPalette.bind(this), "codeQL.chooseDatabaseArchive": this.handleChooseDatabaseArchiveFromPalette.bind(this), "codeQL.chooseDatabaseInternet": @@ -363,7 +363,7 @@ export class DatabaseUI extends DisposableObject { ); } - private async handleChooseMultipleDatabaseFolderFromPalette(): Promise { + private async handleChooseDatabaseFoldersParentFromPalette(): Promise { return withProgress( async (progress) => { await this.chooseDatabasesParentFolder(progress);