Skip to content

Commit c83d3c9

Browse files
committed
fix: eslint editor squigly lines not shown at boot
1 parent 730c430 commit c83d3c9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/language/CodeInspection.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1157,6 +1157,14 @@ define(function (require, exports, module) {
11571157
}, ["all"]);
11581158
});
11591159

1160+
AppInit.appReady(function () {
1161+
// on boot the linter is not somehow showing the lint editor underlines at first time. So we trigger a run
1162+
// after 2 seconds
1163+
if(!Phoenix.isTestWindow) {
1164+
setTimeout(run, 2000);
1165+
}
1166+
});
1167+
11601168
// Testing
11611169
exports._unregisterAll = _unregisterAll;
11621170
exports._PREF_ASYNC_TIMEOUT = PREF_ASYNC_TIMEOUT;

0 commit comments

Comments
 (0)