path-intellisense.mappings doesn't work / not used correctly
See original GitHub issuei tried using that to solve my webpack absolute pathto autocomplete modules.
- The projects sits on
/Users/myuser/Workspace/foo
. - The directory that I want to autocomplete is
/Users/myuser/Workspace/foo/src
. - I want to use it on my code so I can write in a file:
import Bar from 'utils/bar'
and it will be resolved to: /Users/myuser/Workspace/foo/src/utils/bar
.
I tried as above:
"path-intellisense.mappings": {
"/": "${workspaceRoot}/src"
}
what am i doing wrong ?
also - my src
folder contains 10 directories that I want to be auto-mapped… do I have to add a record for each of them or it will be auto-mapped ?
Issue Analytics
- State:
- Created 7 years ago
- Reactions:15
- Comments:33 (3 by maintainers)
Top Results From Across the Web
Path Intellisense - Visual Studio Marketplace
Create and merge PRs and perform code reviews from inside your IDE while using jump-to-definition, your favorite keybindings, and other IDE tools. Learn...
Read more >How to autocomplete file paths using user defined alias and ...
So far, I've been able to set aliases for absolute paths successfully, but not relative ones. To add to the issue, while the...
Read more >VS Code - Intellisense not working with @ absolute path
Steps to Reproduce: Create a new project using Vue CLI; Type in any javascript file or section. import HelloWorld from '@/something/something'.
Read more >VS Code tips — Markdown path IntelliSense - YouTube
VS Code's built-in #markdown extension provides path suggestions for links and imagesUse ./ to reference neighboring files. Use / to ...
Read more >Places Library | Maps JavaScript API - Google Developers
The Places API offers an autocomplete feature which you can use to give your applications the type-ahead-search behavior of the Google Maps search...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@ChristianKohler i figured out that you can reproduce this issue by installing both
path-intellisense
andnpm-intellisense
.I think the problem comes from
npm-IntelliSense