Skip to content

Commit

Permalink
Do not autostore cloud changes on reload in web (#173386)
Browse files Browse the repository at this point in the history
  • Loading branch information
joyceerhl committed Feb 3, 2023
1 parent dfb9b66 commit 91fccee
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ import { ViewPaneContainer } from 'vs/workbench/browser/parts/views/viewPaneCont
import { IInstantiationService } from 'vs/platform/instantiation/common/instantiation';
import { EditSessionsDataViews } from 'vs/workbench/contrib/editSessions/browser/editSessionsViews';
import { EditSessionsFileSystemProvider } from 'vs/workbench/contrib/editSessions/browser/editSessionsFileSystemProvider';
import { isNative } from 'vs/base/common/platform';
import { isNative, isWeb } from 'vs/base/common/platform';
import { VirtualWorkspaceContext, WorkspaceFolderCountContext } from 'vs/workbench/common/contextkeys';
import { CancellationToken, CancellationTokenSource } from 'vs/base/common/cancellation';
import { equals } from 'vs/base/common/objects';
Expand Down Expand Up @@ -221,7 +221,7 @@ export class EditSessionsContribution extends Disposable implements IWorkbenchCo
}

private async autoStoreEditSession() {
if (this.configurationService.getValue('workbench.experimental.cloudChanges.autoStore') === 'onShutdown') {
if (this.configurationService.getValue('workbench.experimental.cloudChanges.autoStore') === 'onShutdown' && !isWeb) {
const cancellationTokenSource = new CancellationTokenSource();
await this.progressService.withProgress({
location: ProgressLocation.Window,
Expand Down Expand Up @@ -1038,7 +1038,7 @@ Registry.as<IConfigurationRegistry>(ConfigurationExtensions.Configuration).regis
'type': 'string',
'tags': ['experimental', 'usesOnlineServices'],
'default': 'off',
'markdownDescription': localize('autoStoreWorkingChangesDescription', "Controls whether to automatically store available working changes in the cloud for the current workspace."),
'markdownDescription': localize('autoStoreWorkingChangesDescription', "Controls whether to automatically store available working changes in the cloud for the current workspace. This setting has no effect in the web."),
},
'workbench.cloudChanges.autoResume': {
enum: ['onReload', 'off'],
Expand Down

0 comments on commit 91fccee

Please sign in to comment.