volarjs / services

MIT License
124 stars 25 forks source link

TypeScript "Move to a new file" code action not working for embedded documents #92

Open johnsoncodehk opened 1 month ago

johnsoncodehk commented 1 month ago

For non-ts files, getEditsForRefactor will hit the following assertion.

Error: Debug Failure. File /.../xxx.yyy has unknown extension.

This is hardcoded by TS in the internal variable extensionsToRemove, and there is currently no way to modify it.