Skip to content

Commit 2b48991

Browse files
committed
Rename command
1 parent ff41e50 commit 2b48991

File tree

4 files changed

+6
-11
lines changed

4 files changed

+6
-11
lines changed

extensions/ql-vscode/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@
502502
"title": "CodeQL: Copy Version Information"
503503
},
504504
{
505-
"command": "codeQL.runLocalQueryFromQueriesPanel",
505+
"command": "codeQLQueries.runLocalQueryFromQueriesPanel",
506506
"title": "Run local query",
507507
"icon": "$(run)"
508508
},
@@ -1101,7 +1101,7 @@
11011101
"when": "viewItem == remoteResultsItem"
11021102
},
11031103
{
1104-
"command": "codeQL.runLocalQueryFromQueriesPanel",
1104+
"command": "codeQLQueries.runLocalQueryFromQueriesPanel",
11051105
"group": "inline",
11061106
"when": "view == codeQLQueries && viewItem == queryFile && codeQL.currentDatabaseItem"
11071107
},
@@ -1165,7 +1165,7 @@
11651165
"when": "resourceLangId == ql && resourceExtname == .ql"
11661166
},
11671167
{
1168-
"command": "codeQL.runLocalQueryFromQueriesPanel",
1168+
"command": "codeQLQueries.runLocalQueryFromQueriesPanel",
11691169
"when": "false"
11701170
},
11711171
{

extensions/ql-vscode/src/common/commands.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ export type LocalQueryCommands = {
130130
"codeQL.runQueryOnMultipleDatabasesContextEditor": (
131131
uri?: Uri,
132132
) => Promise<void>;
133-
"codeQL.runLocalQueryFromQueriesPanel": TreeViewContextSingleSelectionCommandFunction<QueryTreeViewItem>;
133+
"codeQLQueries.runLocalQueryFromQueriesPanel": TreeViewContextSingleSelectionCommandFunction<QueryTreeViewItem>;
134134
"codeQL.runQueries": ExplorerSelectionCommandFunction<Uri>;
135135
"codeQL.quickEval": (uri: Uri) => Promise<void>;
136136
"codeQL.quickEvalContextEditor": (uri: Uri) => Promise<void>;

extensions/ql-vscode/src/local-queries/local-queries.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export class LocalQueries extends DisposableObject {
101101
this.runQueryOnMultipleDatabases.bind(this),
102102
"codeQL.runQueryOnMultipleDatabasesContextEditor":
103103
this.runQueryOnMultipleDatabases.bind(this),
104-
"codeQL.runLocalQueryFromQueriesPanel":
104+
"codeQLQueries.runLocalQueryFromQueriesPanel":
105105
this.runQueryFromQueriesPanel.bind(this),
106106
"codeQL.runQueries": createMultiSelectionCommand(
107107
this.runQueries.bind(this),

extensions/ql-vscode/test/unit-tests/command-lint.test.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ describe("commands declared in package.json", () => {
3939
commandTitles[command] = title!;
4040
} else if (
4141
command.match(/^codeQLDatabases\./) ||
42+
command.match(/^codeQLQueries\./) ||
4243
command.match(/^codeQLVariantAnalysisRepositories\./) ||
4344
command.match(/^codeQLQueryHistory\./) ||
4445
command.match(/^codeQLAstViewer\./) ||
@@ -65,12 +66,6 @@ describe("commands declared in package.json", () => {
6566
contribContextMenuCmds.add(command);
6667
});
6768

68-
menus["view/item/context"].forEach((commandDecl: CmdDecl) => {
69-
const { command } = commandDecl;
70-
paletteCmds.delete(command);
71-
scopedCmds.add(command);
72-
});
73-
7469
debuggers.forEach((debuggerDecl: DebuggerDecl) => {
7570
if (debuggerDecl.variables !== undefined) {
7671
for (const command of Object.values(debuggerDecl.variables)) {

0 commit comments

Comments
 (0)