You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem
As part of some code actions, we would like to be able to trigger a file rename operation. For example, microsoft/TypeScript#51772 requests triggering a file rename when you run the mode to new file refactoring
Proposal
Extend the renameFile command or introduce a new command that allows triggering a rename on a specific resource. The editor.action.rename command allows something similar.
I believe this may already be possible using revealInExplorer followed by renameFile. This issue requests a more standardize approach
The text was updated successfully, but these errors were encountered:
Currently the renameFile command is tightly coupled to the explorer and that file actually being rendered in the explorer.
Thus as you correctly assumed what you need can only be done by using two command revealInExplorer and renameFile. If I understand correctly there is currently only one extension needing this, so for now simplly execute those two commands.
When there are more use cases we can investigate into adding a command on the vscode side that would essential just call those two commands
Problem
As part of some code actions, we would like to be able to trigger a file rename operation. For example, microsoft/TypeScript#51772 requests triggering a file rename when you run the
mode to new file
refactoringProposal
Extend the
renameFile
command or introduce a new command that allows triggering a rename on a specific resource. Theeditor.action.rename
command allows something similar.I believe this may already be possible using
revealInExplorer
followed byrenameFile
. This issue requests a more standardize approachThe text was updated successfully, but these errors were encountered: