You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support iframe based editors to reparent into floating windows #195715
With floating windows, users have the desire to move editors out of the main window into the child window. Some of our editors use an absolute positioned iframe element that is resized and moved to fit into the editor area it belongs to. This will not work anymore as soon as the editor moves out of the window.
I already made a pass and configured currently unsupported editors with the new AuxWindowUnsupported capability.
This impacts custom editors as well as notebooks.
Steps to move an editor out to a floating window:
remove the AuxWindowUnsupported capability for the editor of choice
open such an editor
trigger the "Move active editor into a new window" action from the command palette
Can I work on this one? My interest is in the notebook editor.
Is it possible to use DOM appendChild to move the iframe from one window to another?
Maybe retainContextWhenHidden: false is an easy case that can be done first? In this case the editor iframe can be safely destroyed and a new one created.
Is it possible to use DOM appendChild to move the iframe from one window to another?
Tomer Chachamu (@r3m0t) thanks for offering help. Unfortunately we can't move/reparent iframe, it is always a re-create if we are moving the notebook editor to aux window. In addition to the challenge with iframe, we have a borrow-editor concept for notebook which needs to tweaked to get this working. I have a draft which I can send a PR for soon.
Activity
r3m0t commentedon Dec 9, 2023
Can I work on this one? My interest is in the notebook editor.
Is it possible to use DOM appendChild to move the iframe from one window to another?
Maybe
retainContextWhenHidden: falseis an easy case that can be done first? In this case the editor iframe can be safely destroyed and a new one created.bpasero commentedon Dec 9, 2023
Tomer Chachamu (@r3m0t) thanks for willing to chime in, I think Peng Lyu (@rebornix) has already started on this so maybe he could comment
r3m0t commentedon Dec 10, 2023
Benjamin Pasero (@bpasero) any of these 'help wanted' or no? https://github.com/microsoft/vscode/issues?q=is%3Aopen+label%3Aworkbench-auxwindow
bpasero commentedon Dec 11, 2023
Thanks for asking, maybe #196148 or #196579. The others seem rather complex to me.
abrahan-munro commentedon Dec 13, 2023
This issue is hard to find as it doesn't contain the text of the error message, so I'm adding that now:
Also, an explicit list of windows that are affected would help with searching, e.g.
rebornix commentedon Dec 13, 2023
Tomer Chachamu (@r3m0t) thanks for offering help. Unfortunately we can't move/reparent iframe, it is always a re-create if we are moving the notebook editor to aux window. In addition to the challenge with iframe, we have a borrow-editor concept for notebook which needs to tweaked to get this working. I have a draft which I can send a PR for soon.
jogibear9988 commentedon Feb 2, 2024
But should the menu item to open in a new window be visible, even if it is not supported?
bpasero commentedon Feb 2, 2024
I think thats fine given we plan on actually resolving this issue this month.
bpasero commentedon Mar 14, 2024
Works now, minus bugs and limitations (dirty non-text based custom editors without backup cannot open in floating windows).