Skip to content

No way to use runCommands with editor.action.triggerSuggest #177750

Closed as not planned
@zardoy

Description

@zardoy

I want to build action with using completion lists (suggest widget - e.g. accept first/second completion and so on)

STR:

[
    {
        "key": "alt+c",
        "command": "runCommands",
        "args": {
            "commands": [
                "editor.action.triggerSuggest",
                "acceptSelectedSuggestion"
            ]
        }
    }
]

(optionally add "selectNextSuggestion" in between)

Doesn't work, widget is shown, but suggestion not accepted.

And... I ideally have a fix for this in #166094, it works so well that even suggest widget blinking is not visible.

Mentioning @ulugbekna as I believe you added this wonderful command (at least I saw #177722)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions