mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-03 15:01:57 +01:00
Mark quickfixes/refactors with Copilot: prefix
This commit is contained in:
@@ -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: '',
|
||||
|
||||
@@ -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: '',
|
||||
|
||||
Reference in New Issue
Block a user