File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,18 @@ export async function activateAsync(context: vscode.ExtensionContext): Promise<v
38
38
viewColumn : vscode . ViewColumn . Beside ,
39
39
} ) ;
40
40
} ) ,
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
+ } ) ,
41
53
vscode . window . registerTerminalLinkProvider ( {
42
54
provideTerminalLinks ( terminalContext : vscode . TerminalLinkContext , _token : vscode . CancellationToken ) {
43
55
const line = terminalContext . line . trimEnd ( ) ;
You can’t perform that action at this time.
0 commit comments