Skip to content

Commit d04a1ed

Browse files
committed
fix: don't delete dts models
1 parent c9fa1e9 commit d04a1ed

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/monaco/Monaco.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ watchEffect(() => {
5050
for (const model of monaco.editor.getModels()) {
5151
if (store.state.files[model.uri.toString().substring('file:///'.length)])
5252
continue;
53+
if (model.uri.toString().startsWith('file:///node_modules/'))
54+
continue;
5355
model.dispose();
5456
}
5557
});

0 commit comments

Comments
 (0)