Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CLOSED] [js code hints] no code hint, but jump to definition shows the definition on propery #3626

Open
core-ai-bot opened this issue Aug 29, 2021 · 5 comments

Comments

@core-ai-bot
Copy link
Member

Issue by jodyzhang
Friday May 17, 2013 at 18:44 GMT
Originally opened as adobe/brackets#3883


Saw the case while regressing bug adobe/brackets#3827

  1. Setup a project with these 3 files: https://gist.github.com/jrowny/31af730a02b2d2dfddeb
    I did clone the files, open the folder in brackets
  2. Open app.js file
  3. put a cursor after $scope.
    ->there is no code hint, just guessing one
    try to jump to $scope.name, it focuses name property in angular.min.js.

However in tern, it shows more code hints: name, nameItem, namespace, namespaceURI

Expect: code hint at step 3.

@core-ai-bot
Copy link
Member Author

Comment by pthiess
Monday May 20, 2013 at 18:24 GMT


Reviewed@eztierney

@core-ai-bot
Copy link
Member Author

Comment by eztierney
Monday May 20, 2013 at 19:55 GMT


This appears fixed in the most recent tern - will pick up that fix when we update.

@core-ai-bot
Copy link
Member Author

Comment by jodyzhang
Monday Jun 10, 2013 at 20:26 GMT


@eztierney: I still did not see the code hint for $scope., jump to $scope.name no longer jumps to anywhere, is it expected? thanks.

@core-ai-bot
Copy link
Member Author

Comment by eztierney
Monday Jun 10, 2013 at 20:36 GMT


I don't think tern can generate hints for $scope - what type is it supposed to be? I think the bug was that we were jumping to 'name' in angular.js, even though tern didn't know where 'name' came from.

@core-ai-bot
Copy link
Member Author

Comment by jodyzhang
Tuesday Jun 11, 2013 at 14:21 GMT


ok, I see, Tern returns incorrect properties in the case. closed it as jump to now doesn't jump to other location.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant