-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cant get "Move to a new file" code action working. #216
Comments
Seems identical: microsoft/TypeScript#59650. Does this happen after upgrade to typescript 5.7? |
Nope, tested with 5.7.3:
|
I do not know, why it expects the symbol to be a module. Might be related with ESM & specific tsconfig settings? It is failing at moving "export async function foobar() { /* ...code */}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
every time i hit move to a new file, i get this error:
-32603: Request codeAction/resolve failed with message: TypeScript Server Error (5.6.2)
Debug Failure.
Error: Debug Failure.
at Object.addImportFromExportedSymbol (/home/niraj/.local/share/nvim/mason/packages/vtsls/node_modules/@vtsls/language-server/node_modules/typescript/lib/typescript.js:155208:32)
at /home/niraj/.local/share/nvim/mason/packages/vtsls/node_modules/@vtsls/language-server/node_modules/typescript/lib/typescript.js:145116:19
at Map.forEach ()
at addTargetFileImports (/home/niraj/.local/share/nvim/mason/packages/vtsls/node_modules/@vtsls/language-server/node_modules/typescript/lib/typescript.js:145110:17)
at getNewStatementsAndRemoveFromOldFile (/home/niraj/.local/share/nvim/mason/packages/vtsls/node_modules/@vtsls/language-server/node_modules/typescript/lib/typescript.js:144331:3)
at doChange4 (/home/niraj/.local/share/nvim/mason/packages/vtsls/node_modules/@vtsls/language-server/node_modules/typescript/lib/typescript.js:145334:3)
at /home/niraj/.local/share/nvim/mason/packages/vtsls/node_modules/@vtsls/language-server/node_modules/typescript/lib/typescript.js:145323:77
at _ChangeTracker.with (/home/niraj/.local/share/nvim/mason/packages/vtsls/node_modules/@vtsls/language-server/node_modules/typescript/lib/typescript.js:175532:5)
at Object.getRefactorEditsToMoveToNewFile [as getEditsForAction] (/home/niraj/.local/share/nvim/mason/packages/vtsls/node_modules/@vtsls/language-server/node_modules/typescript/lib/typescript.js:145323:60)
at Object.getEditsForRefactor (/home/niraj/.local/share/nvim/mason/packages/vtsls/node_modules/@vtsls/language-server/node_modules/typescript/lib/typescript.js:143422:31)
at Object.getEditsForRefactor2 [as getEditsForRefactor] (/home/niraj/.local/share/nvim/mason/packages/vtsls/node_modules/@vtsls/language-server/node_modules/typescript/lib/typescript.js:150903:32)
at IpcIOSession.getEditsForRefactor (/home/niraj/.local/share/nvim/mason/packages/vtsls/node_modules/@vtsls/language-server/node_modules/typescript/lib/typescript.js:192236:49)
at getEditsForRefactor (/home/niraj/.local/share/nvim/mason/packages/vtsls/node_modules/@vtsls/language-server/node_modules/typescript/lib/typescript.js:190435:43)
at /home/niraj/.local/share/nvim/mason/packages/vtsls/node_modules/@vtsls/language-server/node_modules/typescript/lib/typescript.js:192655:15
at IpcIOSession.executeWithRequestId (/home/niraj/.local/share/nvim/mason/packages/vtsls/node_modules/@vtsls/language-server/node_modules/typescript/lib/typescript.js:192644:14)
at IpcIOSession.executeCommand (/home/niraj/.local/share/nvim/mason/packages/vtsls/node_modules/@vtsls/language-server/node_modules/typescript/lib/typescript.js:192653:29)
at IpcIOSession.onMessage (/home/niraj/.local/share/nvim/mason/packages/vtsls/node_modules/@vtsls/language-server/node_modules/typescript/lib/typescript.js:192701:68)
at process. (/home/niraj/.local/share/nvim/mason/packages/vtsls/node_modules/@vtsls/language-server/node_modules/typescript/lib/tsserver.js:525:14)
at process.emit (node:events:519:28)
at emit (node:internal/child_process:951:14)
at process.processTicksAndRejections (node:internal/process/task_queues:83:21)
The text was updated successfully, but these errors were encountered: