Closed dr0bz closed 1 year ago
The Move to a new file
code action is came from tsserver, which didn't prompt you for a new file name.
Same behavior in VSCode, this is tsserver's limit.
Thanks for clarification. Then :CocCommand workspace.renameCurrentFile
is the only way i can achieve it.
Precondition: I have a file
feature.ts
with a class in it:What i want to do is to refactor: rename class and the file to Component and component.ts respectively. Class renaming works pretty well, but renaming the file - NOT.
The issue:
Steps to reproduce:
:call CocActionAsync('codeAction', 'cursor')
The Result:
I end up with
My expectation:
CocCommand workspace.renameCurrentFile - works as expected. Am i missing the purpose of 'Move to a new file' function?