Skip to content

Commit f9d332c

Browse files
authored
Document experimental setting, sessionSync -> editSessions (microsoft#152808)
1 parent 389aa8a commit f9d332c

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

src/vs/workbench/api/common/extHostApiCommands.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ const newCommands: ApiCommand[] = [
439439
),
440440
// --- continue edit session
441441
new ApiCommand(
442-
'vscode.experimental.editSession.continue', '_workbench.experimental.sessionSync.actions.continueEditSession', 'Continue the current edit session in a different workspace',
442+
'vscode.experimental.editSession.continue', '_workbench.experimental.editSessions.actions.continueEditSession', 'Continue the current edit session in a different workspace',
443443
[ApiCommandArgument.Uri.with('workspaceUri', 'The target workspace to continue the current edit session in')],
444444
ApiCommandResult.Void
445445
)

src/vs/workbench/browser/workbench.contribution.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -486,6 +486,12 @@ const registry = Registry.as<IConfigurationRegistry>(ConfigurationExtensions.Con
486486
'description': localize('layoutControlType', "Controls whether the layout control in the custom title bar is displayed as a single menu button or with multiple UI toggles."),
487487
'markdownDeprecationMessage': localize({ key: 'layoutControlTypeDeprecation', comment: ['{0} is a placeholder for a setting identifier.'] }, "This setting has been deprecated in favor of {0}", '`#workbench.layoutControl.type#`')
488488
},
489+
'workbench.experimental.editSessions.enabled': {
490+
'type': 'boolean',
491+
'tags': ['experimental'],
492+
'default': false,
493+
'markdownDescription': localize('editSessionsEnabled', "Controls whether to display cloud-enabled actions to store and resume uncommitted changes when switching between web, desktop, or devices."),
494+
},
489495
'workbench.experimental.editor.dropIntoEditor.enabled': {
490496
'type': 'boolean',
491497
'default': true,

src/vs/workbench/contrib/sessionSync/browser/sessionSync.contribution.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@ import { IEnvironmentService } from 'vs/platform/environment/common/environment'
3333
registerSingleton(ISessionSyncWorkbenchService, SessionSyncWorkbenchService);
3434

3535
const resumeLatestCommand = {
36-
id: 'workbench.experimental.sessionSync.actions.resumeLatest',
36+
id: 'workbench.experimental.editSessions.actions.resumeLatest',
3737
title: localize('resume latest', "{0}: Resume Latest Edit Session", EDIT_SESSION_SYNC_TITLE),
3838
};
3939
const storeCurrentCommand = {
40-
id: 'workbench.experimental.sessionSync.actions.storeCurrent',
40+
id: 'workbench.experimental.editSessions.actions.storeCurrent',
4141
title: localize('store current', "{0}: Store Current Edit Session", EDIT_SESSION_SYNC_TITLE),
4242
};
4343
const continueEditSessionCommand = {
44-
id: '_workbench.experimental.sessionSync.actions.continueEditSession',
44+
id: '_workbench.experimental.editSessions.actions.continueEditSession',
4545
title: localize('continue edit session', "{0}: Continue Edit Session", EDIT_SESSION_SYNC_TITLE),
4646
};
4747
const queryParamName = 'editSessionId';
@@ -72,7 +72,7 @@ export class SessionSyncContribution extends Disposable implements IWorkbenchCon
7272
}
7373

7474
this.configurationService.onDidChangeConfiguration((e) => {
75-
if (e.affectsConfiguration('workbench.experimental.sessionSync.enabled')) {
75+
if (e.affectsConfiguration('workbench.experimental.editSessions.enabled')) {
7676
this.registerActions();
7777
}
7878
});
@@ -81,7 +81,7 @@ export class SessionSyncContribution extends Disposable implements IWorkbenchCon
8181
}
8282

8383
private registerActions() {
84-
if (this.registered || this.configurationService.getValue('workbench.experimental.sessionSync.enabled') !== true) {
84+
if (this.registered || this.configurationService.getValue('workbench.experimental.editSessions.enabled') !== true) {
8585
return;
8686
}
8787

0 commit comments

Comments
 (0)