Mark quickfixes/refactors with Copilot: prefix

This commit is contained in:
Nathan Shively-Sanders 2023-09-20 15:37:34 -07:00
parent 530870bd40
commit 6c154dd347
2 changed files with 4 additions and 0 deletions

View file

@ -371,6 +371,7 @@ class TypeScriptQuickFixProvider implements vscode.CodeActionProvider<VsCodeCode
};
}
if (expand && message !== undefined) {
codeAction.command.title = 'Copilot: ' + codeAction.command.title;
codeAction.command = {
command: CompositeCommand.ID,
title: '',

View file

@ -386,6 +386,9 @@ class InlinedCodeAction extends vscode.CodeAction {
if (response.body.renameLocation) {
// Disable renames in interactive playground https://github.com/microsoft/vscode/issues/75137
if (this.document.uri.scheme !== fileSchemes.walkThroughSnippet) {
if (this.copilotRename && this.command) {
this.command.title = 'Copilot: ' + this.command.title;
}
this.command = {
command: CompositeCommand.ID,
title: '',