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

Provide setting to disable baseUrl style imports #69021

Closed
dantman opened this issue Feb 20, 2019 · 2 comments
Closed

Provide setting to disable baseUrl style imports #69021

dantman opened this issue Feb 20, 2019 · 2 comments
Assignees
Labels
javascript JavaScript support issues *question Issue represents a question, should be posted to StackOverflow (VS Code)

Comments

@dantman
Copy link

dantman commented Feb 20, 2019

If a baseUrl is set vscode uses src/foo.js. In NestJS baseUrl is set so that tsconfig-paths works. The author discourages the src/ imports, but cannot remove baseUrl because that would disable paths.

Please provide an option to disable the baseUrl imports so only relative and paths imports are used.

@vscodebot vscodebot bot added the javascript JavaScript support issues label Feb 20, 2019
@mjbvz
Copy link
Contributor

mjbvz commented Feb 20, 2019

Try setting "javascript.preferences.importModuleSpecifier": "relative" for this

@mjbvz mjbvz closed this as completed Feb 20, 2019
@mjbvz mjbvz added the *question Issue represents a question, should be posted to StackOverflow (VS Code) label Feb 20, 2019
@dantman
Copy link
Author

dantman commented Feb 21, 2019

I can try it again, but I already tried that and it did not work.

@vscodebot vscodebot bot locked and limited conversation to collaborators Apr 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
javascript JavaScript support issues *question Issue represents a question, should be posted to StackOverflow (VS Code)
Projects
None yet
Development

No branches or pull requests

2 participants