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

Intellisense broken for large JS projects like cocos2dx-js #10141

Closed
dbaeumer opened this issue Aug 4, 2016 · 2 comments
Closed

Intellisense broken for large JS projects like cocos2dx-js #10141

dbaeumer opened this issue Aug 4, 2016 · 2 comments
Labels
Duplicate An existing issue was already created

Comments

@dbaeumer
Copy link
Member

dbaeumer commented Aug 4, 2016

From @sachingarg05 on July 16, 2016 17:21

  • VSCode Version: 1.3.1
  • OS Version: OSX 10.11.5

Steps to Reproduce:

  1. Create a new Cocos2x-JS project following steps on: https://github.com/cocos2d/cocos2d-x
    For example: cocos new -l js WebGame
  2. Open project folder in VS Code.
  3. Setup default jsconfig.json which doesn't exclude anything.
  4. Ctrl+Space (autocomplete) and Cmd+Click (go to definition) don't work.
  5. In ./main.js, try Cmd+Click on cc.view or cc.director. VS Code finds an empty reference to cc in Base64Images.js (var cc = cc || {};) and then can't find anything else in cc like cc.view or cc.director etc...

On opening the same project folder in webstorm, both ctrl+space autocomplete and cmd+click go to definition work as expected. So the problem is not with project or code structure etc.

The Visual Studio team has been working on improving support for Cocos2dx C++ projects.
https://blogs.msdn.microsoft.com/vcblog/2016/07/12/cocos2d-x-visual-studio-android-project/

It will be great if VS Code can support intellisense for large javascript projects like Cocos2dx JS.

Copied from original issue: microsoft/vscode#9391

@dbaeumer
Copy link
Member Author

dbaeumer commented Aug 4, 2016

Moving to TS team since they provide the language smartness for JS as well.

@mhegazy
Copy link
Contributor

mhegazy commented Dec 14, 2016

closing in favor of #10142

@mhegazy mhegazy closed this as completed Dec 14, 2016
@mhegazy mhegazy added the Duplicate An existing issue was already created label Dec 14, 2016
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Duplicate An existing issue was already created
Projects
None yet
Development

No branches or pull requests

2 participants