consulo / consulo-javascript

Languages: JavaScript
Apache License 2.0
5 stars 4 forks source link

Unresolved variable warning doesn't know basic libraries #22

Open unv-unv opened 4 years ago

unv-unv commented 4 years ago

JavaScript error highlighting doesn't know about setInterval, XMLHttpRequest methods, Date:

if (!UITableInputBase.pingInterval) { UITableInputBase.pingInterval = setInterval( function () { var http = new XMLHttpRequest(); http.open("get", "/version.txt?rnd=" + new Date().getTime(), true); http.send(null); }, 300 * 1000 ); }

изображение

изображение

изображение

VISTALL commented 4 years ago

Hello. JS plugin have limited resolving, almost all in local scope.

I'm planing to make more powerful implementation (like support debugging inside browser https://github.com/consulo/chrome-consulo-debugger-extension, jsx, etc)

unv-unv commented 4 years ago

Hi. Then please say how to disable this warning since it's not helpful and really annoying.

VISTALL commented 4 years ago

In popup -> More Actions, first popup item (arrow right) -> Edit Inspections

and disable them

https://klikr.org/5e570cd99358c3e3d078e6bc0d32.png