feat(plugins): improve connection lifecycle and session tabs

This commit is contained in:
Freedom authored and GitHub committed 2026-09-18 22:10:37 +08:00
1 parent 6be8d5544e
commit 1321dc9b9d
25 files changed
+849 -44

No files matched your search

+2 -1
View File
@@ -121,8 +121,9 @@ function installBridge(channel) {
const asset = await request("ui.readAsset", { path });
return URL.createObjectURL(new Blob([decode(asset.dataBase64)], { type: asset.contentType }));
},
openWorkbench: (contributionId, context) => request("host.openWorkbench", { contributionId, context }),
openWorkbench: (contributionId, context, options) => request("host.openWorkbench", { contributionId, context, forceNew: !!(options && options.forceNew) }),
openFilesystem: (providerId, context) => request("host.openFilesystem", { providerId, context }),
reopenConnection: (connectionId) => request("host.reopenConnection", { connectionId }),
copy: (text) => request("host.copy", { text }),
onContext: (fn) => listen("context", fn),
onEvent: (fn) => listen("event", fn),