mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 21:09:43 +00:00
Mark quickfixes/refactors with Copilot: prefix
This commit is contained in:
parent
530870bd40
commit
6c154dd347
|
@ -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: '',
|
||||
|
|
Loading…
Reference in a new issue