geddski / geddski/macros

Weird behaviour when using expandLineSelection and clipboardCutAction

Open
#7 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
177
Forks
36
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.