question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

path-intellisense.mappings doesn't work / not used correctly

See original GitHub issue

i 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:open
  • Created 7 years ago
  • Reactions:15
  • Comments:33 (3 by maintainers)

github_iconTop GitHub Comments

18reactions
kib357commented, Mar 2, 2017

@ChristianKohler i figured out that you can reproduce this issue by installing both path-intellisense and npm-intellisense.

12reactions
vanhtuan0409commented, Feb 1, 2018

I think the problem comes from npm-IntelliSense

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found