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
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 ( ) ;
You can’t perform that action at this time.
0 commit comments