Aptana Studio
  1. Aptana Studio
  2. APSTUD-3017

"this" gets transformed to "thistory" in JavaScript content assist

    Details

      Description

      "this" is missing from js code assist, and it gets auto-completed to "thistory".

        Issue Links

          Activity

          Hide
          Ingo Muschenetz added a comment -

          Andrei--is it the exact same case as above? Can you give a sample snippet of code?

          Show
          Ingo Muschenetz added a comment - Andrei--is it the exact same case as above? Can you give a sample snippet of code?
          Hide
          Aaron Nordyke added a comment -

          I'm still able to recreate in 3.0.4.201108101506 when in an anonymous function that is a nested value within an object.

          function f(){
          return {
          anonymous:function()

          { thi //causes content assist to pop "history". }

          };
          }

          Show
          Aaron Nordyke added a comment - I'm still able to recreate in 3.0.4.201108101506 when in an anonymous function that is a nested value within an object. function f(){ return { anonymous:function() { thi //causes content assist to pop "history". } }; }
          Hide
          Kevin Lindsey added a comment -

          Thanks everyone for the snippets of code. It did boil down to one case. We weren't descending into values in name/value pairs when calculating prefixes and replacement ranges for content assist. I've pushed a fix

          Show
          Kevin Lindsey added a comment - Thanks everyone for the snippets of code. It did boil down to one case. We weren't descending into values in name/value pairs when calculating prefixes and replacement ranges for content assist. I've pushed a fix
          Hide
          Joel Witt (Inactive) added a comment -

          Aptana Studio 3, build: 3.0.5.201108231934
          Ubuntu 10.10

          The code blocks :

          =========
          function f()

          { // enter "thi" here to autocomplete to "this" }

          =========
          function f() {
          return {
          anonymous:function()

          { t //causes content assist to pop "history". }

          };
          }
          =========

          both function as required.

          Show
          Joel Witt (Inactive) added a comment - Aptana Studio 3, build: 3.0.5.201108231934 Ubuntu 10.10 The code blocks : ========= function f() { // enter "thi" here to autocomplete to "this" } ========= function f() { return { anonymous:function() { t //causes content assist to pop "history". } }; } ========= both function as required.
          Hide
          Raul E Rangel added a comment -

          I found another case

          ============================

          define(['a'], function(a) {
          var my_constructor = function() {
          };
          my_constructor.prototype = {
          initialize: function()

          { t//This causes the popup to show }

          };
          });

          ============================

          Show
          Raul E Rangel added a comment - I found another case ============================ define( ['a'] , function(a) { var my_constructor = function() { }; my_constructor.prototype = { initialize: function() { t//This causes the popup to show } }; }); ============================

            People

            • Assignee:
              Kevin Lindsey
              Reporter:
              Aaron Nordyke
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development