macros icon indicating copy to clipboard operation
macros copied to clipboard

Weird behaviour when using expandLineSelection and clipboardCutAction

Open mayjs opened this issue 9 years ago • 0 comments

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.

mayjs avatar Feb 04 '17 21:02 mayjs