Skip to content

Commit cd343a7

Browse files
committed
correct templates
1 parent c97331a commit cd343a7

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

vscode-client/extension.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,18 @@ export async function activateAsync(context: vscode.ExtensionContext): Promise<v
3838
viewColumn: vscode.ViewColumn.Beside,
3939
});
4040
}),
41+
vscode.commands.registerCommand("robotcode.getVSCodeTheme", () => {
42+
switch (vscode.window.activeColorTheme.kind) {
43+
case vscode.ColorThemeKind.Dark:
44+
case vscode.ColorThemeKind.HighContrast:
45+
return "DARK";
46+
case vscode.ColorThemeKind.Light:
47+
case vscode.ColorThemeKind.HighContrastLight:
48+
return "LIGHT";
49+
default:
50+
return null;
51+
}
52+
}),
4153
vscode.window.registerTerminalLinkProvider({
4254
provideTerminalLinks(terminalContext: vscode.TerminalLinkContext, _token: vscode.CancellationToken) {
4355
const line = terminalContext.line.trimEnd();

0 commit comments

Comments
 (0)