Uploaded image for project: 'Appcelerator Studio'
  1. Appcelerator Studio
  2. TISTUD-1371

Content Assist: objects from other files are showing up in CA

    Details

    • Type: Improvement
    • Status: Reopened
    • Priority: Low
    • Resolution: Unresolved
    • Affects Version/s: Titanium Studio 1.0.9, Titanium Studio 2.0, Titanium Studio 2.0.1, Titanium Studio 2.0.2, Titanium Studio 2.1.0, Titanium Studio 2.1.1, Titanium Studio 2.1.2
    • Fix Version/s: None
    • Component/s: Content Assist
    • Environment:

      SDK: 2.0.0.v20120320000301
      Studio: 1.0.9.201202141208, 2.0.0.201203200828
      OS: Snow Leopard

      Description

      Multiple variables with identical names show as one proposal with one long list of properties. Screenshots attached.

      Steps to Reproduce:

      1. Create project, insert code:

      app.js:

      app.js

      ex.//content assist
      exports.//content assist
      

      module1.js:

      require1.js

      exports.Function1 = function(){};
       
      var ex = {};
       
      ex.Function1 = function(){};
      ex.Function2 = function(){};
      

      module2.js:

      require2.js

      exports.Function2 = function(){};
       
      var ex = {};
       
      ex.Function3 = function(){};
      ex.Function4 = function(){};
      

      2. Activate Content Assist in app.js for 'ex' and 'exports'.

      Expected Result:

      'ex' should show as two objects in different files, each 'ex' should have two functions.
      'exports' should not have any functions.

      Actual Result:

      'ex' is one object.
      'ex' has four functions, two from the local 'ex' in each file.
      'exports' has two functions, one from each file.

      Side Note: Eclipse mentions variable scope in the proposal list, while studio does not.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kkolipaka Kondal Kolipaka (Inactive)
                Reporter:
                dhyde Dustin Hyde
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated: