volar-plugins icon indicating copy to clipboard operation
volar-plugins copied to clipboard

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

Open johnsoncodehk opened this issue 1 year ago • 1 comments

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.

johnsoncodehk avatar May 10 '24 02:05 johnsoncodehk

Is it really not possible to fix this issue without patching TS? :-?... If so, I feel like we should tag the TS maintainer to ask or open an issue on TS to get their attention.

louisgv avatar Aug 23 '24 17:08 louisgv