mirror of
https://github.com/Microsoft/vscode
synced 2024-09-13 21:55:38 +00:00
[html] [rename on type] does not work properly with multicursor. Fixes #88127
This commit is contained in:
parent
bb284a4943
commit
4de754dc13
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue