Split up codeQLQueryHistory.openQuery command
This commit is contained in:
@@ -544,7 +544,12 @@
|
|||||||
"title": "CodeQL: Check for CLI Updates"
|
"title": "CodeQL: Check for CLI Updates"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"command": "codeQLQueryHistory.openQuery",
|
"command": "codeQLQueryHistory.openQueryTitleMenu",
|
||||||
|
"title": "View Query",
|
||||||
|
"icon": "$(edit)"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"command": "codeQLQueryHistory.openQueryContextMenu",
|
||||||
"title": "View Query",
|
"title": "View Query",
|
||||||
"icon": "$(edit)"
|
"icon": "$(edit)"
|
||||||
},
|
},
|
||||||
@@ -751,7 +756,7 @@
|
|||||||
"group": "navigation"
|
"group": "navigation"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"command": "codeQLQueryHistory.openQuery",
|
"command": "codeQLQueryHistory.openQueryTitleMenu",
|
||||||
"when": "view == codeQLQueryHistory",
|
"when": "view == codeQLQueryHistory",
|
||||||
"group": "navigation"
|
"group": "navigation"
|
||||||
},
|
},
|
||||||
@@ -858,7 +863,7 @@
|
|||||||
"group": "inline"
|
"group": "inline"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"command": "codeQLQueryHistory.openQuery",
|
"command": "codeQLQueryHistory.openQueryContextMenu",
|
||||||
"group": "2_queryHistory@0",
|
"group": "2_queryHistory@0",
|
||||||
"when": "view == codeQLQueryHistory"
|
"when": "view == codeQLQueryHistory"
|
||||||
},
|
},
|
||||||
@@ -1165,7 +1170,11 @@
|
|||||||
"when": "false"
|
"when": "false"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"command": "codeQLQueryHistory.openQuery",
|
"command": "codeQLQueryHistory.openQueryTitleMenu",
|
||||||
|
"when": "false"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"command": "codeQLQueryHistory.openQueryContextMenu",
|
||||||
"when": "false"
|
"when": "false"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -204,7 +204,13 @@ export class QueryHistoryManager extends DisposableObject {
|
|||||||
void extLogger.log("Registering query history panel commands.");
|
void extLogger.log("Registering query history panel commands.");
|
||||||
this.push(
|
this.push(
|
||||||
commandRunner(
|
commandRunner(
|
||||||
"codeQLQueryHistory.openQuery",
|
"codeQLQueryHistory.openQueryTitleMenu",
|
||||||
|
this.handleOpenQuery.bind(this),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
this.push(
|
||||||
|
commandRunner(
|
||||||
|
"codeQLQueryHistory.openQueryContextMenu",
|
||||||
this.handleOpenQuery.bind(this),
|
this.handleOpenQuery.bind(this),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user