Rename command

This commit is contained in:
Nora
2023-06-26 08:05:10 +00:00
parent ff41e50954
commit 2b48991494
4 changed files with 6 additions and 11 deletions

View File

@@ -502,7 +502,7 @@
"title": "CodeQL: Copy Version Information"
},
{
"command": "codeQL.runLocalQueryFromQueriesPanel",
"command": "codeQLQueries.runLocalQueryFromQueriesPanel",
"title": "Run local query",
"icon": "$(run)"
},
@@ -1101,7 +1101,7 @@
"when": "viewItem == remoteResultsItem"
},
{
"command": "codeQL.runLocalQueryFromQueriesPanel",
"command": "codeQLQueries.runLocalQueryFromQueriesPanel",
"group": "inline",
"when": "view == codeQLQueries && viewItem == queryFile && codeQL.currentDatabaseItem"
},
@@ -1165,7 +1165,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": TreeViewContextSingleSelectionCommandFunction<QueryTreeViewItem>;
"codeQLQueries.runLocalQueryFromQueriesPanel": TreeViewContextSingleSelectionCommandFunction<QueryTreeViewItem>;
"codeQL.runQueries": ExplorerSelectionCommandFunction<Uri>;
"codeQL.quickEval": (uri: Uri) => Promise<void>;
"codeQL.quickEvalContextEditor": (uri: Uri) => Promise<void>;

View File

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

View File

@@ -39,6 +39,7 @@ describe("commands declared in package.json", () => {
commandTitles[command] = title!;
} else if (
command.match(/^codeQLDatabases\./) ||
command.match(/^codeQLQueries\./) ||
command.match(/^codeQLVariantAnalysisRepositories\./) ||
command.match(/^codeQLQueryHistory\./) ||
command.match(/^codeQLAstViewer\./) ||
@@ -65,12 +66,6 @@ describe("commands declared in package.json", () => {
contribContextMenuCmds.add(command);
});
menus["view/item/context"].forEach((commandDecl: CmdDecl) => {
const { command } = commandDecl;
paletteCmds.delete(command);
scopedCmds.add(command);
});
debuggers.forEach((debuggerDecl: DebuggerDecl) => {
if (debuggerDecl.variables !== undefined) {
for (const command of Object.values(debuggerDecl.variables)) {