Details

    • Technical task
    • Resolution: Fixed
    • Not Evaluated
    • 6.7
    • 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);
          } 

       

       

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes