We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c0218d commit c281f04Copy full SHA for c281f04
packages/app/src/app/overmind/namespaces/files/actions.ts
@@ -446,6 +446,17 @@ export const massCreateModules: AsyncAction<{
446
447
actions.editor.internal.updatePreviewCode();
448
449
+ // This can happen if you have selected a deleted file in VSCode and try to save it,
450
+ // we want to select it again
451
+ if (!state.editor.currentModuleShortid) {
452
+ const lastAddedModule =
453
+ state.editor.currentSandbox.modules[
454
+ state.editor.currentSandbox.modules.length - 1
455
+ ];
456
+
457
+ actions.editor.internal.setCurrentModule(lastAddedModule);
458
+ }
459
460
if (state.live.isCurrentEditor) {
461
effects.live.sendMassCreatedModules(data.modules, data.directories);
462
}
0 commit comments