mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 21:09:43 +00:00
rename suggestions: fix: missing sparkle icon when automatic suggestions are off
This commit is contained in:
parent
69d27c5e4e
commit
a8608a26c0
|
@ -370,6 +370,9 @@ export class RenameWidget implements IRenameWidget, IContentWidget, IDisposable
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @param requestRenameCandidates is `undefined` when there are no rename suggestion providers
|
||||
*/
|
||||
getInput(
|
||||
where: IRange,
|
||||
currentName: string,
|
||||
|
@ -526,6 +529,7 @@ export class RenameWidget implements IRenameWidget, IContentWidget, IDisposable
|
|||
const candidates = this._requestRenameCandidatesOnce(triggerKind, this._renameCandidateProvidersCts.token);
|
||||
|
||||
if (candidates.length === 0) {
|
||||
this._inputWithButton.setSparkleButton();
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue