VS Code ESM URLThis extension installs a TS Server plugin which adds partial support for URL
parts in the ESM
The same thing works for TypeScript files, too! InstallationMarketplacehttps://marketplace.visualstudio.com/items?itemName=TomasHubelbauer.vscode-esm-url VSIX
CreditsThe insight and code that makes this extension work was all provided by Kevin Ramharak @kevinramharak via consulting him for advice on the TypeScript Discord. Without him, this extension would not exist. All credit goes to him. Thank you. DevelopmentThis extension is just a super thin shell around the TS Server plugin repository:
https://github.com/tomashubelbauer/tsserver-esm-url PurposeProper ESM URL support in TypeScript is probably months if not years away, this extension fills the void until that is resolved. You can follow the progress along here: https://github.com/microsoft/TypeScript/issues/41730 To-DoAdd a GitHub Actions workflow to package the VSIX and release it to GitHub ReleasesMaybe automate pushing to the Marketplace as well. |