Merge pull request #1205 from microsoft/dev/mjbvz/chatoutputupdate2

Small fixes to chat output renderer sample
This commit is contained in:
Matt Bierner
2025-08-03 21:46:27 -07:00
committed by GitHub
3 changed files with 3 additions and 3 deletions

View File

@ -25,7 +25,7 @@
"typescript-eslint": "^8.16.0"
},
"engines": {
"vscode": "^1.74.0"
"vscode": "^1.103.0"
}
},
"node_modules/@antfu/install-pkg": {

View File

@ -53,7 +53,7 @@
}
}
],
"chatOutputRenderer": [
"chatOutputRenderers": [
{
"viewType": "vscode-samples.mermaid",
"mimeTypes": [

View File

@ -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