File tree Expand file tree Collapse file tree 3 files changed +5
-31
lines changed
src/vs/workbench/contrib/chat Expand file tree Collapse file tree 3 files changed +5
-31
lines changed Original file line number Diff line number Diff line change @@ -157,6 +157,10 @@ export class CancelAction extends Action2 {
157
157
id : MenuId . ChatExecute ,
158
158
when : CONTEXT_CHAT_REQUEST_IN_PROGRESS ,
159
159
group : 'navigation' ,
160
+ } ,
161
+ keybinding : {
162
+ weight : KeybindingWeight . WorkbenchContrib ,
163
+ primary : KeyMod . CtrlCmd | KeyCode . Escape ,
160
164
}
161
165
} ) ;
162
166
}
Original file line number Diff line number Diff line change @@ -821,20 +821,7 @@ export class ChatModel extends Disposable implements IChatModel {
821
821
followups : r . response ?. followups ,
822
822
isCanceled : r . response ?. isCanceled ,
823
823
vote : r . response ?. vote ,
824
- agent : r . response ?. agent ?
825
- // May actually be the full IChatAgent instance, just take the data props. slashCommands don't matter here.
826
- {
827
- id : r . response . agent . id ,
828
- name : r . response . agent . name ,
829
- description : r . response . agent . description ,
830
- extensionId : r . response . agent . extensionId ,
831
- metadata : r . response . agent . metadata ,
832
- slashCommands : [ ] ,
833
- locations : r . response . agent . locations ,
834
- isDefault : r . response . agent . isDefault ,
835
- extensionPublisher : r . response . agent . extensionPublisher
836
- }
837
- : undefined ,
824
+ agent : r . response ?. agent ,
838
825
slashCommand : r . response ?. slashCommand ,
839
826
usedContext : r . response ?. usedContext ,
840
827
contentReferences : r . response ?. contentReferences
Original file line number Diff line number Diff line change @@ -81,23 +81,6 @@ export class ChatRequestAgentPart implements IParsedChatRequestPart {
81
81
get promptText ( ) : string {
82
82
return '' ;
83
83
}
84
-
85
- /**
86
- * Don't stringify all the agent methods, just data.
87
- */
88
- toJSON ( ) : any {
89
- return {
90
- kind : this . kind ,
91
- range : this . range ,
92
- editorRange : this . editorRange ,
93
- agent : {
94
- id : this . agent . id ,
95
- name : this . agent . name ,
96
- description : this . agent . description ,
97
- metadata : this . agent . metadata
98
- }
99
- } ;
100
- }
101
84
}
102
85
103
86
/**
You can’t perform that action at this time.
0 commit comments