@huanlin/dsh-plugin-ya-workspace-sidebar 0.8.1 → 0.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/client.js CHANGED
@@ -1320,10 +1320,11 @@ window.__ModuleLoader__.load({
1320
1320
  if (navigation.aborted) return;
1321
1321
  this.replaceMain(sessionId, navigation, "reveal", beforeOpen);
1322
1322
  }
1323
- async forkSession(sessionId) {
1324
- await this.sessions.fork({
1323
+ async forkSession(sessionId, onCreated) {
1324
+ return this.sessions.fork({
1325
1325
  sessionId,
1326
- increaseTitle: true
1326
+ increaseTitle: true,
1327
+ ...onCreated === void 0 ? {} : { onCreated }
1327
1328
  });
1328
1329
  }
1329
1330
  startSession(workspaceId) {