Skip to content

can't navigate javascript with manual namespaces #4533

Closed

Description

@chadbr

I have large legacy codebase with "manual" style namespacing like this:

//namespaces
var my = my || {};
my.app = my.app || {};

and "classes" declared like this:

my.app.Application` = (function () {
var Application = function () {
...
};
return Application;
})();

I've tried several combinations of jsconfig.json parameters and none allow me to navigate this style of code. Should this work?

  • VSCode Version: 0.10.11, 0.10.12-insider
  • OS Version: OSX 10.11.3

Steps to Reproduce:

  1. Open attached project or github repo https://github.com/chadbr/vscodeTestJS

vscodeTestJS.zip

  1. Open folder in vscode
  2. open src/app/application.js
  3. try to go to declaration of my.app.SomeView() -- nothing happens.

Activity

  1. chadbr commented on Mar 22, 2016

    @chadbr
    Author

    oh - and FWIW, WebStorm allows me to navigate these files...

  2. jrieken commented on Mar 22, 2016

    @jrieken
    Contributor

    This issue was moved to microsoft/TypeScript#7632

  3. 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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions