File tree Expand file tree Collapse file tree 3 files changed +423
-12
lines changed Expand file tree Collapse file tree 3 files changed +423
-12
lines changed Original file line number Diff line number Diff line change 56
56
"watch:labextension" : " jupyter labextension watch ."
57
57
},
58
58
"dependencies" : {
59
- "@jupyter/chat" : " ^0.12 .0" ,
59
+ "@jupyter/chat" : " ^0.14 .0" ,
60
60
"@jupyterlab/application" : " ^4.4.0" ,
61
61
"@jupyterlab/apputils" : " ^4.5.0" ,
62
62
"@jupyterlab/completer" : " ^4.4.0" ,
Original file line number Diff line number Diff line change @@ -233,7 +233,7 @@ export namespace ChatHandler {
233
233
description : 'Clear the chat'
234
234
}
235
235
] ;
236
- async getChatCommands ( inputModel : IInputModel ) {
236
+ async listCommandCompletions ( inputModel : IInputModel ) {
237
237
const match = inputModel . currentWord ?. match ( / ^ \/ \w * / ) ?. [ 0 ] ;
238
238
if ( ! match ) {
239
239
return [ ] ;
@@ -245,10 +245,7 @@ export namespace ChatHandler {
245
245
return commands ;
246
246
}
247
247
248
- async handleChatCommand (
249
- command : ChatCommand ,
250
- inputModel : IInputModel
251
- ) : Promise < void > {
248
+ async onSubmit ( inputModel : IInputModel ) : Promise < void > {
252
249
// no handling needed because `replaceWith` is set in each command.
253
250
return ;
254
251
}
You can’t perform that action at this time.
0 commit comments