[html] [rename on type] does not work properly with multicursor. Fixes #88127

This commit is contained in:
Martin Aeschlimann 2020-08-18 21:58:33 +02:00
parent bb284a4943
commit 4de754dc13

View file

@ -106,6 +106,10 @@ export class OnTypeRenameContribution extends Disposable implements IEditorContr
}
this._localToDispose.add(this._editor.onDidChangeCursorPosition((e) => {
if (e.secondaryPositions.length > 0) {
this.clearLinkedUI(); // multi-cursor, don't run
return;
}
// no regions, run
if (this._currentDecorations.length === 0) {
this.updateLinkedUI(e.position);