-
Notifications
You must be signed in to change notification settings - Fork 34.4k
Closed
Labels
apiapi-proposaleditor-code-actionsEditor inplace actions (Ctrl + .)Editor inplace actions (Ctrl + .)insiders-releasedPatch has been released in VS Code InsidersPatch has been released in VS Code Insiderson-testplan
Milestone
Description
Problem
For refactoring such as extract method
or move to file
, it's not always clear which code the action will apply to. This is especially true for languages like TS that try to intelligently expand the user's current selection
Proposal
Let code actions provide one (or potentially many) ranges that they will apply to. This range can then be highlighted as the user arrows through the code action list
For refactorings, this range would be the code in the current file that will be effected by the refactoring
For quick fixes, this range could be the range of the diagnostics that will be fixed (or we could just highlight the diagnostics directly since code actions already provide this info in CodeAction.diagnostics
)
justschen, RedCMD, usernamehw, T-256, tjx666 and 2 more
Metadata
Metadata
Assignees
Labels
apiapi-proposaleditor-code-actionsEditor inplace actions (Ctrl + .)Editor inplace actions (Ctrl + .)insiders-releasedPatch has been released in VS Code InsidersPatch has been released in VS Code Insiderson-testplan