Skip to content

Commit 62797c9

Browse files
committed
bam
1 parent ae0b905 commit 62797c9

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎v3/js/opt-frontend-common.js‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,11 @@ function setAceMode() {
178178

179179
var s = pyInputAceEditor.getSession();
180180
s.setMode("ace/mode/" + mod);
181+
182+
// clear all error displays when switching modes
183+
var s = pyInputAceEditor.getSession();
184+
s.clearAnnotations();
185+
clearFrontendError();
181186
}
182187

183188
function snapshotCodeDiff() {

0 commit comments

Comments
 (0)