• Icon: Technical task Technical task
    • Resolution: Fixed
    • Icon: Not Evaluated Not Evaluated
    • 6.7
    • None
    • None

      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);
          } 

       

       

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            sami.shalayel Sami Shalayel
            sami.shalayel Sami Shalayel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes