Skip to content

vscode extension fails with new refactoring "move to file" #420

Open
@SantoJambit

Description

@SantoJambit

Initial checklist

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    🌊 blocked/upstreamThis cannot progress before something external happens first🐛 type/bugThis is a problem👍 phase/yesPost is accepted and can be worked on👶 semver/patchThis is a backwards-compatible fix🗄 area/interfaceThis affects the public interface

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions