macros
macros copied to clipboard
Weird behaviour when using expandLineSelection and clipboardCutAction
I wanted to create a macro for cutting the line containg the cursor or all lines that are atleast partially contained in the current selection.
To do this, I created this macro:
"cutLines": [ "expandLineSelection", "editor.action.clipboardCutAction" ]
When executing the macro, the current line(s) get removed as expected.
However if there was a selection before running the macro, the clipboard will only contain the selected parts instead of containing the expanded selection.
The same behaviour occurs when using clipboardCopyAction instead of the cut action.