-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Code completion hints don't work for most AngularJS functions #5417
Comments
@somelinguist 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. |
@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? |
@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. |
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. |
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. |
OK, this is not a bug in Tern. We need to register the Angular plugin for it to work. |
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?
The text was updated successfully, but these errors were encountered: