fix(vscode): make session markdown export save/reveal work

This commit is contained in:
Bohdan Triapitsyn
2026-04-17 18:46:13 +03:00
parent 89800146c0
commit b3f2732dff
4 changed files with 94 additions and 2 deletions
+6
View File
@@ -113,6 +113,12 @@ export const createVSCodeFilesAPI = (): FilesAPI => ({
};
},
async revealPath(path: string): Promise<{ success: boolean }> {
const target = normalizePath(path);
const data = await sendBridgeMessage<{ success?: boolean }>('api:fs:reveal', { path: target });
return { success: Boolean(data?.success) };
},
async execCommands(commands: string[], cwd: string): Promise<{ success: boolean; results: CommandExecResult[] }> {
const targetCwd = normalizePath(cwd);
const data = await sendBridgeMessageWithOptions<{ success: boolean; results?: CommandExecResult[] }>('api:fs:exec', {