Update src/browser/services/SelectionService.ts

This commit is contained in:
Daniel Imms
2021-03-30 06:19:34 -07:00
committed by GitHub
parent b7e0489a53
commit 04092c80e8
+1
View File
@@ -319,6 +319,7 @@ export class SelectionService extends Disposable implements ISelectionService {
* @param event The mouse event.
*/
private _selectWordAtCursor(event: MouseEvent, allowWhitespaceOnlySelection: boolean): boolean {
// Check if there is a link under the cursor first and select that if so
const range = this._linkifier.currentLink?.link?.range;
if (range) {
this._model.selectionStart = [range.start.x - 1, range.start.y - 1];