Skip to content

Commit

Permalink
fix: don't delete dts models
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk committed Mar 4, 2023
1 parent c9fa1e9 commit d04a1ed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/monaco/Monaco.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ watchEffect(() => {
for (const model of monaco.editor.getModels()) {
if (store.state.files[model.uri.toString().substring('file:///'.length)])
continue;
if (model.uri.toString().startsWith('file:///node_modules/'))
continue;
model.dispose();
}
});
Expand Down

0 comments on commit d04a1ed

Please sign in to comment.