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

Allow snippets to be scoped by project type

    Details

    • Story Points:
      20

      Description

      Have this code in a JS file:

       
      function Coffee (type,roast) {
          this.type = type;
          this.roast = roast;
      }
      Coffee.prototype.describe = function() {
          return this.roast + ' ' + this.type + ' coffee';
      };
       
      var sumatra = Coffee("Sumatra", "Light");
      sumatra.d| <<< Content Assist here
      

      The result of this CA is:

      sumatra.Ti.API.debug(})
      

      In this case, the Titanium Mobile ruble is contributing a snippet which does not apply inside a regular JS project. Suggest is we have some way to allow snippets to be scoped based on project natures (i.e. titanium mobile), or perhaps a more generic mechanism (i.e. jquery snippets enabled in a "jquery" project, where there is no corresponding nature)

      Suggestion is to add a meta scope of: meta.project.<nature>

        Attachments

          Activity

            People

            • Assignee:
              cwilliams Christopher Williams
              Reporter:
              sgibly Shalom Gibly
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: