Support leading slash imports using "paths" in tsconfig.json
javoire opened this issue · 0 comments
javoire commented
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:
Cheers
