ide на основе vs code · VibeGit
ide на основе vs code Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
krutaya-ide-na-osnove-vs-code / src / vs / workbench / contrib / editSessions / browser / editSessions.contribution.ts 1199 строк · изменён 14 нояб., 04:52
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
import { Disposable, DisposableStore, MutableDisposable } from '../../../../base/common/lifecycle.js' ;
import { IWorkbenchContributionsRegistry, Extensions as WorkbenchExtensions, IWorkbenchContribution } from '../../../common/contributions.js' ;
import { Registry } from '../../../../platform/registry/common/platform.js' ;
import { ILifecycleService, LifecyclePhase, ShutdownReason } from '../../../services/lifecycle/common/lifecycle.js' ;
import { Action2, IAction2Options, MenuId, MenuRegistry, registerAction2 } from '../../../../platform/actions/common/actions.js' ;
import { ServicesAccessor
localize localize2
IEditSessionsStorageService Change ChangeType Folder EditSession FileType EditSessionSchemaVersion IEditSessionsLogService decodeEditSessionFileContent hashedEditSessionId editSessionsLogId
ISCMRepository ISCMService
IFileService
IWorkspaceContextService IWorkspaceFolder WorkbenchState
basename joinPath relativePath
encodeBase64
IConfigurationService
IProgress IProgressService IProgressStep ProgressLocation
EditSessionsWorkbenchService
InstantiationType registerSingleton
UserDataSyncErrorCode UserDataSyncStoreError
ITelemetryService
INotificationService Severity
getFileNamesMessage IDialogService IFileDialogService
IProductService
IOpenerService
IEnvironmentService
workbenchConfigurationNodeBase
Extensions ConfigurationExtensions IConfigurationRegistry
IQuickInputButton IQuickInputService IQuickPickItem IQuickPickSeparator
ExtensionsRegistry
ContextKeyExpr ContextKeyExpression IContextKey IContextKeyService
ICommandService
getVirtualWorkspaceLocation
Schemas
IsWebContext
IExtensionService isProposedApiEnabled
EditSessionsLogService
IViewContainersRegistry Extensions ViewExtensions ViewContainerLocation
IViewsService
SyncDescriptor
ViewPaneContainer
IInstantiationService
EditSessionsDataViews
EditSessionsFileSystemProvider
isNative isWeb
VirtualWorkspaceContext WorkspaceFolderCountContext
CancellationToken CancellationTokenSource
equals
EditSessionIdentityMatch IEditSessionIdentityService
ThemeIcon
IOutputService
IStorageService StorageScope StorageTarget
IActivityService NumberBadge
IEditorService
ILocalizedString
Codicon
CancellationError
IRemoteAgentService
IExtensionsWorkbenchService
WorkspaceStateSynchroniser
IUserDataProfilesService
IRequestService
EditSessionsStoreClient
IUriIdentityService
IWorkspaceIdentityService
hashAsync
ResourceSet
IEditSessionsLogService EditSessionsLogService InstantiationType Delayed
IEditSessionsStorageService EditSessionsWorkbenchService InstantiationType Delayed
continueWorkingOnCommand IAction2Options
id
title
precondition WorkspaceFolderCountContext
f1
openLocalFolderCommand IAction2Options
id
title
category
precondition ContextKeyExpr IsWebContext VirtualWorkspaceContext
showOutputChannelCommand IAction2Options
id
title
category
installAdditionalContinueOnOptionsCommand
id
title
Action2
installAdditionalContinueOnOptionsCommand f1
accessor ServicesAccessor
accessor IExtensionsWorkbenchService
resumeProgressOptionsTitle
resumeProgressOptions
location ProgressLocation Window
type
queryParamName
useEditSessionsWithContinueOn
continueEditSessionOptions ContinueEditSessionItem
shouldShowViewsContext IContextKey
pendingEditSessionsContext IContextKey
accountsMenuBadgeDisposable
registeredCommands
workspaceStateSynchronizer WorkspaceStateSynchroniser
editSessionsStorageClient EditSessionsStoreClient
editSessionsStorageService IEditSessionsStorageService
fileService IFileService
progressService IProgressService
openerService IOpenerService
telemetryService ITelemetryService
scmService ISCMService
notificationService INotificationService
dialogService IDialogService
logService IEditSessionsLogService
environmentService IEnvironmentService
instantiationService IInstantiationService
productService IProductService
configurationService IConfigurationService
contextService IWorkspaceContextService
editSessionIdentityService IEditSessionIdentityService
quickInputService IQuickInputService
commandService ICommandService
contextKeyService IContextKeyService
fileDialogService IFileDialogService
lifecycleService ILifecycleService
storageService IStorageService
activityService IActivityService
editorService IEditorService
remoteAgentService IRemoteAgentService
extensionService IExtensionService
requestService IRequestService
userDataProfilesService IUserDataProfilesService
uriIdentityService IUriIdentityService
workspaceIdentityService IWorkspaceIdentityService
shouldShowViewsContext contextKeyService
pendingEditSessionsContext contextKeyService
pendingEditSessionsContext
productService url
editSessionsStorageClient productService url productService requestService logService environmentService fileService storageService
editSessionsStorageService storeClient editSessionsStorageClient
workspaceStateSynchronizer userDataProfilesService defaultProfile editSessionsStorageClient logService fileService environmentService telemetryService configurationService storageService uriIdentityService workspaceIdentityService editSessionsStorageService
fileService EditSessionsFileSystemProvider editSessionsStorageService
lifecycleService e
e reason ShutdownReason editSessionsStorageService isSignedIn configurationService isWeb
e id label
editSessionsStorageService
editSessionsStorageService
shouldAutoResumeOnReload configurationService
environmentService editSessionId
logService
progressService resumeProgressOptions progress environmentService editSessionId progress environmentService editSessionId
shouldAutoResumeOnReload editSessionsStorageService isSignedIn
logService
progressService resumeProgressOptions progress progress
shouldAutoResumeOnReload
hasApplicationLaunchedFromContinueOnFlow storageService EditSessionsContribution StorageScope
logService
logService
pendingEditSessionsContext
disposable editSessionsStorageService
disposable
logService
progressService resumeProgressOptions progress progress
storageService EditSessionsContribution StorageScope
environmentService continueOn
environmentService continueOn
editSessionsStorageService isSignedIn
hasApplicationLaunchedFromContinueOnFlow
storageService EditSessionsContribution StorageScope StorageTarget
logService
editSessionsStorageService
editSessionsStorageService isSignedIn
logService
progressService resumeProgressOptions progress progress
editSessionsStorageService isSignedIn
hasApplicationLaunchedFromContinueOnFlow
logService
editSessionsStorageService isSignedIn
accountsMenuBadgeDisposable
badge
accountsMenuBadgeDisposable value activityService badge
cancellationTokenSource
progressService
location ProgressLocation Window
type
title
cancellationTokenSource token
cancellationTokenSource
cancellationTokenSource
container Registry ViewExtensions ViewContainersRegistry
id
title
ctorDescriptor
ViewPaneContainer
mergeViewWithContainerWhenSingleView
icon
hideIfEmpty
ViewContainerLocation Sidebar doNotRegisterOpenCommand
instantiationService EditSessionsDataViews container
showOutputChannelCommand
accessor ServicesAccessor args
outputChannel accessor IOutputService
outputChannel editSessionsLogId
that
id
title
category
f1
accessor ServicesAccessor
that shouldShowViewsContext
viewsService accessor IViewsService
viewsService
that
continueWorkingOnCommand
accessor ServicesAccessor workspaceUri destination
outcome hashedId
owner comment
outcome classification purpose comment
hashedId classification purpose comment
uri workspaceUri
destination uri
destination that
destination
that telemetryService outcome
shouldStoreEditSession that
ref
shouldStoreEditSession
owner comment
that telemetryService
cancellationTokenSource
ref that progressService
location ProgressLocation Notification
cancellable
type
title
ref that cancellationTokenSource token
ref
that telemetryService outcome hashedId ref
that telemetryService outcome
ref
cancellationTokenSource
cancellationTokenSource
that telemetryService outcome
ex
that telemetryService outcome
ex
uri destination that destination uri
uri
ref uri
encodedRef ref
uri uri
query uri query length uri query
that logService
that openerService uri openExternal
shouldStoreEditSession ref uri
that logService
that openerService uri openExternal
ref shouldStoreEditSession
that logService
that
id
title
category
f1
accessor ServicesAccessor editSessionId forceApplyUnrelatedChange
that progressService resumeProgressOptions title resumeProgressOptionsTitle that editSessionId forceApplyUnrelatedChange
id
title
category
f1
accessor ServicesAccessor editSessionId
data that quickInputService prompt
data
that editSessionsStorageService lastReadResources content data ref
that progressService resumeProgressOptions title resumeProgressOptionsTitle that editSessionId data
that
id
title
category
f1
accessor ServicesAccessor
cancellationTokenSource
that progressService
location ProgressLocation Notification
title
owner comment
that telemetryService
that cancellationTokenSource token
cancellationTokenSource
cancellationTokenSource
ref silent forceApplyUnrelatedChange applyPartialMatch progress IProgress IProgressStep serializedData
remoteAgentService
contextService WorkbenchState
logService ref
silent editSessionsStorageService
outcome hashedId
owner comment
outcome classification purpose comment
hashedId classification purpose comment
telemetryService
performance
progress message
data serializedData content serializedData ref editSessionsStorageService ref
data
ref silent
notificationService
ref
notificationService ref
logService ref
progress message resumeProgressOptionsTitle
editSession data content
ref data ref
editSession version EditSessionSchemaVersion
notificationService productService nameLong
telemetryService hashedId ref outcome
changes conflictingChanges editSession ref forceApplyUnrelatedChange applyPartialMatch
changes length
conflictingChanges length
confirmed dialogService
type Severity Warning
message conflictingChanges length
conflictingChanges length
conflictingChanges uri
detail conflictingChanges length conflictingChanges c c uri
confirmed
uri type contents changes
type ChangeType Addition
fileService uri editSession version contents
type ChangeType Deletion fileService uri
fileService uri
workspaceStateSynchronizer
logService
editSessionsStorageService ref
logService
telemetryService hashedId ref outcome
ex
logService ex Error
notificationService
performance
editSession EditSession ref forceApplyUnrelatedChange applyPartialMatch
changes uri type ChangeType contents
conflictingChanges
workspaceFolders contextService folders
cancellationTokenSource
folder editSession folders
folderRoot IWorkspaceFolder
folder canonicalIdentity
f workspaceFolders
identity editSessionIdentityService f cancellationTokenSource token
logService
identity folder canonicalIdentity forceApplyUnrelatedChange
folderRoot f
identity
match editSessionIdentityService f identity folder canonicalIdentity cancellationTokenSource token
match EditSessionIdentityMatch Complete
folderRoot f
match EditSessionIdentityMatch Partial
configurationService
applyPartialMatch
notificationService
Severity Info
label ref
folderRoot f
folderRoot workspaceFolders f f name folder name
folderRoot
logService
changes conflictingChanges contributedStateHandlers
localChanges
repository scmService repositories
repository provider rootUri
contextService repository provider rootUri name folder name
repositoryChanges repository
repositoryChanges change localChanges change
change folder workingChanges
uri folderRoot uri change relativeFilePath
uriIdentityService extUri uri folderRoot uri uriIdentityService extUri uri folderRoot uri
logService
changes uri type change type contents change contents
localChanges uri change
conflictingChanges uri type change type contents change contents
changes conflictingChanges
localChanges Set uriWithIncomingChanges incomingChange Change
localChanges uriWithIncomingChanges
contents type incomingChange
type
ChangeType Addition
originalContents incomingContents
contents
fileService uriWithIncomingChanges value
originalContents incomingContents
ChangeType Deletion
fileService uriWithIncomingChanges
fromStoreCommand cancellationToken CancellationToken
folders Folder
editSessionSize
hasEdits
editorService
createdEditSessionIdentities
repository scmService repositories
changedResources repository
changedResources size
uri changedResources
workspaceFolder contextService uri
workspaceFolder createdEditSessionIdentities uri
createdEditSessionIdentities uri
editSessionIdentityService workspaceFolder cancellationToken
repository scmService repositories
trackedUris repository
workingChanges Change
rootUri repository provider
workspaceFolder rootUri contextService rootUri
name workspaceFolder name
uri trackedUris
workspaceFolder contextService uri
workspaceFolder
logService
name name workspaceFolder name
relativeFilePath workspaceFolder uri uri uri path
fileService uri isFile
hasEdits
fileService uri
contents fileService uri value
editSessionSize contents length
editSessionSize editSessionsStorageService
notificationService
workingChanges type ChangeType Addition fileType FileType File contents contents relativeFilePath relativeFilePath
workingChanges type ChangeType Deletion fileType FileType File contents relativeFilePath relativeFilePath
canonicalIdentity
workspaceFolder workspaceFolder
canonicalIdentity editSessionIdentityService workspaceFolder cancellationToken
folders workingChanges name name canonicalIdentity canonicalIdentity absoluteUri workspaceFolder uri
workspaceStateSynchronizer
hasEdits
logService
fromStoreCommand
notificationService
data EditSession folders version workspaceStateId editSessionsStorageService lastWrittenResources ref
logService
ref editSessionsStorageService data
logService
ref
ex
logService ex Error
reason
owner comment
reason classification purpose comment
ex
ex code
UserDataSyncErrorCode TooLarge
telemetryService reason
notificationService
telemetryService reason
notificationService
repository ISCMRepository
repository provider groups resources resourceGroups
resourceGroups resources resource resources resource sourceUri
resources
repository scmService repositories
repository size
outcome
owner comment
outcome classification purpose comment
editSessionsStorageService isSignedIn
configurationService useEditSessionsWithContinueOn
telemetryService outcome
disposables
quickpick disposables quickInputService
quickpick placeholder
quickpick ok
quickpick ignoreFocusOut
withCloudChanges label
withoutCloudChanges label
quickpick items withCloudChanges withoutCloudChanges
continueWithCloudChanges resolve reject
disposables quickpick
quickpick selectedItems withCloudChanges
disposables
disposables quickpick
disposables
quickpick
continueWithCloudChanges
telemetryService outcome
continueWithCloudChanges
initialized editSessionsStorageService
initialized
telemetryService outcome
initialized
continueEditSessionExtPoint extensions
continueEditSessionOptions ContinueEditSessionItem
extension extensions
extension description
extension value
contribution extension value
command MenuRegistry contribution command
command
icon command icon
title command title command title command title value
when ContextKeyExpr contribution when
continueEditSessionOptions
ThemeIcon icon title
command id
command source title
when
contribution documentation
contribution qualifiedName
command id contribution qualifiedName contribution category command category when contribution remoteGroup
continueEditSessionOptions continueEditSessionOptions
commandId qualifiedName category ILocalizedString when ContextKeyExpression remoteGroup
command IAction2Options
id
title original qualifiedName value qualifiedName
category category original category value category category
precondition when
f1
registeredCommands command id
registeredCommands command id
command
accessor ServicesAccessor
accessor ICommandService continueWorkingOnCommand id commandId
remoteGroup
MenuRegistry MenuId StatusBarRemoteIndicatorMenu
group remoteGroup
command command
when command precondition
that
openLocalFolderCommand
accessor ServicesAccessor
selection that fileDialogService
title
canSelectFolders
canSelectMany
canSelectFiles
availableFileSystems Schemas file
selection length
scheme that productService urlProtocol
authority Schemas file
path selection path
contextService isNative
openLocalFolderCommand id openLocalFolderCommand precondition
disposables
quickPick disposables quickInputService useSeparators
workspaceContext contextService WorkbenchState
contextService folders name
contextService folders folder folder name
quickPick placeholder
quickPick items
disposables extensionService
quickPick items
command resolve reject
disposables quickPick
disposables
disposables quickPick e
selection quickPick activeItems command
selection installAdditionalContinueOnOptionsCommand id
commandService installAdditionalContinueOnOptionsCommand id
selection
quickPick
quickPick
disposables quickPick e
e item documentation
uri e item documentation e item documentation commandService e item documentation
uri
openerService uri openExternal
quickPick
command
command
outcome selection
owner comment
selection classification purpose comment
outcome classification purpose comment
uri commandService command
uri
telemetryService selection command outcome
uri
telemetryService selection command outcome
uri
telemetryService selection command outcome
ex
ex
telemetryService selection command outcome
telemetryService selection command outcome
ContinueEditSessionItem IQuickPickSeparator
items continueEditSessionOptions option option when contextKeyService option when
contextService isNative
items
openLocalFolderCommand id
sortedItems ContinueEditSessionItem IQuickPickSeparator items item1 item2 item1 label item2 label
sortedItems type installAdditionalContinueOnOptionsCommand title installAdditionalContinueOnOptionsCommand id
infoButtonClass ThemeIcon Codicon info
buttons IQuickInputButton
label
command
description
when ContextKeyExpression
documentation
documentation
buttons
iconClass infoButtonClass
tooltip
command
group
when
documentation
qualifiedName
category
remoteGroup
continueEditSessionExtPoint ExtensionsRegistry
extensionPoint
jsonSchema
description
type
items
type
properties
command
description
type
group
description
type
qualifiedName
description
type
description
description
type
remoteGroup
description
type
when
description
type
required
workbenchRegistry Registry WorkbenchExtensions Workbench
workbenchRegistry EditSessionsContribution LifecyclePhase Restored
Registry ConfigurationExtensions Configuration
workbenchConfigurationNodeBase
enumDescriptions
enumDescriptions
enumDescriptions
type
tags
markdownDescription
}
from
'../../../../editor/browser/editorExtensions.js'
;
import
{
,
}
from
'../../../../nls.js'
;
import
{
,
,
,
,
,
,
EDIT_SESSION_SYNC_CATEGORY
,
EDIT_SESSIONS_CONTAINER_ID
,
,
,
EDIT_SESSIONS_VIEW_ICON
,
EDIT_SESSIONS_TITLE
,
EDIT_SESSIONS_SHOW_VIEW
,
EDIT_SESSIONS_DATA_VIEW_ID
,
,
,
,
EDIT_SESSIONS_PENDING
}
from
'../common/editSessions.js'
;
import
{
,
}
from
'../../scm/common/scm.js'
;
import
{
}
from
'../../../../platform/files/common/files.js'
;
import
{
,
,
}
from
'../../../../platform/workspace/common/workspace.js'
;
import
{
URI
}
from
'../../../../base/common/uri.js'
;
import
{
,
,
}
from
'../../../../base/common/resources.js'
;
import
{
}
from
'../../../../base/common/buffer.js'
;
import
{
}
from
'../../../../platform/configuration/common/configuration.js'
;
import
{
,
,
,
}
from
'../../../../platform/progress/common/progress.js'
;
import
{
}
from
'./editSessionsStorageService.js'
;
import
{
,
}
from
'../../../../platform/instantiation/common/extensions.js'
;
import
{
,
}
from
'../../../../platform/userDataSync/common/userDataSync.js'
;
import
{
}
from
'../../../../platform/telemetry/common/telemetry.js'
;
import
{
,
}
from
'../../../../platform/notification/common/notification.js'
;
import
{
,
,
}
from
'../../../../platform/dialogs/common/dialogs.js'
;
import
{
}
from
'../../../../platform/product/common/productService.js'
;
import
{
}
from
'../../../../platform/opener/common/opener.js'
;
import
{
}
from
'../../../../platform/environment/common/environment.js'
;
import
{
}
from
'../../../common/configuration.js'
;
import
{
as
,
}
from
'../../../../platform/configuration/common/configurationRegistry.js'
;
import
{
,
,
,
}
from
'../../../../platform/quickinput/common/quickInput.js'
;
import
{
}
from
'../../../services/extensions/common/extensionsRegistry.js'
;
import
{
,
,
,
}
from
'../../../../platform/contextkey/common/contextkey.js'
;
import
{
}
from
'../../../../platform/commands/common/commands.js'
;
import
{
}
from
'../../../../platform/workspace/common/virtualWorkspace.js'
;
import
{
}
from
'../../../../base/common/network.js'
;
import
{
}
from
'../../../../platform/contextkey/common/contextkeys.js'
;
import
{
,
}
from
'../../../services/extensions/common/extensions.js'
;
import
{
}
from
'../common/editSessionsLogService.js'
;
import
{
,
as
,
}
from
'../../../common/views.js'
;
import
{
}
from
'../../../services/views/common/viewsService.js'
;
import
{
}
from
'../../../../platform/instantiation/common/descriptors.js'
;
import
{
}
from
'../../../browser/parts/views/viewPaneContainer.js'
;
import
{
}
from
'../../../../platform/instantiation/common/instantiation.js'
;
import
{
}
from
'./editSessionsViews.js'
;
import
{
}
from
'./editSessionsFileSystemProvider.js'
;
import
{
,
}
from
'../../../../base/common/platform.js'
;
import
{
,
}
from
'../../../common/contextkeys.js'
;
import
{
,
}
from
'../../../../base/common/cancellation.js'
;
import
{
}
from
'../../../../base/common/objects.js'
;
import
{
,
}
from
'../../../../platform/workspace/common/editSessions.js'
;
import
{
}
from
'../../../../base/common/themables.js'
;
import
{
}
from
'../../../services/output/common/output.js'
;
import
{
,
,
}
from
'../../../../platform/storage/common/storage.js'
;
import
{
,
}
from
'../../../services/activity/common/activity.js'
;
import
{
}
from
'../../../services/editor/common/editorService.js'
;
import
{
}
from
'../../../../platform/action/common/action.js'
;
import
{
}
from
'../../../../base/common/codicons.js'
;
import
{
}
from
'../../../../base/common/errors.js'
;
import
{
}
from
'../../../services/remote/common/remoteAgentService.js'
;
import
{
}
from
'../../extensions/common/extensions.js'
;
import
{
}
from
'../common/workspaceStateSync.js'
;
import
{
}
from
'../../../../platform/userDataProfile/common/userDataProfile.js'
;
import
{
}
from
'../../../../platform/request/common/request.js'
;
import
{
}
from
'../common/editSessionsStorageClient.js'
;
import
{
}
from
'../../../../platform/uriIdentity/common/uriIdentity.js'
;
import
{
}
from
'../../../services/workspaces/common/workspaceIdentityService.js'
;
import
{
}
from
'../../../../base/common/hash.js'
;
import
{
}
from
'../../../../base/common/map.js'
;
registerSingleton
(
,
,
.
)
;
registerSingleton
(
,
,
.
)
;
const
:
=
{
:
'_workbench.editSessions.actions.continueEditSession'
,
:
localize2
(
'continue working on'
,
'Continue Working On...'
)
,
:
.
notEqualsTo
(
'0'
)
,
:
true
}
;
const
:
=
{
:
'_workbench.editSessions.actions.continueEditSession.openLocalFolder'
,
:
localize2
(
'continue edit session in local folder'
,
'Open In Local Folder'
)
,
:
EDIT_SESSION_SYNC_CATEGORY
,
:
.
and
(
.
toNegated
(
)
,
)
}
;
const
:
=
{
:
'workbench.editSessions.actions.showOutputChannel'
,
:
localize2
(
'show log'
,
"Show Log"
)
,
:
EDIT_SESSION_SYNC_CATEGORY
}
;
const
=
{
:
'workbench.action.continueOn.extensions'
,
:
localize
(
'continueOn.installAdditional'
,
'Install additional development environment options'
)
,
}
;
registerAction2
(
class
extends
{
constructor
(
)
{
super
(
{
...
,
:
false
}
)
;
}
async
run
(
:
)
:
Promise
<
void
>
{
return
.
get
(
)
.
openSearch
(
'@tag:continueOn'
)
;
}
}
)
;
const
=
` [ ${ localize ( 'resuming working changes window' , 'Resuming working changes...' ) } ](command: ${ showOutputChannelCommand. id} ) `
;
const
=
{
:
.
,
:
'syncing'
,
}
;
const
=
'editSessionId'
;
const
=
'workbench.editSessions.continueOn'
;
export
class
EditSessionsContribution
extends
Disposable
implements
IWorkbenchContribution
{
private
:
[
]
=
[
]
;
private
readonly
:
<
boolean
>
;
private
readonly
:
<
boolean
>
;
private
static
APPLICATION_LAUNCHED_VIA_CONTINUE_ON_STORAGE_KEY
=
'applicationLaunchedViaContinueOn'
;
private
readonly
=
this
.
_register
(
new
MutableDisposable
(
)
)
;
private
=
new
Set< string >
(
)
;
private
:
|
undefined
;
private
:
|
undefined
;
constructor
(
@ IEditSessionsStorageService
private
readonly
:
,
@ IFileService
private
readonly
:
,
@ IProgressService
private
readonly
:
,
@ IOpenerService
private
readonly
:
,
@ ITelemetryService
private
readonly
:
,
@ ISCMService
private
readonly
:
,
@ INotificationService
private
readonly
:
,
@ IDialogService
private
readonly
:
,
@ IEditSessionsLogService
private
readonly
:
,
@ IEnvironmentService
private
readonly
:
,
@ IInstantiationService
private
readonly
:
,
@ IProductService
private
readonly
:
,
@ IConfigurationService
private
:
,
@ IWorkspaceContextService
private
readonly
:
,
@ IEditSessionIdentityService
private
readonly
:
,
@ IQuickInputService
private
readonly
:
,
@ ICommandService
private
:
,
@ IContextKeyService
private
readonly
:
,
@ IFileDialogService
private
readonly
:
,
@ ILifecycleService
private
readonly
:
,
@ IStorageService
private
readonly
:
,
@ IActivityService
private
readonly
:
,
@ IEditorService
private
readonly
:
,
@ IRemoteAgentService
private
readonly
:
,
@ IExtensionService
private
readonly
:
,
@ IRequestService
private
readonly
:
,
@ IUserDataProfilesService
private
readonly
:
,
@ IUriIdentityService
private
readonly
:
,
@ IWorkspaceIdentityService
private
readonly
:
,
)
{
super
(
)
;
this
.
=
EDIT_SESSIONS_SHOW_VIEW
.
bindTo
(
this
.
)
;
this
.
=
EDIT_SESSIONS_PENDING
.
bindTo
(
this
.
)
;
this
.
.
set
(
false
)
;
if
(
!
this
.
[
'editSessions.store'
]
?.
)
{
return
;
}
this
.
=
new
EditSessionsStoreClient
(
URI
.
parse
(
this
.
[
'editSessions.store'
]
.
)
,
this
.
,
this
.
,
this
.
,
this
.
,
this
.
,
this
.
)
;
this
.
.
=
this
.
;
this
.
=
new
WorkspaceStateSynchroniser
(
this
.
.
,
undefined
,
this
.
,
this
.
,
this
.
,
this
.
,
this
.
,
this
.
,
this
.
,
this
.
,
this
.
,
this
.
)
;
this
.
autoResumeEditSession
(
)
;
this
.
registerActions
(
)
;
this
.
registerViews
(
)
;
this
.
registerContributedEditSessionOptions
(
)
;
this
.
_register
(
this
.
.
registerProvider
(
.
SCHEMA
,
new
EditSessionsFileSystemProvider
(
this
.
)
)
)
;
this
.
_register
(
this
.
.
onWillShutdown
(
(
)
=>
{
if
(
.
!==
.
RELOAD
&&
this
.
.
&&
this
.
.
getValue
(
'workbench.experimental.cloudChanges.autoStore'
)
===
'onShutdown'
&&
!
)
{
.
join
(
this
.
autoStoreEditSession
(
)
,
{
:
'autoStoreWorkingChanges'
,
:
localize
(
'autoStoreWorkingChanges'
,
'Storing current working changes...'
)
}
)
;
}
}
)
)
;
this
.
_register
(
this
.
.
onDidSignIn
(
(
)
=>
this
.
updateAccountsMenuBadge
(
)
)
)
;
this
.
_register
(
this
.
.
onDidSignOut
(
(
)
=>
this
.
updateAccountsMenuBadge
(
)
)
)
;
}
private
async
autoResumeEditSession
(
)
{
const
=
this
.
.
getValue
(
'workbench.cloudChanges.autoResume'
)
===
'onReload'
;
if
(
this
.
.
!==
undefined
)
{
this
.
.
info
(
` Resuming cloud changes, reason: found editSessionId ${ this . environmentService. editSessionId} in environment service... `
)
;
await
this
.
.
withProgress
(
,
async
(
)
=>
await
this
.
resumeEditSession
(
this
.
.
,
undefined
,
undefined
,
undefined
,
)
.
finally
(
(
)
=>
this
.
.
=
undefined
)
)
;
}
else
if
(
&&
this
.
.
)
{
this
.
.
info
(
'Resuming cloud changes, reason: cloud changes enabled...'
)
;
await
this
.
.
withProgress
(
,
async
(
)
=>
await
this
.
resumeEditSession
(
undefined
,
true
,
undefined
,
undefined
,
)
)
;
}
else
if
(
)
{
const
=
this
.
.
getBoolean
(
.
APPLICATION_LAUNCHED_VIA_CONTINUE_ON_STORAGE_KEY
,
.
APPLICATION
,
false
)
;
this
.
.
info
(
` Prompting to enable cloud changes, has application previously launched from Continue On flow: ${ hasApplicationLaunchedFromContinueOnFlow} `
)
;
const
handlePendingEditSessions
=
(
)
=>
{
this
.
.
info
(
'Showing badge to enable cloud changes in accounts menu...'
)
;
this
.
updateAccountsMenuBadge
(
)
;
this
.
.
set
(
true
)
;
const
=
this
.
.
onDidSignIn
(
async
(
)
=>
{
.
dispose
(
)
;
this
.
.
info
(
'Showing badge to enable cloud changes in accounts menu succeeded, resuming cloud changes...'
)
;
await
this
.
.
withProgress
(
,
async
(
)
=>
await
this
.
resumeEditSession
(
undefined
,
true
,
undefined
,
undefined
,
)
)
;
this
.
.
remove
(
.
APPLICATION_LAUNCHED_VIA_CONTINUE_ON_STORAGE_KEY
,
.
APPLICATION
)
;
this
.
.
=
undefined
;
}
)
;
}
;
if
(
(
this
.
.
!==
undefined
)
&&
!
this
.
.
&&
===
false
)
{
this
.
.
store
(
.
APPLICATION_LAUNCHED_VIA_CONTINUE_ON_STORAGE_KEY
,
true
,
.
APPLICATION
,
.
MACHINE
)
;
this
.
.
info
(
'Prompting to enable cloud changes...'
)
;
await
this
.
.
initialize
(
'read'
)
;
if
(
this
.
.
)
{
this
.
.
info
(
'Prompting to enable cloud changes succeeded, resuming cloud changes...'
)
;
await
this
.
.
withProgress
(
,
async
(
)
=>
await
this
.
resumeEditSession
(
undefined
,
true
,
undefined
,
undefined
,
)
)
;
}
else
{
handlePendingEditSessions
(
)
;
}
}
else
if
(
!
this
.
.
&&
===
true
)
{
handlePendingEditSessions
(
)
;
}
}
else
{
this
.
.
debug
(
'Auto resuming cloud changes disabled.'
)
;
}
}
private
updateAccountsMenuBadge
(
)
{
if
(
this
.
.
)
{
return
this
.
.
clear
(
)
;
}
const
=
new
NumberBadge
(
1
,
(
)
=>
localize
(
'check for pending cloud changes'
,
'Check for pending cloud changes'
)
)
;
this
.
.
=
this
.
.
showAccountsActivity
(
{
}
)
;
}
private
async
autoStoreEditSession
(
)
{
const
=
new
CancellationTokenSource
(
)
;
await
this
.
.
withProgress
(
{
:
.
,
:
'syncing'
,
:
localize
(
'store working changes'
,
'Storing working changes...'
)
}
,
async
(
)
=>
this
.
storeEditSession
(
false
,
.
)
,
(
)
=>
{
.
cancel
(
)
;
.
dispose
(
)
;
}
)
;
}
private
registerViews
(
)
{
const
=
.
as < IViewContainersRegistry>
(
.
)
.
registerViewContainer
(
{
:
EDIT_SESSIONS_CONTAINER_ID
,
:
EDIT_SESSIONS_TITLE
,
:
new
SyncDescriptor
(
,
[
EDIT_SESSIONS_CONTAINER_ID
,
{
:
true
}
]
)
,
:
EDIT_SESSIONS_VIEW_ICON
,
:
true
}
,
.
,
{
:
true
}
)
;
this
.
_register
(
this
.
.
createInstance
(
,
)
)
;
}
private
registerActions
(
)
{
this
.
registerContinueEditSessionAction
(
)
;
this
.
registerResumeLatestEditSessionAction
(
)
;
this
.
registerStoreLatestEditSessionAction
(
)
;
this
.
registerContinueInLocalFolderAction
(
)
;
this
.
registerShowEditSessionViewAction
(
)
;
this
.
registerShowEditSessionOutputChannelAction
(
)
;
}
private
registerShowEditSessionOutputChannelAction
(
)
{
this
.
_register
(
registerAction2
(
class
ShowEditSessionOutput
extends
Action2
{
constructor
(
)
{
super
(
)
;
}
run
(
:
,
...
:
unknown
[
]
)
{
const
=
.
get
(
)
;
void
.
showChannel
(
)
;
}
}
)
)
;
}
private
registerShowEditSessionViewAction
(
)
{
const
=
this
;
this
.
_register
(
registerAction2
(
class
ShowEditSessionView
extends
Action2
{
constructor
(
)
{
super
(
{
:
'workbench.editSessions.actions.showEditSessions'
,
:
localize2
(
'show cloud changes'
,
'Show Cloud Changes'
)
,
:
EDIT_SESSION_SYNC_CATEGORY
,
:
true
}
)
;
}
async
run
(
:
)
{
.
.
set
(
true
)
;
const
=
.
get
(
)
;
await
.
openView
(
EDIT_SESSIONS_DATA_VIEW_ID
)
;
}
}
)
)
;
}
private
registerContinueEditSessionAction
(
)
{
const
=
this
;
this
.
_register
(
registerAction2
(
class
ContinueEditSessionAction
extends
Action2
{
constructor
(
)
{
super
(
)
;
}
async
run
(
:
,
:
URI
|
undefined
,
:
string
|
undefined
)
:
Promise
<
void
>
{
type
ContinueOnEventOutcome
=
{
:
string
;
?
:
string
}
;
type
ContinueOnClassificationOutcome
=
{
:
'joyceerhl'
;
:
'Reporting the outcome of invoking the Continue On action.'
;
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
'The outcome of invoking continue edit session.'
}
;
?
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
'The hash of the stored edit session id, for correlating success of stores and resumes.'
}
;
}
;
let
:
URI
|
'noDestinationUri'
|
undefined
=
;
if
(
!
&&
!
)
{
=
await
.
pickContinueEditSessionDestination
(
)
;
if
(
!
)
{
.
.
publicLog2 < ContinueOnEventOutcome, ContinueOnClassificationOutcome>
(
'continueOn.editSessions.pick.outcome'
,
{
:
'noSelection'
}
)
;
return
;
}
}
const
=
await
.
shouldContinueOnWithEditSession
(
)
;
let
:
string
|
undefined
;
if
(
)
{
type
ContinueWithEditSessionEvent
=
{
}
;
type
ContinueWithEditSessionClassification
=
{
:
'joyceerhl'
;
:
'Reporting when storing an edit session as part of the Continue On flow.'
;
}
;
.
.
publicLog2 < ContinueWithEditSessionEvent, ContinueWithEditSessionClassification>
(
'continueOn.editSessions.store'
)
;
const
=
new
CancellationTokenSource
(
)
;
try
{
=
await
.
.
withProgress
(
{
:
.
,
:
true
,
:
'syncing'
,
:
localize
(
'store your working changes'
,
'Storing your working changes...'
)
}
,
async
(
)
=>
{
const
=
await
.
storeEditSession
(
false
,
.
)
;
if
(
!==
undefined
)
{
.
.
publicLog2 < ContinueOnEventOutcome, ContinueOnClassificationOutcome>
(
'continueOn.editSessions.store.outcome'
,
{
:
'storeSucceeded'
,
:
hashedEditSessionId
(
)
}
)
;
}
else
{
.
.
publicLog2 < ContinueOnEventOutcome, ContinueOnClassificationOutcome>
(
'continueOn.editSessions.store.outcome'
,
{
:
'storeSkipped'
}
)
;
}
return
;
}
,
(
)
=>
{
.
cancel
(
)
;
.
dispose
(
)
;
.
.
publicLog2 < ContinueOnEventOutcome, ContinueOnClassificationOutcome>
(
'continueOn.editSessions.store.outcome'
,
{
:
'storeCancelledByUser'
}
)
;
}
)
;
}
catch
(
)
{
.
.
publicLog2 < ContinueOnEventOutcome, ContinueOnClassificationOutcome>
(
'continueOn.editSessions.store.outcome'
,
{
:
'storeFailed'
}
)
;
throw
;
}
}
=
?
await
.
resolveDestination
(
)
:
;
if
(
===
undefined
)
{
return
;
}
if
(
!==
undefined
&&
!==
'noDestinationUri'
)
{
const
=
encodeURIComponent
(
)
;
=
.
with
(
{
:
.
.
>
0
?
(
.
+
` & ${ queryParamName} = ${ encodedRef} &continueOn=1 `
)
:
` ${ queryParamName} = ${ encodedRef} &continueOn=1 `
}
)
;
.
.
info
(
` Opening ${ uri. toString ( ) } `
)
;
await
.
.
open
(
,
{
:
true
}
)
;
}
else
if
(
(
!
||
===
undefined
)
&&
!==
'noDestinationUri'
)
{
.
.
info
(
` Opening ${ uri. toString ( ) } `
)
;
await
.
.
open
(
,
{
:
true
}
)
;
}
else
if
(
===
undefined
&&
)
{
.
.
warn
(
` Failed to store working changes when invoking ${ continueWorkingOnCommand. id} . `
)
;
}
}
}
)
)
;
}
private
registerResumeLatestEditSessionAction
(
)
:
void
{
const
=
this
;
this
.
_register
(
registerAction2
(
class
ResumeLatestEditSessionAction
extends
Action2
{
constructor
(
)
{
super
(
{
:
'workbench.editSessions.actions.resumeLatest'
,
:
localize2
(
'resume latest cloud changes'
,
'Resume Latest Changes from Cloud'
)
,
:
EDIT_SESSION_SYNC_CATEGORY
,
:
true
,
}
)
;
}
async
run
(
:
,
?
:
string
,
?
:
boolean
)
:
Promise
<
void
>
{
await
.
.
withProgress
(
{
...
,
:
}
,
async
(
)
=>
await
.
resumeEditSession
(
,
undefined
,
)
)
;
}
}
)
)
;
this
.
_register
(
registerAction2
(
class
ResumeLatestEditSessionAction
extends
Action2
{
constructor
(
)
{
super
(
{
:
'workbench.editSessions.actions.resumeFromSerializedPayload'
,
:
localize2
(
'resume cloud changes'
,
'Resume Changes from Serialized Data'
)
,
:
'Developer'
,
:
true
,
}
)
;
}
async
run
(
:
,
?
:
string
)
:
Promise
<
void
>
{
const
=
await
.
.
input
(
{
:
'Enter serialized data'
}
)
;
if
(
)
{
.
.
.
set
(
'editSessions'
,
{
:
,
:
''
}
)
;
}
await
.
.
withProgress
(
{
...
,
:
}
,
async
(
)
=>
await
.
resumeEditSession
(
,
undefined
,
undefined
,
undefined
,
undefined
,
)
)
;
}
}
)
)
;
}
private
registerStoreLatestEditSessionAction
(
)
:
void
{
const
=
this
;
this
.
_register
(
registerAction2
(
class
StoreLatestEditSessionAction
extends
Action2
{
constructor
(
)
{
super
(
{
:
'workbench.editSessions.actions.storeCurrent'
,
:
localize2
(
'store working changes in cloud'
,
'Store Working Changes in Cloud'
)
,
:
EDIT_SESSION_SYNC_CATEGORY
,
:
true
,
}
)
;
}
async
run
(
:
)
:
Promise
<
void
>
{
const
=
new
CancellationTokenSource
(
)
;
await
.
.
withProgress
(
{
:
.
,
:
localize
(
'storing working changes'
,
'Storing working changes...'
)
}
,
async
(
)
=>
{
type
StoreEvent
=
{
}
;
type
StoreClassification
=
{
:
'joyceerhl'
;
:
'Reporting when the store edit session action is invoked.'
;
}
;
.
.
publicLog2 < StoreEvent, StoreClassification>
(
'editSessions.store'
)
;
await
.
storeEditSession
(
true
,
.
)
;
}
,
(
)
=>
{
.
cancel
(
)
;
.
dispose
(
)
;
}
)
;
}
}
)
)
;
}
async
resumeEditSession
(
?
:
string
,
?
:
boolean
,
?
:
boolean
,
?
:
boolean
,
?
:
<
>
,
?
:
string
)
:
Promise
<
void
>
{
await
this
.
.
getEnvironment
(
)
;
if
(
this
.
.
getWorkbenchState
(
)
===
.
EMPTY
)
{
return
;
}
this
.
.
info
(
!==
undefined
?
` Resuming changes from cloud with ref ${ ref} ... `
:
'Checking for pending cloud changes...'
)
;
if
(
&&
!
(
await
this
.
.
initialize
(
'read'
,
true
)
)
)
{
return
;
}
type
ResumeEvent
=
{
:
string
;
?
:
string
}
;
type
ResumeClassification
=
{
:
'joyceerhl'
;
:
'Reporting when an edit session is resumed from an edit session identifier.'
;
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
'The outcome of resuming the edit session.'
}
;
?
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
'The hash of the stored edit session id, for correlating success of stores and resumes.'
}
;
}
;
this
.
.
publicLog2 < ResumeEvent, ResumeClassification>
(
'editSessions.resume'
)
;
.
mark
(
'code/willResumeEditSessionFromIdentifier'
)
;
?.
report
(
{
:
localize
(
'checkingForWorkingChanges'
,
'Checking for pending cloud changes...'
)
}
)
;
const
=
?
{
:
,
:
''
}
:
await
this
.
.
read
(
'editSessions'
,
)
;
if
(
!
)
{
if
(
===
undefined
&&
!
)
{
this
.
.
info
(
localize
(
'no cloud changes'
,
'There are no changes to resume from the cloud.'
)
)
;
}
else
if
(
!==
undefined
)
{
this
.
.
warn
(
localize
(
'no cloud changes for ref'
,
'Could not resume changes from the cloud for ID {0}.'
,
)
)
;
}
this
.
.
info
(
!==
undefined
?
` Aborting resuming changes from cloud as no edit session content is available to be applied from ref ${ ref} . `
:
` Aborting resuming edit session as no edit session content is available to be applied `
)
;
return
;
}
?.
report
(
{
:
}
)
;
const
=
JSON
.
parse
(
.
)
;
=
.
;
if
(
.
>
)
{
this
.
.
error
(
localize
(
'client too old'
,
"Please upgrade to a newer version of {0} to resume your working changes from the cloud."
,
this
.
.
)
)
;
this
.
.
publicLog2 < ResumeEvent, ResumeClassification>
(
'editSessions.resume.outcome'
,
{
:
hashedEditSessionId
(
)
,
:
'clientUpdateNeeded'
}
)
;
return
;
}
try
{
const
{
,
}
=
await
this
.
generateChanges
(
,
,
,
)
;
if
(
.
===
0
)
{
return
;
}
if
(
.
>
0
)
{
const
{
}
=
await
this
.
.
confirm
(
{
:
.
,
:
.
>
1
?
localize
(
'resume edit session warning many'
,
'Resuming your working changes from the cloud will overwrite the following {0} files. Do you want to proceed?'
,
.
)
:
localize
(
'resume edit session warning 1'
,
'Resuming your working changes from the cloud will overwrite {0}. Do you want to proceed?'
,
basename
(
[
0
]
.
)
)
,
:
.
>
1
?
getFileNamesMessage
(
.
map
(
(
)
=>
.
)
)
:
undefined
}
)
;
if
(
!
)
{
return
;
}
}
for
(
const
{
,
,
}
of
)
{
if
(
===
.
)
{
await
this
.
.
writeFile
(
,
decodeEditSessionFileContent
(
.
,
!
)
)
;
}
else
if
(
===
.
&&
await
this
.
.
exists
(
)
)
{
await
this
.
.
del
(
)
;
}
}
await
this
.
?.
apply
(
)
;
this
.
.
info
(
` Deleting edit session with ref ${ ref} after successfully applying it to current workspace... `
)
;
await
this
.
.
delete
(
'editSessions'
,
)
;
this
.
.
info
(
` Deleted edit session with ref ${ ref} . `
)
;
this
.
.
publicLog2 < ResumeEvent, ResumeClassification>
(
'editSessions.resume.outcome'
,
{
:
hashedEditSessionId
(
)
,
:
'resumeSucceeded'
}
)
;
}
catch
(
)
{
this
.
.
error
(
'Failed to resume edit session, reason: '
,
(
as
)
.
toString
(
)
)
;
this
.
.
error
(
localize
(
'resume failed'
,
"Failed to resume your working changes from the cloud."
)
)
;
}
.
mark
(
'code/didResumeEditSessionFromIdentifier'
)
;
}
private
async
generateChanges
(
:
,
:
string
,
=
false
,
=
false
)
{
const
:
(
{
:
URI
;
:
;
:
string
|
undefined
}
)
[
]
=
[
]
;
const
=
[
]
;
const
=
this
.
.
getWorkspace
(
)
.
;
const
=
new
CancellationTokenSource
(
)
;
for
(
const
of
.
)
{
let
:
|
undefined
;
if
(
.
)
{
for
(
const
of
)
{
const
=
await
this
.
.
getEditSessionIdentifier
(
,
.
)
;
this
.
.
info
(
` Matching identity ${ identity} against edit session folder identity ${ folder. canonicalIdentity} ... `
)
;
if
(
equals
(
,
.
)
||
)
{
=
;
break
;
}
if
(
!==
undefined
)
{
const
=
await
this
.
.
provideEditSessionIdentityMatch
(
,
,
.
,
.
)
;
if
(
===
.
)
{
=
;
break
;
}
else
if
(
===
.
&&
this
.
.
getValue
(
'workbench.experimental.cloudChanges.partialMatches.enabled'
)
===
true
)
{
if
(
!
)
{
this
.
.
prompt
(
.
,
localize
(
'editSessionPartialMatch'
,
'You have pending working changes in the cloud for this workspace. Would you like to resume them?'
)
,
[
{
:
localize
(
'resume'
,
'Resume'
)
,
run
:
(
)
=>
this
.
resumeEditSession
(
,
false
,
undefined
,
true
)
}
]
)
;
}
else
{
=
;
break
;
}
}
}
}
}
else
{
=
.
find
(
(
)
=>
.
===
.
)
;
}
if
(
!
)
{
this
.
.
info
(
` Skipping applying ${ folder. workingChanges. length} changes from edit session with ref ${ ref} as no matching workspace folder was found. `
)
;
return
{
:
[
]
,
:
[
]
,
:
[
]
}
;
}
const
=
new
Set< string >
(
)
;
for
(
const
of
this
.
.
)
{
if
(
.
.
!==
undefined
&&
this
.
.
getWorkspaceFolder
(
.
.
)
?.
===
.
)
{
const
=
this
.
getChangedResources
(
)
;
.
forEach
(
(
)
=>
.
add
(
.
toString
(
)
)
)
;
}
}
for
(
const
of
.
)
{
const
=
joinPath
(
.
,
.
)
;
if
(
!
this
.
.
.
isEqualOrParent
(
,
.
)
||
this
.
.
.
isEqual
(
,
.
)
)
{
this
.
.
warn
(
` Skipping change outside workspace folder: ${ change. relativeFilePath} `
)
;
continue
;
}
.
push
(
{
,
:
.
,
:
.
}
)
;
if
(
await
this
.
willChangeLocalContents
(
,
,
)
)
{
.
push
(
{
,
:
.
,
:
.
}
)
;
}
}
}
return
{
,
}
;
}
private
async
willChangeLocalContents
(
:
<
string
>
,
:
URI
,
:
)
{
if
(
!
.
has
(
.
toString
(
)
)
)
{
return
false
;
}
const
{
,
}
=
;
switch
(
)
{
case
(
.
)
:
{
const
[
,
]
=
await
Promise
.
all
(
[
hashAsync
(
)
,
hashAsync
(
encodeBase64
(
(
await
this
.
.
readFile
(
)
)
.
)
)
]
)
;
return
!==
;
}
case
(
.
)
:
{
return
await
this
.
.
exists
(
)
;
}
default
:
throw
new
Error
(
'Unhandled change type.'
)
;
}
}
async
storeEditSession
(
:
boolean
,
:
)
:
Promise
<
string
|
undefined
>
{
const
:
[
]
=
[
]
;
let
=
0
;
let
=
false
;
await
this
.
.
saveAll
(
)
;
const
=
new
ResourceSet
(
)
;
for
(
const
of
this
.
.
)
{
const
=
this
.
getChangedResources
(
)
;
if
(
!
.
)
{
continue
;
}
for
(
const
of
)
{
const
=
this
.
.
getWorkspaceFolder
(
)
;
if
(
!
||
.
has
(
)
)
{
continue
;
}
.
add
(
)
;
await
this
.
.
onWillCreateEditSessionIdentity
(
,
)
;
}
}
for
(
const
of
this
.
.
)
{
const
=
this
.
getChangedResources
(
)
;
const
:
[
]
=
[
]
;
const
{
}
=
.
;
const
=
?
this
.
.
getWorkspaceFolder
(
)
:
undefined
;
let
=
?.
;
for
(
const
of
)
{
const
=
this
.
.
getWorkspaceFolder
(
)
;
if
(
!
)
{
this
.
.
info
(
` Skipping working change ${ uri. toString ( ) } as no associated workspace folder was found. `
)
;
continue
;
}
=
??
.
;
const
=
relativePath
(
.
,
)
??
.
;
try
{
if
(
!
(
await
this
.
.
stat
(
)
)
.
)
{
continue
;
}
}
catch
{
}
=
true
;
if
(
await
this
.
.
exists
(
)
)
{
const
=
encodeBase64
(
(
await
this
.
.
readFile
(
)
)
.
)
;
+=
.
;
if
(
>
this
.
.
SIZE_LIMIT
)
{
this
.
.
error
(
localize
(
'payload too large'
,
'Your working changes exceed the size limit and cannot be stored.'
)
)
;
return
undefined
;
}
.
push
(
{
:
.
,
:
.
,
:
,
:
}
)
;
}
else
{
.
push
(
{
:
.
,
:
.
,
:
undefined
,
:
}
)
;
}
}
let
=
undefined
;
if
(
!==
null
&&
!==
undefined
)
{
=
await
this
.
.
getEditSessionIdentifier
(
,
)
;
}
.
push
(
{
,
:
??
''
,
:
??
undefined
,
:
?.
.
toString
(
)
}
)
;
}
await
this
.
?.
sync
(
)
;
if
(
!
)
{
this
.
.
info
(
'Skipped storing working changes in the cloud as there are no edits to store.'
)
;
if
(
)
{
this
.
.
info
(
localize
(
'no working changes to store'
,
'Skipped storing working changes in the cloud as there are no edits to store.'
)
)
;
}
return
undefined
;
}
const
:
=
{
,
:
2
,
:
this
.
.
.
get
(
'workspaceState'
)
?.
}
;
try
{
this
.
.
info
(
` Storing edit session... `
)
;
const
=
await
this
.
.
write
(
'editSessions'
,
)
;
this
.
.
info
(
` Stored edit session with ref ${ ref} . `
)
;
return
;
}
catch
(
)
{
this
.
.
error
(
` Failed to store edit session, reason: `
,
(
as
)
.
toString
(
)
)
;
type
UploadFailedEvent
=
{
:
string
}
;
type
UploadFailedClassification
=
{
:
'joyceerhl'
;
:
'Reporting when Continue On server request fails.'
;
?
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
'The reason that the server request failed.'
}
;
}
;
if
(
instanceof
UserDataSyncStoreError
)
{
switch
(
.
)
{
case
.
:
this
.
.
publicLog2 < UploadFailedEvent, UploadFailedClassification>
(
'editSessions.upload.failed'
,
{
:
'TooLarge'
}
)
;
this
.
.
error
(
localize
(
'payload too large'
,
'Your working changes exceed the size limit and cannot be stored.'
)
)
;
break
;
default
:
this
.
.
publicLog2 < UploadFailedEvent, UploadFailedClassification>
(
'editSessions.upload.failed'
,
{
:
'unknown'
}
)
;
this
.
.
error
(
localize
(
'payload failed'
,
'Your working changes cannot be stored.'
)
)
;
break
;
}
}
}
return
undefined
;
}
private
getChangedResources
(
:
)
{
return
.
.
.
reduce
(
(
,
)
=>
{
.
.
forEach
(
(
)
=>
.
add
(
.
)
)
;
return
;
}
,
new
Set< URI >
(
)
)
;
}
private
hasEditSession
(
)
{
for
(
const
of
this
.
.
)
{
if
(
this
.
getChangedResources
(
)
.
>
0
)
{
return
true
;
}
}
return
false
;
}
private
async
shouldContinueOnWithEditSession
(
)
:
Promise
<
boolean
>
{
type
EditSessionsAuthCheckEvent
=
{
:
string
}
;
type
EditSessionsAuthCheckClassification
=
{
:
'joyceerhl'
;
:
'Reporting whether we can and should store edit session as part of Continue On.'
;
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
'The outcome of checking whether we can store an edit session as part of the Continue On flow.'
}
;
}
;
if
(
this
.
.
)
{
return
this
.
hasEditSession
(
)
;
}
if
(
this
.
.
getValue
(
)
===
'off'
)
{
this
.
.
publicLog2 < EditSessionsAuthCheckEvent, EditSessionsAuthCheckClassification>
(
'continueOn.editSessions.canStore.outcome'
,
{
:
'disabledEditSessionsViaSetting'
}
)
;
return
false
;
}
if
(
this
.
hasEditSession
(
)
)
{
const
=
new
DisposableStore
(
)
;
const
=
.
add
(
this
.
.
createQuickPick < IQuickPickItem>
(
)
)
;
.
=
localize
(
'continue with cloud changes'
,
"Select whether to bring your working changes with you"
)
;
.
=
false
;
.
=
true
;
const
=
{
:
localize
(
'with cloud changes'
,
"Yes, continue with my working changes"
)
}
;
const
=
{
:
localize
(
'without cloud changes'
,
"No, continue without my working changes"
)
}
;
.
=
[
,
]
;
const
=
await
new
Promise < boolean >
(
(
,
)
=>
{
.
add
(
.
onDidAccept
(
(
)
=>
{
resolve
(
.
[
0
]
===
)
;
.
dispose
(
)
;
}
)
)
;
.
add
(
.
onDidHide
(
(
)
=>
{
reject
(
new
CancellationError
(
)
)
;
.
dispose
(
)
;
}
)
)
;
.
show
(
)
;
}
)
;
if
(
!
)
{
this
.
.
publicLog2 < EditSessionsAuthCheckEvent, EditSessionsAuthCheckClassification>
(
'continueOn.editSessions.canStore.outcome'
,
{
:
'didNotEnableEditSessionsWhenPrompted'
}
)
;
return
;
}
const
=
await
this
.
.
initialize
(
'write'
)
;
if
(
!
)
{
this
.
.
publicLog2 < EditSessionsAuthCheckEvent, EditSessionsAuthCheckClassification>
(
'continueOn.editSessions.canStore.outcome'
,
{
:
'didNotEnableEditSessionsWhenPrompted'
}
)
;
}
return
;
}
return
false
;
}
private
registerContributedEditSessionOptions
(
)
{
.
setHandler
(
=>
{
const
:
[
]
=
[
]
;
for
(
const
of
)
{
if
(
!
isProposedApiEnabled
(
.
,
'contribEditSessions'
)
)
{
continue
;
}
if
(
!
Array
.
isArray
(
.
)
)
{
continue
;
}
for
(
const
of
.
)
{
const
=
.
getCommand
(
.
)
;
if
(
!
)
{
return
;
}
const
=
.
;
const
=
typeof
.
===
'string'
?
.
:
.
.
;
const
=
.
deserialize
(
.
)
;
.
push
(
new
ContinueEditSessionItem
(
.
isThemeIcon
(
)
?
` $( ${ icon. id} ) ${ title} `
:
,
.
,
.
?.
,
,
.
)
)
;
if
(
.
)
{
this
.
generateStandaloneOptionCommand
(
.
,
.
,
.
??
.
,
,
.
)
;
}
}
}
this
.
=
;
}
)
;
}
private
generateStandaloneOptionCommand
(
:
string
,
:
string
,
:
string
|
|
undefined
,
:
|
undefined
,
:
string
|
undefined
)
{
const
:
=
{
:
` ${ continueWorkingOnCommand. id} . ${ commandId} `
,
:
{
:
,
:
}
,
:
typeof
===
'string'
?
{
:
,
:
}
:
,
:
,
:
true
}
;
if
(
!
this
.
.
has
(
.
)
)
{
this
.
.
add
(
.
)
;
this
.
_register
(
registerAction2
(
class
StandaloneContinueOnOption
extends
Action2
{
constructor
(
)
{
super
(
)
;
}
async
run
(
:
)
:
Promise
<
void
>
{
return
.
get
(
)
.
executeCommand
(
.
,
undefined
,
)
;
}
}
)
)
;
if
(
!==
undefined
)
{
.
appendMenuItem
(
.
,
{
:
,
:
,
:
.
}
)
;
}
}
}
private
registerContinueInLocalFolderAction
(
)
:
void
{
const
=
this
;
this
.
_register
(
registerAction2
(
class
ContinueInLocalFolderAction
extends
Action2
{
constructor
(
)
{
super
(
)
;
}
async
run
(
:
)
:
Promise
<
URI
|
undefined
>
{
const
=
await
.
.
showOpenDialog
(
{
:
localize
(
'continueEditSession.openLocalFolder.title.v2'
,
'Select a local folder to continue working in'
)
,
:
true
,
:
false
,
:
false
,
:
[
.
]
}
)
;
return
?.
!==
1
?
undefined
:
URI
.
from
(
{
:
.
.
,
:
.
,
:
[
0
]
.
}
)
;
}
}
)
)
;
if
(
getVirtualWorkspaceLocation
(
this
.
.
getWorkspace
(
)
)
!==
undefined
&&
)
{
this
.
generateStandaloneOptionCommand
(
.
,
localize
(
'continueWorkingOn.existingLocalFolder'
,
'Continue Working in Existing Local Folder'
)
,
undefined
,
.
,
undefined
)
;
}
}
private
async
pickContinueEditSessionDestination
(
)
:
Promise
<
string
|
undefined
>
{
const
=
new
DisposableStore
(
)
;
const
=
.
add
(
this
.
.
createQuickPick < ContinueEditSessionItem>
(
{
:
true
}
)
)
;
const
=
this
.
.
getWorkbenchState
(
)
===
.
FOLDER
?
this
.
.
getWorkspace
(
)
.
[
0
]
.
:
this
.
.
getWorkspace
(
)
.
.
map
(
(
)
=>
.
)
.
join
(
', '
)
;
.
=
localize
(
'continueEditSessionPick.title.v2'
,
"Select a development environment to continue working on {0} in"
,
` ' ${ workspaceContext} ' `
)
;
.
=
this
.
createPickItems
(
)
;
.
add
(
this
.
.
onDidChangeExtensions
(
(
)
=>
{
.
=
this
.
createPickItems
(
)
;
}
)
)
;
const
=
await
new
Promise < string | undefined >
(
(
,
)
=>
{
.
add
(
.
onDidHide
(
(
)
=>
{
.
dispose
(
)
;
resolve
(
undefined
)
;
}
)
)
;
.
add
(
.
onDidAccept
(
(
)
=>
{
const
=
.
[
0
]
.
;
if
(
===
.
)
{
void
this
.
.
executeCommand
(
.
)
;
}
else
{
resolve
(
)
;
.
hide
(
)
;
}
}
)
)
;
.
show
(
)
;
.
add
(
.
onDidTriggerItemButton
(
async
(
)
=>
{
if
(
.
.
!==
undefined
)
{
const
=
URI
.
isUri
(
.
.
)
?
URI
.
parse
(
.
.
)
:
await
this
.
.
executeCommand < URI >
(
.
.
)
;
if
(
)
{
void
this
.
.
open
(
,
{
:
true
}
)
;
}
}
}
)
)
;
}
)
;
.
dispose
(
)
;
return
;
}
private
async
resolveDestination
(
:
string
)
:
Promise
<
URI
|
'noDestinationUri'
|
undefined
>
{
type
EvaluateContinueOnDestinationEvent
=
{
:
string
;
:
string
}
;
type
EvaluateContinueOnDestinationClassification
=
{
:
'joyceerhl'
;
:
'Reporting the outcome of evaluating a selected Continue On destination option.'
;
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
'The selected Continue On destination option.'
}
;
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
'The outcome of evaluating the selected Continue On destination option.'
}
;
}
;
try
{
const
=
await
this
.
.
executeCommand
(
)
;
if
(
===
undefined
)
{
this
.
.
publicLog2 < EvaluateContinueOnDestinationEvent, EvaluateContinueOnDestinationClassification>
(
'continueOn.openDestination.outcome'
,
{
:
,
:
'noDestinationUri'
}
)
;
return
'noDestinationUri'
;
}
if
(
URI
.
isUri
(
)
)
{
this
.
.
publicLog2 < EvaluateContinueOnDestinationEvent, EvaluateContinueOnDestinationClassification>
(
'continueOn.openDestination.outcome'
,
{
:
,
:
'resolvedUri'
}
)
;
return
;
}
this
.
.
publicLog2 < EvaluateContinueOnDestinationEvent, EvaluateContinueOnDestinationClassification>
(
'continueOn.openDestination.outcome'
,
{
:
,
:
'invalidDestination'
}
)
;
return
undefined
;
}
catch
(
)
{
if
(
instanceof
CancellationError
)
{
this
.
.
publicLog2 < EvaluateContinueOnDestinationEvent, EvaluateContinueOnDestinationClassification>
(
'continueOn.openDestination.outcome'
,
{
:
,
:
'cancelled'
}
)
;
}
else
{
this
.
.
publicLog2 < EvaluateContinueOnDestinationEvent, EvaluateContinueOnDestinationClassification>
(
'continueOn.openDestination.outcome'
,
{
:
,
:
'unknownError'
}
)
;
}
return
undefined
;
}
}
private
createPickItems
(
)
:
(
|
)
[
]
{
const
=
[
...
this
.
]
.
filter
(
(
)
=>
.
===
undefined
||
this
.
.
contextMatchesRules
(
.
)
)
;
if
(
getVirtualWorkspaceLocation
(
this
.
.
getWorkspace
(
)
)
!==
undefined
&&
)
{
.
push
(
new
ContinueEditSessionItem
(
'$(folder) '
+
localize
(
'continueEditSessionItem.openInLocalFolder.v2'
,
'Open in Local Folder'
)
,
.
,
localize
(
'continueEditSessionItem.builtin'
,
'Built-in'
)
)
)
;
}
const
:
(
|
)
[
]
=
.
sort
(
(
,
)
=>
.
.
localeCompare
(
.
)
)
;
return
.
concat
(
{
:
'separator'
}
,
new
ContinueEditSessionItem
(
.
,
.
)
)
;
}
}
const
=
.
asClassName
(
.
)
;
class
ContinueEditSessionItem
implements
IQuickPickItem
{
public
readonly
:
[
]
|
undefined
;
constructor
(
public
readonly
:
string
,
public
readonly
:
string
,
public
readonly
?
:
string
,
public
readonly
?
:
,
public
readonly
?
:
string
,
)
{
if
(
!==
undefined
)
{
this
.
=
[
{
:
,
:
localize
(
'learnMoreTooltip'
,
'Learn More'
)
,
}
]
;
}
}
}
interface
ICommand
{
:
string
;
:
string
;
:
string
;
?
:
string
;
?
:
string
;
?
:
string
;
?
:
string
;
}
const
=
.
registerExtensionPoint < ICommand[ ] >
(
{
:
'continueEditSession'
,
:
{
:
localize
(
'continueEditSessionExtPoint'
,
'Contributes options for continuing the current edit session in a different environment'
)
,
:
'array'
,
:
{
:
'object'
,
:
{
:
{
:
localize
(
'continueEditSessionExtPoint.command'
,
'Identifier of the command to execute. The command must be declared in the \'commands\'-section and return a URI representing a different environment where the current edit session can be continued.'
)
,
:
'string'
}
,
:
{
:
localize
(
'continueEditSessionExtPoint.group'
,
'Group into which this item belongs.'
)
,
:
'string'
}
,
:
{
:
localize
(
'continueEditSessionExtPoint.qualifiedName'
,
'A fully qualified name for this item which is used for display in menus.'
)
,
:
'string'
}
,
:
{
:
localize
(
'continueEditSessionExtPoint.description'
,
"The url, or a command that returns the url, to the option's documentation page."
)
,
:
'string'
}
,
:
{
:
localize
(
'continueEditSessionExtPoint.remoteGroup'
,
'Group into which this item belongs in the remote indicator.'
)
,
:
'string'
}
,
:
{
:
localize
(
'continueEditSessionExtPoint.when'
,
'Condition which must be true to show this item.'
)
,
:
'string'
}
}
,
:
[
'command'
]
}
}
}
)
;
const
=
.
as < IWorkbenchContributionsRegistry>
(
.
)
;
.
registerWorkbenchContribution
(
,
.
)
;
.
as < IConfigurationRegistry>
(
.
)
.
registerConfiguration
(
{
...
,
'properties'
:
{
'workbench.experimental.cloudChanges.autoStore'
:
{
enum
:
[
'onShutdown'
,
'off'
]
,
:
[
localize
(
'autoStoreWorkingChanges.onShutdown'
,
"Automatically store current working changes in the cloud on window close."
)
,
localize
(
'autoStoreWorkingChanges.off'
,
"Never attempt to automatically store working changes in the cloud."
)
]
,
'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. This setting has no effect in the web."
)
,
}
,
'workbench.cloudChanges.autoResume'
:
{
enum
:
[
'onReload'
,
'off'
]
,
:
[
localize
(
'autoResumeWorkingChanges.onReload'
,
"Automatically resume available working changes from the cloud on window reload."
)
,
localize
(
'autoResumeWorkingChanges.off'
,
"Never attempt to resume working changes from the cloud."
)
]
,
'type'
:
'string'
,
'tags'
:
[
'usesOnlineServices'
]
,
'default'
:
'onReload'
,
'markdownDescription'
:
localize
(
'autoResumeWorkingChanges'
,
"Controls whether to automatically resume available working changes stored in the cloud for the current workspace."
)
,
}
,
'workbench.cloudChanges.continueOn'
:
{
enum
:
[
'prompt'
,
'off'
]
,
:
[
localize
(
'continueOnCloudChanges.promptForAuth'
,
'Prompt the user to sign in to store working changes in the cloud with Continue Working On.'
)
,
localize
(
'continueOnCloudChanges.off'
,
'Do not store working changes in the cloud with Continue Working On unless the user has already turned on Cloud Changes.'
)
]
,
:
'string'
,
:
[
'usesOnlineServices'
]
,
default
:
'prompt'
,
:
localize
(
'continueOnCloudChanges'
,
'Controls whether to prompt the user to store working changes in the cloud when using Continue Working On.'
)
}
,
'workbench.experimental.cloudChanges.partialMatches.enabled'
:
{
'type'
:
'boolean'
,
'tags'
:
[
'experimental'
,
'usesOnlineServices'
]
,
'default'
:
false
,
'markdownDescription'
:
localize
(
'cloudChangesPartialMatchesEnabled'
,
"Controls whether to surface cloud changes which partially match the current session."
)
}
}
}
)
;