diff --git a/chat-output-renderer-sample/package-lock.json b/chat-output-renderer-sample/package-lock.json index 61a3869d10..db7204e930 100644 --- a/chat-output-renderer-sample/package-lock.json +++ b/chat-output-renderer-sample/package-lock.json @@ -25,7 +25,7 @@ "typescript-eslint": "^8.16.0" }, "engines": { - "vscode": "^1.74.0" + "vscode": "^1.103.0" } }, "node_modules/@antfu/install-pkg": { diff --git a/chat-output-renderer-sample/package.json b/chat-output-renderer-sample/package.json index 18a18e04b9..e74dcd4838 100644 --- a/chat-output-renderer-sample/package.json +++ b/chat-output-renderer-sample/package.json @@ -53,7 +53,7 @@ } } ], - "chatOutputRenderer": [ + "chatOutputRenderers": [ { "viewType": "vscode-samples.mermaid", "mimeTypes": [ diff --git a/chat-output-renderer-sample/src/extension.ts b/chat-output-renderer-sample/src/extension.ts index e1fa8f6802..b9e7c6d10e 100644 --- a/chat-output-renderer-sample/src/extension.ts +++ b/chat-output-renderer-sample/src/extension.ts @@ -52,7 +52,7 @@ export function activate(context: vscode.ExtensionContext) { // It can also be invoked when rendering old Mermaid diagrams in the chat history. context.subscriptions.push( vscode.chat.registerChatOutputRenderer(viewType, { - async renderChatOutput({value}, webview, _ctx, _token) { + async renderChatOutput({ value }, webview, _ctx, _token) { const mermaidSource = new TextDecoder().decode(value); // Set the options for the webview