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

Cordova platform and plugin intellisense not enabled by default #59

Closed
MSLaguana opened this issue Mar 14, 2016 · 3 comments
Closed

Cordova platform and plugin intellisense not enabled by default #59

MSLaguana opened this issue Mar 14, 2016 · 3 comments
Labels
Milestone

Comments

@MSLaguana
Copy link
Member

Due to a bug in vscode, projects will not pick up typings for cordova intellisense by default. See microsoft/vscode#3936 for more details, but a workaround is to add a jsconfig.json file in the root of the project which is valid json. At minimum it can be {}.

@egamma
Copy link
Member

egamma commented Mar 14, 2016

@MSLaguana The currenct behaviour is by design and consistent with typescript and its tsconfig.json. When you have no jsconfig.json/tsconfig.json then each file in the project is treated as an island. Since there is no reference to the cordova typings from a file, these typings will not be found. You can add such a reference by using a /// reference to the corresponding .d.ts file.

In VS Code 0.10.8 we used a different behaviour and when you have no jsconfig.json we treated all files inside the folder to belong to the project. Now that Salsa comes from TypeScript you get the same behaviour as in typescript.

@MSLaguana MSLaguana added bug and removed external labels Mar 14, 2016
@MSLaguana
Copy link
Member Author

In that case we'll have to drop in a jsconfig to enable our typings.

@ghost
Copy link

ghost commented Mar 16, 2016

Fix checked in, will be in the next extension update.

@ghost ghost closed this as completed Mar 16, 2016
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants