mirror of
https://github.com/microsoft/vscode.git
synced 2026-07-15 16:34:50 +01:00
3338ff4e18
Fixes #100536 These commands currently do not work because: - The use the `hasFocus` check in layout.ts - This looks at the active element and checks if the active element has a parent in the editor dom - However webviews are outside of the normal dom flow (since they cannot be reparented without being destroyred) To fix this, this PR adds allows dom node to point to their explicit parent using `setParentFlowTo`. Instead of a normal ancestor check, we then check ancestors while observing the flow to parents of node The webview element is then update to have a parent flow to that points at its editor node