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
In Positron on Workbench, @Trevor-Reid noted that the following popup shows every time the folder is changed:
I was able to reproduce this issue in a local dev build of Positron Server Web as well.
This popup shows even though there may not be any pending changes that could be lost.
I tagged this as a sharp-edge because it is quite easy to run into this popup: any folder change, tab close or tab refresh, and possibly other actions too.
Steps to reproduce the issue:
In Positron Server Web or Positron on Workbench, either
do an action that results in a folder being opened, such as:
Open Folder
Creating a new project via the Project Wizard
Clicking on a folder/workspace in the Recent section of the Welcome page
or, do one of the following to navigate away from the tab:
Refreshing the page
Closing the tab
Then, the popup as shown above appears.
Expected or desired behavior:
Previously, this "Changes you made may not be saved" dialog did not appear when opening a folder and there are no pending changes in an editor.
Were there any error messages in the UI, Output panel, or Developer Tools console?
This change fixes an issue in which Positron prompts to save changes
whenever you try to navigate away from the page in web mode.
It turns out that in web mode (specifically), async shutdown operations
aren't supported, and trying to use them results in this behavior. The
fix is simply to not clear the session list in web mode, which should be
fine as the reason we need to do this has to do with multiple Electron
windows.
Addresses #6062.
### QA Notes
As noted in the issue it's very easy to hit this, so should be easy to
verify as well!
System details:
Positron and OS details:
I think this is likely from the 1.96 merge.
Interpreter details: any
Describe the issue:
In Positron on Workbench, @Trevor-Reid noted that the following popup shows every time the folder is changed:
I was able to reproduce this issue in a local dev build of Positron Server Web as well.
This popup shows even though there may not be any pending changes that could be lost.
I tagged this as a sharp-edge because it is quite easy to run into this popup: any folder change, tab close or tab refresh, and possibly other actions too.
Steps to reproduce the issue:
In Positron Server Web or Positron on Workbench, either
Then, the popup as shown above appears.
Expected or desired behavior:
Previously, this "Changes you made may not be saved" dialog did not appear when opening a folder and there are no pending changes in an editor.
Were there any error messages in the UI, Output panel, or Developer Tools console?
Developer Tools console:
These messages look to be coming from https://github.com/posit-dev/positron/blob/main/src/vs/workbench/services/lifecycle/browser/lifecycleService.ts.
The text was updated successfully, but these errors were encountered: