rename commands to match linter

This commit is contained in:
Robert
2023-06-21 15:54:25 +01:00
committed by Nora
parent f25d7baa56
commit 7409fe8a56
5 changed files with 7 additions and 6 deletions

View File

@@ -406,8 +406,8 @@
"title": "CodeQL: Run Query on Selected Database"
},
{
"command": "codeQL.runLocalQueryFromQueriesPanel",
"title": "CodeQL: Run Query on Selected Database"
"command": "codeQLQueries.runLocalQueryFromQueriesPanel",
"title": "Run Query on Selected Database"
},
{
"command": "codeQL.debugQuery",
@@ -1169,7 +1169,7 @@
"when": "resourceLangId == ql && resourceExtname == .ql"
},
{
"command": "codeQL.runLocalQueryFromQueriesPanel",
"command": "codeQLQueries.runLocalQueryFromQueriesPanel",
"when": "false"
},
{

View File

@@ -130,7 +130,7 @@ export type LocalQueryCommands = {
"codeQL.runQueryOnMultipleDatabasesContextEditor": (
uri?: Uri,
) => Promise<void>;
"codeQL.runLocalQueryFromQueriesPanel": (uri?: Uri) => Promise<void>;
"codeQLQueries.runLocalQueryFromQueriesPanel": (uri?: Uri) => Promise<void>;
"codeQL.runQueries": ExplorerSelectionCommandFunction<Uri>;
"codeQL.quickEval": (uri: Uri) => Promise<void>;
"codeQL.quickEvalContextEditor": (uri: Uri) => Promise<void>;

View File

@@ -100,7 +100,7 @@ export class LocalQueries extends DisposableObject {
this.runQueryOnMultipleDatabases.bind(this),
"codeQL.runQueryOnMultipleDatabasesContextEditor":
this.runQueryOnMultipleDatabases.bind(this),
"codeQL.runLocalQueryFromQueriesPanel": this.runQuery.bind(this),
"codeQLQueries.runLocalQueryFromQueriesPanel": this.runQuery.bind(this),
"codeQL.runQueries": createMultiSelectionCommand(
this.runQueries.bind(this),
),

View File

@@ -31,7 +31,7 @@ export class QueriesPanel extends DisposableObject {
queryTreeViewItem: QueryTreeViewItem,
): Promise<void> {
await this.app.queryServerCommands.execute(
"codeQL.runLocalQueryFromQueriesPanel",
"codeQLQueries.runLocalQueryFromQueriesPanel",
vscode.Uri.parse(queryTreeViewItem.path),
);
}

View File

@@ -41,6 +41,7 @@ describe("commands declared in package.json", () => {
command.match(/^codeQLDatabases\./) ||
command.match(/^codeQLVariantAnalysisRepositories\./) ||
command.match(/^codeQLQueryHistory\./) ||
command.match(/^codeQLQueries\./) ||
command.match(/^codeQLAstViewer\./) ||
command.match(/^codeQLEvalLogViewer\./) ||
command.match(/^codeQLTests\./)