diff --git a/src/vs/editor/contrib/rename/browser/rename.ts b/src/vs/editor/contrib/rename/browser/rename.ts index 926d9da07c350..2acae7e75c213 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 {