Skip to content
This repository was archived by the owner on Oct 16, 2020. It is now read-only.

Support leading slash imports using "paths" in tsconfig.json #680

Open
javoire opened this issue May 10, 2020 · 0 comments
Open

Support leading slash imports using "paths" in tsconfig.json #680

javoire opened this issue May 10, 2020 · 0 comments

Comments

@javoire
Copy link

javoire commented May 10, 2020

Hello,

It seems this language server does not support the import style of

import Hello from '/folder/hello';

using the tsconfig.json setting:

// ...
    "paths": {
      /* Support absolute /imports/* with a leading '/' */
      "/*": ["*"]
    },
// ...

Test case: https://github.com/javoire/sourcegraph-javascript-typescript-langserver-testcase

VSCode supports it (which I believe uses tsserver, and https://github.com/theia-ide/typescript-language-server supports it.

Here's an example result from me using Neovim and https://github.com/autozimu/LanguageClient-neovim:

Annotation 2020-05-09 230733

Cheers

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant