Skip to content

Commit 5d6a2e6

Browse files
rename types
1 parent 0e79b92 commit 5d6a2e6

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export type SingleSelectionCommandFunction<Item> = (
3333

3434
// Builtin commands where the implementation is provided by VS Code and not by this extension.
3535
// See https://code.visualstudio.com/api/references/commands
36-
export type VSCodeCommands = {
36+
export type BuiltInVsCodeCommands = {
3737
"markdown.showPreviewToSide": (uri: Uri) => Promise<void>;
3838
"workbench.action.reloadWindow": () => Promise<void>;
3939
};
@@ -220,7 +220,7 @@ export type MockGitHubApiServerCommands = {
220220
};
221221

222222
// All commands where the implementation is provided by this extension.
223-
export type AllCodeQLCommands = BaseCommands &
223+
export type AllExtensionCommands = BaseCommands &
224224
QueryHistoryCommands &
225225
LocalDatabasesCommands &
226226
VariantAnalysisCommands &
@@ -232,7 +232,7 @@ export type AllCodeQLCommands = BaseCommands &
232232
SummaryLanguageSupportCommands &
233233
MockGitHubApiServerCommands;
234234

235-
export type AllCommands = AllCodeQLCommands & VSCodeCommands;
235+
export type AllCommands = AllExtensionCommands & BuiltInVsCodeCommands;
236236

237237
export type AppCommandManager = CommandManager<AllCommands>;
238238

extensions/ql-vscode/src/extension.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ import { redactableError } from "./pure/errors";
112112
import { QueryHistoryDirs } from "./query-history/query-history-dirs";
113113
import { DirResult } from "tmp";
114114
import {
115-
AllCodeQLCommands,
115+
AllExtensionCommands,
116116
BaseCommands,
117117
QueryServerCommands,
118118
} from "./common/commands";
@@ -837,7 +837,7 @@ async function activateWithInstalledDistribution(
837837

838838
void extLogger.log("Registering top-level command palette commands.");
839839

840-
const allCommands: AllCodeQLCommands = {
840+
const allCommands: AllExtensionCommands = {
841841
...getCommands(cliServer, qs),
842842
...localQueryResultsView.getCommands(),
843843
...qhm.getCommands(),
@@ -864,7 +864,7 @@ async function activateWithInstalledDistribution(
864864
};
865865

866866
for (const [commandName, command] of Object.entries(allCommands)) {
867-
app.commands.register(commandName as keyof AllCodeQLCommands, command);
867+
app.commands.register(commandName as keyof AllExtensionCommands, command);
868868
}
869869

870870
const queryServerCommands: QueryServerCommands = {

0 commit comments

Comments
 (0)