Replies: 1 comment
-
That should be configured through the lsp config which on the latest release you can specify like this (you might also be able to specify this in a tsconfig.json): [[language]]
name = "typescript"
[language.config.preferences]
importModuleSpecifier = "non-relative" On master it would be [language-server.typescript-language-server.config.preferences]
importModuleSpecifier = "non-relative" |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'd like to ask for a feature where I don't know much about the technical burdens this would bring.
I'm working on a big Angular project where we decided to do path aliases, to declutter our imports.
From this
To this
This is achieved by setting up
tsconfig.json
like that:So what I'd like to ask is, could we have something that the "auto-import" thing which is going on respects my
tsconfig.json
and suggests to use the path alias for importing instead of the filepath and filename like it is right now?This works in VSCodium (VSCode) by setting
typescript.preferences.importModuleSpecifier
tonon-relative
.I hope this is not too confusing, and would love to answer questions if there are some.
Beta Was this translation helpful? Give feedback.
All reactions