Skip to content

Commit 4de754d

Browse files
committed
[html] [rename on type] does not work properly with multicursor. Fixes microsoft#88127
1 parent bb284a4 commit 4de754d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/vs/editor/contrib/rename/onTypeRename.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,10 @@ export class OnTypeRenameContribution extends Disposable implements IEditorContr
106106
}
107107

108108
this._localToDispose.add(this._editor.onDidChangeCursorPosition((e) => {
109+
if (e.secondaryPositions.length > 0) {
110+
this.clearLinkedUI(); // multi-cursor, don't run
111+
return;
112+
}
109113
// no regions, run
110114
if (this._currentDecorations.length === 0) {
111115
this.updateLinkedUI(e.position);

0 commit comments

Comments
 (0)