Skip to content

Commit cb2bf19

Browse files
authored
fix(ts): reload TS projects once we have loadad the typings (#8081)
1 parent 50aac04 commit cb2bf19

File tree

1 file changed

+4
-1
lines changed
  • packages/app/src/app/overmind/effects/vscode

1 file changed

+4
-1
lines changed

packages/app/src/app/overmind/effects/vscode/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,10 @@ export class VSCodeEffect {
510510
setFs(this.sandboxFsSync.create(sandbox));
511511

512512
if (isFirstLoad) {
513-
this.sandboxFsSync.sync(() => {});
513+
this.sandboxFsSync.sync(() => {
514+
// Once we have synced the fs, reload the TS project, as some new dependencies might have been added
515+
this.runCommand('typescript.reloadProjects');
516+
});
514517
} else {
515518
this.editorApi.extensionService.stopExtensionHost();
516519
this.sandboxFsSync.sync(() => {

0 commit comments

Comments
 (0)