File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
packages/app/src/app/overmind/effects/vscode Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 1- import codeSandboxBlackTheme from '@codesandbox/common/lib/themes/codesandbox-black' ;
21import codeSandboxTheme from '@codesandbox/common/lib/themes/codesandbox.json' ;
32
43export function initializeThemeCache ( ) {
@@ -58,6 +57,13 @@ export function initializeSettings() {
5857 settings [ 'javascript.autoClosingTags' ] = false ;
5958 settings [ 'typescript.autoClosingTags' ] = false ;
6059 settings [ 'typescript.tsserver.useSeparateSyntaxServer' ] = false ;
60+
61+ if ( ! settings [ 'workbench.colorTheme' ] ) {
62+ // if you have not changed the theme ever,
63+ // we set codesandbox black as the theme for you
64+ settings [ 'workbench.colorTheme' ] = 'CodeSandbox Black' ;
65+ }
66+
6167 fs . writeFileSync (
6268 '/vscode/settings.json' ,
6369 JSON . stringify ( settings , null , 2 )
@@ -143,10 +149,4 @@ export function initializeCustomTheme() {
143149 if ( customTheme ) {
144150 installCustomTheme ( 'custom' , 'Custom Theme' , customTheme ) ;
145151 }
146-
147- installCustomTheme (
148- 'codesandbox-black-0.0.1' ,
149- 'CodeSandbox Black.' ,
150- JSON . stringify ( codeSandboxBlackTheme )
151- ) ;
152152}
You can’t perform that action at this time.
0 commit comments