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; }