Skip to content

can't navigate javascript with manual namespaces #4533

@chadbr

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.

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