Clear opened file history. #16588
Replies: 3 comments 1 reply
-
|
Hey @vipapikyan-cyber, Widgets that can be stored/restored upon application startup usually implement the I believe should be able to override the functions externally (or remove them completely) to ensure that they are not longer respected by the shell restorer. EditorWidget.prototype.storeState = () => undefined;
EditorWidget.prototype.restoreState = () => { }; |
Beta Was this translation helpful? Give feedback.
-
|
Hi @msujew, hi @sdirix. I also looked into customizing ShellLayoutRestorer, but this closed all widgets, I only want to close previously opened files, not everything((like Messages, etc.). I’m using Theia 1.62.2, and this version doesn’t have ShellLayoutTransformer, so I’m trying to find a way to clear only the opened files during startup. |
Beta Was this translation helpful? Give feedback.
-
|
Hi, |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a Theia Electron application, and each time I start it, the previously opened files are automatically restored in the main editor area. How can I clear this history so that no files are opened from the previous session on new startup?
Beta Was this translation helpful? Give feedback.
All reactions