Skip to content

Commit 46f80ef

Browse files
committed
Rename in strings.
1 parent 05a7d93 commit 46f80ef

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

extensions/ql-vscode/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -943,7 +943,7 @@
943943
"enablement": "codeql.hasQLSource"
944944
},
945945
{
946-
"command": "codeQL.openDataExtensionsEditor",
946+
"command": "codeQL.openModelEditor",
947947
"title": "CodeQL: Open CodeQL Model Editor"
948948
},
949949
{
@@ -1415,7 +1415,7 @@
14151415
"when": "false"
14161416
},
14171417
{
1418-
"command": "codeQL.openDataExtensionsEditor",
1418+
"command": "codeQL.openModelEditor",
14191419
"when": "config.codeQL.canary && config.codeQL.dataExtensions.editor"
14201420
},
14211421
{
@@ -1763,15 +1763,15 @@
17631763
{
17641764
"id": "codeQLMethodsUsage",
17651765
"name": "CodeQL Methods Usage",
1766-
"when": "config.codeQL.canary && codeql.dataExtensionsEditorOpen"
1766+
"when": "config.codeQL.canary && codeql.modelEditorOpen"
17671767
}
17681768
],
17691769
"explorer": [
17701770
{
17711771
"type": "webview",
17721772
"id": "codeQLMethodModeling",
17731773
"name": "CodeQL Method Modeling",
1774-
"when": "config.codeQL.canary && config.codeQL.modelEditor.methodModelingView && codeql.dataExtensionsEditorOpen"
1774+
"when": "config.codeQL.canary && config.codeQL.modelEditor.methodModelingView && codeql.modelEditorOpen"
17751775
}
17761776
]
17771777
},

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,8 +303,8 @@ export type PackagingCommands = {
303303
};
304304

305305
export type ModelEditorCommands = {
306-
"codeQL.openDataExtensionsEditor": () => Promise<void>;
307-
"codeQLDataExtensionsEditor.jumpToUsageLocation": (
306+
"codeQL.openModelEditor": () => Promise<void>;
307+
"codeQLModelEditor.jumpToUsageLocation": (
308308
usage: Usage,
309309
databaseItem: DatabaseItem,
310310
) => Promise<void>;

extensions/ql-vscode/src/model-editor/methods-usage/methods-usage-data-provider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export class MethodsUsageDataProvider
7979
collapsibleState: TreeItemCollapsibleState.None,
8080
command: {
8181
title: "Show usage",
82-
command: "codeQLDataExtensionsEditor.jumpToUsageLocation",
82+
command: "codeQLModelEditor.jumpToUsageLocation",
8383
arguments: [item, this.databaseItem],
8484
},
8585
iconPath: new ThemeIcon("error", new ThemeColor("errorForeground")),

extensions/ql-vscode/src/model-editor/model-editor-module.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export class ModelEditorModule extends DisposableObject {
8383

8484
public getCommands(): ModelEditorCommands {
8585
return {
86-
"codeQL.openDataExtensionsEditor": async () => {
86+
"codeQL.openModelEditor": async () => {
8787
const db = this.databaseManager.currentDatabaseItem;
8888
if (!db) {
8989
void showAndLogErrorMessage(this.app.logger, "No database selected");
@@ -164,7 +164,7 @@ export class ModelEditorModule extends DisposableObject {
164164
},
165165
);
166166
},
167-
"codeQLDataExtensionsEditor.jumpToUsageLocation": async (
167+
"codeQLModelEditor.jumpToUsageLocation": async (
168168
usage: Usage,
169169
databaseItem: DatabaseItem,
170170
) => {

extensions/ql-vscode/src/model-editor/model-editor-view.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ export class ModelEditorView extends AbstractWebview<
116116
// so we want to check if there are any others still open.
117117
void this.app.commands.execute(
118118
"setContext",
119-
"codeql.dataExtensionsEditorOpen",
119+
"codeql.modelEditorOpen",
120120
this.isAModelEditorOpen(),
121121
);
122122
});
@@ -125,7 +125,7 @@ export class ModelEditorView extends AbstractWebview<
125125

126126
void this.app.commands.execute(
127127
"setContext",
128-
"codeql.dataExtensionsEditorOpen",
128+
"codeql.modelEditorOpen",
129129
true,
130130
);
131131
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ describe("commands declared in package.json", () => {
4545
command.match(/^codeQLAstViewer\./) ||
4646
command.match(/^codeQLEvalLogViewer\./) ||
4747
command.match(/^codeQLTests\./) ||
48-
command.match(/^codeQLDataExtensionsEditor\./)
48+
command.match(/^codeQLModelEditor\./)
4949
) {
5050
scopedCmds.add(command);
5151
expect(title).toBeDefined();

0 commit comments

Comments
 (0)