File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/app/src/app/overmind/effects/vscode Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -292,7 +292,7 @@ export class VSCodeEffect {
292
292
public async changeSandbox ( sandbox : Sandbox , setFs : ( fs : SandboxFs ) => void ) {
293
293
await this . initialized ;
294
294
295
- const isFirstLoad = ! ! this . modelsHandler ;
295
+ const isFirstLoad = ! this . modelsHandler ;
296
296
297
297
if ( this . modelsHandler ) {
298
298
this . modelsHandler . dispose ( ) ;
@@ -314,12 +314,12 @@ export class VSCodeEffect {
314
314
setFs ( this . sandboxFsSync . create ( sandbox ) ) ;
315
315
316
316
if ( isFirstLoad ) {
317
+ this . sandboxFsSync . sync ( ( ) => { } ) ;
318
+ } else {
317
319
this . editorApi . extensionService . stopExtensionHost ( ) ;
318
320
this . sandboxFsSync . sync ( ( ) => {
319
321
this . editorApi . extensionService . startExtensionHost ( ) ;
320
322
} ) ;
321
- } else {
322
- this . sandboxFsSync . sync ( ( ) => { } ) ;
323
323
}
324
324
}
325
325
You can’t perform that action at this time.
0 commit comments