Open core-ai-bot opened 3 years ago
Comment by RaymondLim Friday Oct 04, 2013 at 17:35 GMT
@
somelinguist
We don't have code completion hints for AngularJS at all. I don't even get anything that you listed when I tried it out in an empty js file. You must be trying in a file that already had some references to the listed ones.
We're using Tern as our JS code hints provider and currently Tern only provides code completion for jQuery and underscorejs using some json files (see https://github.com/marijnh/tern/tree/master/defs). So you can create a json file for AngularJS and contribute it to Tern if you want to work on it.
Comment by njx Friday Oct 04, 2013 at 18:43 GMT
@
dangoor - could this be a side-effect of our small file size limit for Tern scanning? Does this need to be move to backlog if we need to rethink our strategy there?
Comment by dangoor Thursday Oct 10, 2013 at 18:33 GMT
@
njx I think the file size limit has to do with getting code hints as you type and not with the files around. However, I have also seen bug activity recently in the Tern repo about Angular. It could be that Angular does things a bit differently than other JS projects.
This is worth investigating at least.
Comment by dangoor Thursday Oct 10, 2013 at 18:34 GMT
I'm going to put this into sprint 33, because it's likely that I can look into this while I'm also looking into #4991, which may be of a similar nature.
Comment by dangoor Thursday Oct 10, 2013 at 21:13 GMT
I have updated Tern and installed the Angular plugin for Tern. I still see exactly the results that you're seeing. I have filed a bug with Tern.
Comment by dangoor Friday Oct 11, 2013 at 02:35 GMT
OK, this is not a bug in Tern. We need to register the Angular plugin for it to work.
Issue by somelinguist Thursday Oct 03, 2013 at 20:16 GMT Originally opened as https://github.com/adobe/brackets/issues/5417
Code completion hints for AngularJS seems to be limited to
If I try to type other angular functions (for example: angular.copy, angular.toJson, etc), they often show up in italics in the code completion popup, but then there is no completion info for parameters.
Is there a way to get Brackets to offer more hints?