Skip to content

Go to Definition does not work when using AMD #2683

Closed

Description

It just does nothing unless its a local variable.
I would have suspected this would present a list of all possible matching items in the source.
Its almost as if its not even indexing the code. I am working in a source base of millions of lines of JS so it would be nice.
Products like resharper and visual assist do this better.

Activity

  1. dresoy commented on Feb 4, 2016

    @dresoy

    I agree, it should search it for JavaScript.

  2. justin-romano commented on Feb 5, 2016

    @justin-romano
    Author

    Thanks egamma but i could not see it make a difference. Is there some think like lucene indexing the code when you load a folder?
    It does not seem very busy when it starts and noticed that the search is really slow which implies its just trawling the files rather then indexing the source.

  3. egamma commented on Feb 6, 2016

    @egamma
    Member

    Justin Romaine (@justin-romano) Then I assume your code isn't using the commonjs module system? Are you using another JS module system?

  4. justin-romano commented on Feb 6, 2016

    @justin-romano
    Author

    No actually anguar and requirejs.

    On Sun, Feb 7, 2016 at 4:52 AM, Erich Gamma [email protected]
    wrote:

    Justin Romaine (@justin-romano) https://github.com/justin-romano Then I assume your code
    isn't using the commonjs module system? Are you using another JS module
    system?

    —
    Reply to this email directly or view it on GitHub
    #2683 (comment).

    Justin Romaine
    Senior Systems Architect
    Spark Dental Technology
    [email protected]
    ph 021 764 506
    hm 09 445 9166

  5. changed the title [-]Go to Definition does not work.[/-] [+]Go to Definition does not work when using AMD[/+] on Feb 6, 2016
  6. egamma commented on Feb 6, 2016

    @egamma
    Member

    Thanks, got it. Salsa doesn't support AMD yet. I'll move it as a feature request to Salsa component.

  7. egamma commented on Feb 6, 2016

    @egamma
    Member

    This issue was moved to microsoft/TypeScript#6942

  8. justin-romano commented on Feb 6, 2016

    @justin-romano
    Author

    OK i understand now although i have not looked but its trying to do something smart with module references. Does it go down to script tag html level? I think there are a lot of us that don't use it for vscode for just nodejs development.

  9. egamma commented on Feb 6, 2016

    @egamma
    Member

    OK i understand now although i have not looked but its trying to do something smart with module references.

    Correct, Salsa supports the CommonJS module lookup semantics, but it doesn't support AMD yet and we are interested in user feedback on this limitation, so you have done the right thing by filing an issue 😄.

  10. locked and limited conversation to collaborators on Nov 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    javascript

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions