GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||
GeezerVison is showing github.com — Fix Issue #39155 (importModuleSpecifierEnding does not apply for module specifier completions) by Simar-B · Pull Request #42467 · microsoft/TypeScript Conversation
Contributor
Fixes #39155
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
|
There was an error while loading. Please reload this page.
|
My pleasure! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Andrew Branch (@andrewbranch) this does not seem to have any effect for me in TypeScript 4.3. With TypeScript defaults to importing a |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Why are you storing TypeScript code in |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I'm not. #33079 and https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c#how-can-i-make-my-typescript-project-output-esm for some context |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
These are two separate things. If you don't want the linter to complain you need to set that in the settings, so the TS Server knows what extensions you are expecting in your imports. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Did you even read my first comment? I've set the setting to use a Side note: It would be even better to not have to deal with this, but we'll have to wait for the TypeScript team to finalize the ESM support for that. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
I'm sorry, I didn't mean to misunderstand you. That must surely be a bug as specifying I see, what would the upshot of that be? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
They are TypeScript files. But importing them with a |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
AlCalzone I believe you’re describing #44374, fixed by #44602. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
importModuleSpecifierEnding does not apply for module specifier completions (manual imports)
There was an error while loading. Please reload this page.