Skip to content

Commit 5accc1a

Browse files
committed
chore: file switch editor problems underline performance improvement
1 parent bf8f620 commit 5accc1a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/language/CodeInspection.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -605,8 +605,6 @@ define(function (require, exports, module) {
605605
if(editor){
606606
lastDocumentScanTimeStamp = editor.document.lastChangeTimestamp;
607607
documentFixes.clear();
608-
editor.clearAllMarks(CODE_MARK_TYPE_INSPECTOR);
609-
editor.clearGutter(CODE_INSPECTION_GUTTER);
610608
fullFilePath = editor.document.file.fullPath;
611609
}
612610

@@ -620,6 +618,8 @@ define(function (require, exports, module) {
620618

621619
// run all the providers registered for this file type
622620
(_currentPromise = inspectFile(currentDoc.file, providerList)).then(function (results) {
621+
editor.clearAllMarks(CODE_MARK_TYPE_INSPECTOR);
622+
editor.clearGutter(CODE_INSPECTION_GUTTER);
623623
_updateEditorMarksAndFixResults(results);
624624
// check if promise has not changed while inspectFile was running
625625
if (this !== _currentPromise) {

0 commit comments

Comments
 (0)