Reloading the window triggered a change in ExtensionContext.storageUri
#128237
Labels
extension-host
Extension host issues
under-discussion
Issue is under discussion for relevance, priority, approach
Milestone
Refs: #128234, b1b44a3, microsoft/vscode-remote-repositories-github#34
The Remote Repositories extension uses the
storageUri
to extract the workspace id, which it uses to track the remote repository an its metadata and changes. So, the change in b1b44a3 caused issues as this "id" now changed (because of the sometimes added-[0-9]
suffix). I've fixed Remote Repositories to strip the-[0-9]
suffix so this should be a non-issue for it going forward, but the scenario that trigged this bug (microsoft/vscode-remote-repositories-github#34) might still be an issue for others.In Kai's case, he had a remote repository open in one window on the desktop with some uncommitted changes in it, and then reloaded the window (because of an extension update -- clicked reload from the extensions view). And when the workspace reloaded, all his uncommitted change were "lost". This happened because before the reload there was no
-1
suffix on thestorageUri
, but after the workspace reload there was.So unless there were actually 2 windows open to this workspace (which wasn't the case in this scenario) there shouldn't have been a
-1
suffix added.The text was updated successfully, but these errors were encountered: