From 20cd4e4bc37163537d3f4f43178f86ac31bfa1b4 Mon Sep 17 00:00:00 2001 From: Johannes Rieken Date: Thu, 16 Nov 2023 16:25:59 +0100 Subject: [PATCH] fix https://github.com/microsoft/vscode/issues/198423 (#198443) --- src/vs/editor/contrib/rename/browser/rename.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/vs/editor/contrib/rename/browser/rename.ts b/src/vs/editor/contrib/rename/browser/rename.ts index 926d9da07c3..2acae7e75c2 100644 --- a/src/vs/editor/contrib/rename/browser/rename.ts +++ b/src/vs/editor/contrib/rename/browser/rename.ts @@ -74,6 +74,10 @@ class RenameSkeleton { return res; } + // we are here when no provider prepared a location which means we can + // just rely on the word under cursor and start with the first provider + this._providerRenameIdx = 0; + const word = this.model.getWordAtPosition(this.position); if (!word) { return {