Skip to content

Commit b6df591

Browse files
committed
Split codeQL.goto command
1 parent bf9eb24 commit b6df591

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

extensions/ql-vscode/package.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -828,6 +828,11 @@
828828
"title": "CodeQL: Go to QL Code",
829829
"enablement": "codeql.hasQLSource"
830830
},
831+
{
832+
"command": "codeQL.gotoQLContextEditor",
833+
"title": "CodeQL: Go to QL Code",
834+
"enablement": "codeql.hasQLSource"
835+
},
831836
{
832837
"command": "codeQL.openDataExtensionsEditor",
833838
"title": "CodeQL: Open Data Extensions Editor"
@@ -1466,6 +1471,10 @@
14661471
{
14671472
"command": "codeQLTests.acceptOutputContextTestItem",
14681473
"when": "false"
1474+
},
1475+
{
1476+
"command": "codeQL.gotoQLContextEditor",
1477+
"when": "false"
14691478
}
14701479
],
14711480
"editor/context": [
@@ -1514,7 +1523,7 @@
15141523
"when": "resourceExtname == .qhelp && isWorkspaceTrusted"
15151524
},
15161525
{
1517-
"command": "codeQL.gotoQL",
1526+
"command": "codeQL.gotoQLContextEditor",
15181527
"when": "editorLangId == ql-summary && config.codeQL.canary"
15191528
}
15201529
]

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,7 @@ export type EvalLogViewerCommands = {
299299

300300
export type SummaryLanguageSupportCommands = {
301301
"codeQL.gotoQL": () => Promise<void>;
302+
"codeQL.gotoQLContextEditor": () => Promise<void>;
302303
};
303304

304305
export type TestUICommands = {

extensions/ql-vscode/src/log-insights/summary-language-support.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ export class SummaryLanguageSupport extends DisposableObject {
7878
public getCommands(): SummaryLanguageSupportCommands {
7979
return {
8080
"codeQL.gotoQL": this.handleGotoQL.bind(this),
81+
"codeQL.gotoQLContextEditor": this.handleGotoQL.bind(this),
8182
};
8283
}
8384

0 commit comments

Comments
 (0)