@@ -10,7 +10,7 @@ import { LifecyclePhase } from 'vs/workbench/services/lifecycle/common/lifecycle
1010import { Action2 , MenuId , registerAction2 } from 'vs/platform/actions/common/actions' ;
1111import { ServicesAccessor } from 'vs/editor/browser/editorExtensions' ;
1212import { localize } from 'vs/nls' ;
13- import { ISessionSyncWorkbenchService , Change , ChangeType , Folder , EditSession , FileType , EDIT_SESSION_SYNC_TITLE , EditSessionSchemaVersion } from 'vs/workbench/services/sessionSync/common/sessionSync' ;
13+ import { ISessionSyncWorkbenchService , Change , ChangeType , Folder , EditSession , FileType , EDIT_SESSION_SYNC_CATEGORY , EditSessionSchemaVersion } from 'vs/workbench/services/sessionSync/common/sessionSync' ;
1414import { ISCMRepository , ISCMService } from 'vs/workbench/contrib/scm/common/scm' ;
1515import { IFileService } from 'vs/platform/files/common/files' ;
1616import { IWorkspaceContextService } from 'vs/platform/workspace/common/workspace' ;
@@ -44,19 +44,21 @@ registerSingleton(ISessionSyncWorkbenchService, SessionSyncWorkbenchService);
4444
4545const resumeLatestCommand = {
4646 id : 'workbench.experimental.editSessions.actions.resumeLatest' ,
47- title : { value : localize ( 'resume latest' , "{0}: Resume Latest Edit Session" , EDIT_SESSION_SYNC_TITLE ) , original : 'Edit Sessions' } ,
47+ title : { value : localize ( 'resume latest' , "Resume Latest Edit Session" ) , original : 'Resume Latest Edit Session' } ,
48+ category : EDIT_SESSION_SYNC_CATEGORY ,
4849} ;
4950const storeCurrentCommand = {
5051 id : 'workbench.experimental.editSessions.actions.storeCurrent' ,
51- title : { value : localize ( 'store current' , "{0}: Store Current Edit Session" , EDIT_SESSION_SYNC_TITLE ) , original : 'Edit Sessions' } ,
52+ title : { value : localize ( 'store current' , "Store Current Edit Session" ) , original : 'Store Current Edit Session' } ,
53+ category : EDIT_SESSION_SYNC_CATEGORY ,
5254} ;
5355const continueEditSessionCommand = {
5456 id : '_workbench.experimental.editSessions.actions.continueEditSession' ,
5557 title : { value : localize ( 'continue edit session' , "Continue Edit Session..." ) , original : 'Continue Edit Session...' } ,
5658} ;
5759const openLocalFolderCommand = {
5860 id : '_workbench.experimental.editSessions.actions.continueEditSession.openLocalFolder' ,
59- title : localize ( 'continue edit session in local folder' , "Open In Local Folder" ) ,
61+ title : { value : localize ( 'continue edit session in local folder' , "Open In Local Folder" ) , original : 'Open In Local Folder' } ,
6062} ;
6163const queryParamName = 'editSessionId' ;
6264
@@ -146,8 +148,7 @@ export class SessionSyncContribution extends Disposable implements IWorkbenchCon
146148 this . _register ( registerAction2 ( class ContinueEditSessionAction extends Action2 {
147149 constructor ( ) {
148150 super ( {
149- id : continueEditSessionCommand . id ,
150- title : continueEditSessionCommand . title ,
151+ ...continueEditSessionCommand ,
151152 f1 : true
152153 } ) ;
153154 }
@@ -181,8 +182,7 @@ export class SessionSyncContribution extends Disposable implements IWorkbenchCon
181182 this . _register ( registerAction2 ( class ApplyLatestEditSessionAction extends Action2 {
182183 constructor ( ) {
183184 super ( {
184- id : resumeLatestCommand . id ,
185- title : resumeLatestCommand . title ,
185+ ...resumeLatestCommand ,
186186 menu : {
187187 id : MenuId . CommandPalette ,
188188 }
@@ -203,8 +203,7 @@ export class SessionSyncContribution extends Disposable implements IWorkbenchCon
203203 this . _register ( registerAction2 ( class StoreLatestEditSessionAction extends Action2 {
204204 constructor ( ) {
205205 super ( {
206- id : storeCurrentCommand . id ,
207- title : storeCurrentCommand . title ,
206+ ...storeCurrentCommand ,
208207 menu : {
209208 id : MenuId . CommandPalette ,
210209 }
@@ -275,7 +274,7 @@ export class SessionSyncContribution extends Disposable implements IWorkbenchCon
275274 const result = await this . dialogService . confirm ( {
276275 message : localize ( 'apply edit session warning' , 'Applying your edit session may overwrite your existing uncommitted changes. Do you want to proceed?' ) ,
277276 type : 'warning' ,
278- title : EDIT_SESSION_SYNC_TITLE
277+ title : EDIT_SESSION_SYNC_CATEGORY . value
279278 } ) ;
280279 if ( ! result . confirmed ) {
281280 return ;
@@ -399,8 +398,7 @@ export class SessionSyncContribution extends Disposable implements IWorkbenchCon
399398 this . _register ( registerAction2 ( class ContinueInLocalFolderAction extends Action2 {
400399 constructor ( ) {
401400 super ( {
402- id : openLocalFolderCommand . id ,
403- title : openLocalFolderCommand . title ,
401+ ...openLocalFolderCommand ,
404402 precondition : IsWebContext
405403 } ) ;
406404 }
0 commit comments