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 968eb15 commit 6e34919Copy full SHA for 6e34919
src/browser/modules/Editor/Monaco.tsx
@@ -145,6 +145,13 @@ const Monaco = ({
145
146
const model = editorRef.current?.getModel() as editor.ITextModel
147
148
+ // clearing markers again solves issue with incorrect multi-statement warning when user spam clicks setting on and off
149
+ editor.setModelMarkers(
150
+ editorRef.current?.getModel() as editor.ITextModel,
151
+ monacoId,
152
+ []
153
+ )
154
+
155
// add multi statement warning if multi setting is off
156
if (statements.length > 1 && !enableMultiStatementMode) {
157
const secondStatementLine = statements[1].start.line
0 commit comments