Skip to content

[bug ?] command "modaledit.cancelSelection" will delete whole line on selection mode #30

@hihihlo

Description

@hihihlo

assuming has a line text "11 22 33 44" in VSCode, and now selection text is "33" (in selection mode),
I have below setting,
first pair (clipboardCopyAction + cancelSelection) work fine,
second pair (clipboardCutAction + cancelSelection) will delete current line !!?? (after cut "33" into clipboard)
"s": {
"condition": "__selecting",
"true": [
"editor.action.clipboardCopyAction",
"modaledit.cancelSelection"
],
"false": "expandLineSelection" //then auto turn on selection mode
},
"x": {
"condition": "__selecting",
"true": [
"editor.action.clipboardCutAction",
"modaledit.cancelSelection"
//------ below commands has same behavior :
//"modaledit.toggleSelection"
//"modaledit.enterNormal"
],
"false": "deleteRight"
},

thanks for any idea

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions