fix: preserve document pane workspace handle

This commit is contained in:
lix-2026
2026-05-26 01:04:35 +08:00
parent ee5aeb45be
commit 634d0b21f8
2 changed files with 2 additions and 2 deletions
@@ -58,7 +58,7 @@ import {
if (panesBootstrap.secondaryInvalid === true) clearSecondaryParams(); if (panesBootstrap.secondaryInvalid === true) clearSecondaryParams();
installSecondaryPaneOpenListeners(); installSecondaryPaneOpenListeners();
installSecondaryPaneCloseButtons(); installSecondaryPaneCloseButtons();
const { applyStoredSecondaryWidth } = createSecondaryPaneWidthController(); const { workspace, applyStoredSecondaryWidth } = createSecondaryPaneWidthController();
applyStoredSecondaryWidth(); applyStoredSecondaryWidth();
const paneRuntimes = panesBootstrap.panes const paneRuntimes = panesBootstrap.panes
@@ -139,7 +139,7 @@ export const createSecondaryPaneWidthController = () => {
}); });
} }
return { applyStoredSecondaryWidth }; return { workspace, applyStoredSecondaryWidth };
}; };
export const buildPaneRuntime = (paneDescriptor, rootSelector) => { export const buildPaneRuntime = (paneDescriptor, rootSelector) => {