add file field for contextDetailResponse message

This commit is contained in:
bobo.yang 2023-05-08 13:16:34 +08:00
parent b267bacbfd
commit 5ed230a071

View File

@ -7,6 +7,6 @@ import { handleRefCommand } from '../context/contextRef';
// return json string
export async function contextDetail(message: any, panel: vscode.WebviewPanel): Promise<void> {
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;
}