Skip to content

Commit 77b5cf8

Browse files
authored
Update to @jupyter/chat 0.14.0 (#108)
* Update to `@jupyter/chat` 0.14.0 * yarn.lock
1 parent 9826a7b commit 77b5cf8

File tree

3 files changed

+423
-12
lines changed

3 files changed

+423
-12
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"watch:labextension": "jupyter labextension watch ."
5757
},
5858
"dependencies": {
59-
"@jupyter/chat": "^0.12.0",
59+
"@jupyter/chat": "^0.14.0",
6060
"@jupyterlab/application": "^4.4.0",
6161
"@jupyterlab/apputils": "^4.5.0",
6262
"@jupyterlab/completer": "^4.4.0",

src/chat-handler.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ export namespace ChatHandler {
233233
description: 'Clear the chat'
234234
}
235235
];
236-
async getChatCommands(inputModel: IInputModel) {
236+
async listCommandCompletions(inputModel: IInputModel) {
237237
const match = inputModel.currentWord?.match(/^\/\w*/)?.[0];
238238
if (!match) {
239239
return [];
@@ -245,10 +245,7 @@ export namespace ChatHandler {
245245
return commands;
246246
}
247247

248-
async handleChatCommand(
249-
command: ChatCommand,
250-
inputModel: IInputModel
251-
): Promise<void> {
248+
async onSubmit(inputModel: IInputModel): Promise<void> {
252249
// no handling needed because `replaceWith` is set in each command.
253250
return;
254251
}

0 commit comments

Comments
 (0)