Skip to content

Commit 8fbde9f

Browse files
Limit setContext keys
1 parent 3e9c2c8 commit 8fbde9f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@ export type SingleSelectionCommandFunction<Item> = (
3636
// See https://code.visualstudio.com/api/references/commands
3737
export type BuiltInVsCodeCommands = {
3838
"markdown.showPreviewToSide": (uri: Uri) => Promise<void>;
39-
setContext: (key: string, value: unknown) => Promise<void>;
39+
setContext: (
40+
key: `${"codeql" | "codeQL"}${string}`,
41+
value: unknown,
42+
) => Promise<void>;
4043
"workbench.action.reloadWindow": () => Promise<void>;
4144
};
4245

0 commit comments

Comments
 (0)