helix icon indicating copy to clipboard operation
helix copied to clipboard

Allow adding options in menu and picker

Open Philipp-M opened this issue 3 years ago • 0 comments
trafficstars

This PR allows retaining the current selected option in either the menu or the picker, when calling score (as long, as it's still in there, after calling score). This is useful when extending the options later (via a new function add_options) in the picker or menu, which is the second addition in this PR.

This change is a requirement for #2507. In itself it doesn't change the current behavior of the editor. In #2507, this is needed, because multiple language-servers send their results async (e.g. completion, code-actions or symbol-picker)

Philipp-M avatar Jul 15 '22 09:07 Philipp-M