From 5ed230a071d27ac29af643aa535ee4f69a396278 Mon Sep 17 00:00:00 2001 From: "bobo.yang" Date: Mon, 8 May 2023 13:16:34 +0800 Subject: [PATCH] add file field for contextDetailResponse message --- src/handler/contextDetail.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/handler/contextDetail.ts b/src/handler/contextDetail.ts index 5b84a65..a1bda68 100644 --- a/src/handler/contextDetail.ts +++ b/src/handler/contextDetail.ts @@ -7,6 +7,6 @@ import { handleRefCommand } from '../context/contextRef'; // return json string export async function contextDetail(message: any, panel: vscode.WebviewPanel): Promise { const fileContent = fs.readFileSync(message.file, 'utf-8'); - panel.webview.postMessage({ command: 'contextDetailResponse', result: fileContent }); + panel.webview.postMessage({ command: 'contextDetailResponse', 'file':message.file, result: fileContent }); return; }