Skip to content

Commit db18cea

Browse files
committed
Reset lint warnings when version does not match model
Fixes codesandbox#822
1 parent 0056104 commit db18cea

File tree

1 file changed

+2
-0
lines changed
  • packages/app/src/app/components/CodeEditor/Monaco

1 file changed

+2
-0
lines changed

packages/app/src/app/components/CodeEditor/Monaco/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -990,6 +990,8 @@ class MonacoEditor extends React.Component<Props, State> implements Editor {
990990
if (this.editor.getModel()) {
991991
if (version === this.editor.getModel().getVersionId()) {
992992
this.updateLintWarnings(markers);
993+
} else {
994+
this.updateLintWarnings([]);
993995
}
994996
}
995997
});

0 commit comments

Comments
 (0)