Use more generic title for code action lightbulb

Fixes #129238
This commit is contained in:
Matt Bierner 2021-08-16 14:32:29 -07:00
parent c094fcf995
commit 28a0006850
No known key found for this signature in database
GPG key ID: 099C331567E11888

View file

@ -209,7 +209,7 @@ export class LightBulbWidget extends Disposable implements IContentWidget {
const preferredKb = this._keybindingService.lookupKeybinding(this._preferredFixActionId);
if (preferredKb) {
this.title = nls.localize('prefferedQuickFixWithKb', "Show Fixes. Preferred Fix Available ({0})", preferredKb.getLabel());
this.title = nls.localize('preferredcodeActionWithKb', "Show Code Actions. Preferred Quick Fix Available ({0})", preferredKb.getLabel());
return;
}
}
@ -220,9 +220,9 @@ export class LightBulbWidget extends Disposable implements IContentWidget {
const kb = this._keybindingService.lookupKeybinding(this._quickFixActionId);
if (kb) {
this.title = nls.localize('quickFixWithKb', "Show Fixes ({0})", kb.getLabel());
this.title = nls.localize('codeActionWithKb', "Show Code Actions ({0})", kb.getLabel());
} else {
this.title = nls.localize('quickFix', "Show Fixes");
this.title = nls.localize('codeAction', "Show Code Actions");
}
}