-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
New option for typescript.preferences.importModuleSpecifier
to use relative only if path starts with ./
#48192
Comments
./
typescript.preferences.importModuleSpecifier
to use relative only if path starts with ./
+1 as described is exactly what I'd like as well.
|
Duplicate of #45015. |
This issue has been marked as "Duplicate" and has seen no recent activity. It has been automatically closed for house-keeping purposes. |
I would like an option to import modules using always non-relative urls except if it can be a relative url starting with
./
.non-relative
is great to show the full path the file is referenced, specially if the relative path have several../
path segments.shortest
still can show several../
path segments if relative path is shorter than the non-relative path. This new option will avoid../
at all costs but can use relative if the file is located under the same folder of the current file.An extra option would be to also allow one single
../
as it is going up the path just once which it is not very confusing either.The text was updated successfully, but these errors were encountered: