ChristianKohler / NpmIntellisense

Visual Studio Code plugin that autocompletes npm modules in import statements
MIT License
155 stars 43 forks source link

No intellisense with absolute paths #45

Closed uLan08 closed 6 years ago

uLan08 commented 7 years ago

I am using this package for absolute imports. And with this configuration

{
  "plugins": [
    ["babel-plugin-root-import", {
      "rootPathSuffix": "src"
    }]
  ]
}

So I am now importing modules with import util from '~/util' but I am not getting intellisense. I did try setting this in VS code user settings.

    "path-intellisense.mappings": {
        "~/": "${workspaceRoot}/src"
    }

But nothing still.

uLan08 commented 6 years ago

Closing, as it is working. It was because I am on a multi folder project.