Description
Initial checklist
- I read the support docs
- I read the contributing guide
- I agree to follow the code of conduct
- I searched issues and couldn’t find anything (or linked relevant results below)
Affected packages and versions
1.8.2
Link to runnable example
No response
Steps to reproduce
- Install the extension
- create an .mdx file and two .ts files
- try to move something from one ts file to another via the new refactoring "move to file"
- observe the error shown by vscode
Expected behavior
vscode should show the file selection popup (it does without the extension installed)
Actual behavior
An error pops up:
TypeScript Server Error (5.4.2)
Debug Failure. File /.../file.mdx has unknown extension.
Error: Debug Failure. File /.../file.mdx has unknown extension.
at extensionFromPath (/.../node_modules/typescript/lib/tsserver.js:21381:39)
at /.../node_modules/typescript/lib/tsserver.js:147260:33
at mapDefined (/.../node_modules/typescript/lib/tsserver.js:2680:22)
at Proxy.getMoveToRefactoringFileSuggestions (/.../node_modules/typescript/lib/tsserver.js:147259:19)
at IpcIOSession.getMoveToRefactoringFileSuggestions (/.../node_modules/typescript/lib/tsserver.js:187171:41)
at getMoveToRefactoringFileSuggestions (/.../node_modules/typescript/lib/tsserver.js:185370:43)
at /.../node_modules/typescript/lib/tsserver.js:187524:69
at IpcIOSession.executeWithRequestId (/.../node_modules/typescript/lib/tsserver.js:187516:14)
at IpcIOSession.executeCommand (/.../node_modules/typescript/lib/tsserver.js:187524:29)
at IpcIOSession.onMessage (/.../node_modules/typescript/lib/tsserver.js:187566:51)
at process. (/.../node_modules/typescript/lib/tsserver.js:189175:14)
at process.emit (node:events:514:28)
at emit (node:internal/child_process:937:14)
at process.processTicksAndRejections (node:internal/process/task_queues:83:21)
Runtime
Other (please specify in steps to reproduce)
Package manager
Other (please specify in steps to reproduce)
OS
Linux
Build and bundle tools
Other (please specify in steps to reproduce)