mirror of
https://github.com/salexdv/bsl_console.git
synced 2024-11-28 08:48:48 +02:00
Доработка выделения и перетаскивания с зажатым CTRL #290
This commit is contained in:
parent
539adf6cc2
commit
3b7f15bbbf
@ -1726,8 +1726,12 @@ define(['bslGlobals', 'bslMetadata', 'snippets', 'bsl_language', 'vs/editor/edit
|
||||
|
||||
let target = editor.getModel().getWordAtPosition(position);
|
||||
|
||||
if (target)
|
||||
if (target) {
|
||||
let current_selection = editor.getSelection();
|
||||
let target_selection = new monaco.Range(position.lineNumber, target.startColumn, position.lineNumber, target.endColumn);
|
||||
if (!current_selection.containsRange(target_selection))
|
||||
setSelection(position.lineNumber, target.startColumn, position.lineNumber, target.endColumn)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user