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

can't navigate javascript with manual namespaces #4533

Closed
chadbr opened this issue Mar 22, 2016 · 2 comments
Closed

can't navigate javascript with manual namespaces #4533

chadbr opened this issue Mar 22, 2016 · 2 comments

Comments

@chadbr
Copy link

chadbr commented Mar 22, 2016

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.
@chadbr
Copy link
Author

chadbr commented Mar 22, 2016

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

@jrieken
Copy link
Member

jrieken commented Mar 22, 2016

This issue was moved to microsoft/TypeScript#7632

@jrieken jrieken closed this as completed Mar 22, 2016
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants