serenadeai / code

Serenade for Visual Studio Code
MIT License
86 stars 11 forks source link

Send Current Selection With Editor State (SER-919) #29

Closed mpren11 closed 3 years ago

mpren11 commented 3 years ago
linear[bot] commented 3 years ago
SER-919 Make it possible to use current selection as default for commands with selectors

e.g. if i currently have some text selected in vscode, `surround with quotes` (or potentially `surround current with quotes`) should apply on the selection. it'd be invalid if there was no selection. This probably applies to lots of commands that apply on selectors. [**tommy**](https://app.slack.com/team/U9U7LGKS9)  [4:36 PM](https://serenade.slack.com/archives/C01ML224WKS/p1621640200003700)\ we can add cursorEnd to EditorState so the server can do this