mirror of
https://github.com/microsoft/vscode-extension-samples.git
synced 2026-04-27 16:55:44 +08:00
Merge pull request #1205 from microsoft/dev/mjbvz/chatoutputupdate2
Small fixes to chat output renderer sample
This commit is contained in:
2
chat-output-renderer-sample/package-lock.json
generated
2
chat-output-renderer-sample/package-lock.json
generated
@ -25,7 +25,7 @@
|
||||
"typescript-eslint": "^8.16.0"
|
||||
},
|
||||
"engines": {
|
||||
"vscode": "^1.74.0"
|
||||
"vscode": "^1.103.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@antfu/install-pkg": {
|
||||
|
||||
@ -53,7 +53,7 @@
|
||||
}
|
||||
}
|
||||
],
|
||||
"chatOutputRenderer": [
|
||||
"chatOutputRenderers": [
|
||||
{
|
||||
"viewType": "vscode-samples.mermaid",
|
||||
"mimeTypes": [
|
||||
|
||||
@ -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
|
||||
|
||||
Reference in New Issue
Block a user