Details
-
Technical task
-
Resolution: Fixed
-
Not Evaluated
-
None
-
None
Description
Implement completion support for JS variables. Currently, all variables are treated as if scoped, which should not be the case.
For example, the completion for inside the console.log() calls should complete unexistingVar but not scopedVar:
function test1() { for (unexistingVar = 424242; unexistingVar < 0; ++i){ } // fine, because no let/var/const console.log(unexistingVar); } function test2() { for (var scopedVar = 123; scopedVar2<0; ++i){ } // not fine: Uncaught ReferenceError: scopedVar2 is not defined console.log(scopedVar); }