Refactor > Move to a new File doesn't work

Hello everyone :wave::wave:

First contribution here, apologies if isn’t the right place to share this issue.

I’m trying to use the default option Refactor > Move to a new file but for some reason nothing occurs. I know this feature is default on vscode and works fine there, any idea why isn’t working on Cursor?

Thanks.

3 Likes

Same, with vtsls lsp documentation say :

This action is disabled by default because its correct functioning requires special handling on the client side. Set vtsls.enableMoveToFileCodeAction to true to let the server expose this code action with a _typescript.moveToFileRefactoring command. Command arguments:

Ok i found, open command panel and “TypeScript : Select the TypeScript version” and use workspace version. Install typescript in your project before “npm i typescrit”