Skip to content

Commit

Permalink
smart select - use cursor position, not selection start, when making …
Browse files Browse the repository at this point in the history
…a selection range request microsoft/language-server-protocol#613
  • Loading branch information
jrieken committed Dec 17, 2018
1 parent 12682da commit a73a315
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vs/editor/contrib/smartSelect/smartSelect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class SmartSelectController implements IEditorContribution {
let promise: Promise<void> = Promise.resolve(void 0);

if (!this._state) {
promise = provideSelectionRanges(model, selection.getStartPosition(), CancellationToken.None).then(ranges => {
promise = provideSelectionRanges(model, selection.getPosition(), CancellationToken.None).then(ranges => {
if (!arrays.isNonEmptyArray(ranges)) {
// invalid result
return;
Expand Down

0 comments on commit a73a315

Please sign in to comment.