@codingame/monaco-vscode-edit-sessions-service-override 7.1.0 → 7.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/vscode/src/vs/workbench/contrib/editSessions/browser/editSessions.contribution.js +71 -106
- package/vscode/src/vs/workbench/contrib/editSessions/browser/editSessionsStorageService.js +10 -23
- package/vscode/src/vs/workbench/contrib/editSessions/browser/editSessionsViews.js +17 -21
- package/vscode/src/vs/workbench/contrib/editSessions/common/editSessions.js +4 -5
- package/vscode/src/vs/workbench/contrib/editSessions/common/editSessionsLogService.js +2 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-edit-sessions-service-override",
|
|
3
|
-
"version": "7.1.
|
|
3
|
+
"version": "7.1.1",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -26,6 +26,6 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"vscode": "npm:@codingame/monaco-vscode-api@7.1.
|
|
29
|
+
"vscode": "npm:@codingame/monaco-vscode-api@7.1.1"
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -5,7 +5,7 @@ import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
|
5
5
|
import { ShutdownReason, LifecyclePhase } from 'vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle';
|
|
6
6
|
import { ILifecycleService } from 'vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle.service';
|
|
7
7
|
import { registerAction2, Action2, MenuRegistry, MenuId } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
8
|
-
import {
|
|
8
|
+
import { localize2, localize } from 'vscode/vscode/vs/nls';
|
|
9
9
|
import { EDIT_SESSION_SYNC_CATEGORY, EDIT_SESSIONS_SHOW_VIEW, EDIT_SESSIONS_PENDING, EDIT_SESSIONS_CONTAINER_ID, EDIT_SESSIONS_TITLE, EDIT_SESSIONS_VIEW_ICON, editSessionsLogId, EDIT_SESSIONS_DATA_VIEW_ID, hashedEditSessionId, EditSessionSchemaVersion, ChangeType, decodeEditSessionFileContent, FileType } from '../common/editSessions.js';
|
|
10
10
|
import { IEditSessionsStorageService, IEditSessionsLogService } from 'vscode/vscode/vs/workbench/contrib/editSessions/common/editSessions.service';
|
|
11
11
|
import { ISCMService } from 'vscode/vscode/vs/workbench/contrib/scm/common/scm.service';
|
|
@@ -77,27 +77,26 @@ import { IWorkspaceIdentityService } from 'vscode/vscode/vs/workbench/services/w
|
|
|
77
77
|
import Severity$1 from 'vscode/vscode/vs/base/common/severity';
|
|
78
78
|
|
|
79
79
|
var EditSessionsContribution_1;
|
|
80
|
-
const _moduleId = "vs/workbench/contrib/editSessions/browser/editSessions.contribution";
|
|
81
80
|
const continueWorkingOnCommand = {
|
|
82
81
|
id: '_workbench.editSessions.actions.continueEditSession',
|
|
83
|
-
title: (
|
|
82
|
+
title: ( localize2(2386, 'Continue Working On...')),
|
|
84
83
|
precondition: ( (WorkspaceFolderCountContext.notEqualsTo('0'))),
|
|
85
84
|
f1: true
|
|
86
85
|
};
|
|
87
86
|
const openLocalFolderCommand = {
|
|
88
87
|
id: '_workbench.editSessions.actions.continueEditSession.openLocalFolder',
|
|
89
|
-
title: (
|
|
88
|
+
title: ( localize2(2387, 'Open In Local Folder')),
|
|
90
89
|
category: EDIT_SESSION_SYNC_CATEGORY,
|
|
91
90
|
precondition: ( (ContextKeyExpr.and( (IsWebContext.toNegated()), VirtualWorkspaceContext)))
|
|
92
91
|
};
|
|
93
92
|
const showOutputChannelCommand = {
|
|
94
93
|
id: 'workbench.editSessions.actions.showOutputChannel',
|
|
95
|
-
title: (
|
|
94
|
+
title: ( localize2(2388, "Show Log")),
|
|
96
95
|
category: EDIT_SESSION_SYNC_CATEGORY
|
|
97
96
|
};
|
|
98
97
|
const installAdditionalContinueOnOptionsCommand = {
|
|
99
98
|
id: 'workbench.action.continueOn.extensions',
|
|
100
|
-
title: (
|
|
99
|
+
title: ( localize(2389, 'Install additional development environment options')),
|
|
101
100
|
};
|
|
102
101
|
registerAction2(class extends Action2 {
|
|
103
102
|
constructor() {
|
|
@@ -110,7 +109,7 @@ registerAction2(class extends Action2 {
|
|
|
110
109
|
view?.search('@tag:continueOn');
|
|
111
110
|
}
|
|
112
111
|
});
|
|
113
|
-
const resumeProgressOptionsTitle = `[${(
|
|
112
|
+
const resumeProgressOptionsTitle = `[${( localize(2390, 'Resuming working changes...'))}](command:${showOutputChannelCommand.id})`;
|
|
114
113
|
const resumeProgressOptions = {
|
|
115
114
|
location: ProgressLocation.Window,
|
|
116
115
|
type: 'syncing',
|
|
@@ -191,7 +190,7 @@ let EditSessionsContribution = class EditSessionsContribution extends Disposable
|
|
|
191
190
|
this._register(this.fileService.registerProvider(EditSessionsFileSystemProvider.SCHEMA, ( (new EditSessionsFileSystemProvider(this.editSessionsStorageService)))));
|
|
192
191
|
this.lifecycleService.onWillShutdown((e) => {
|
|
193
192
|
if (e.reason !== ShutdownReason.RELOAD && this.editSessionsStorageService.isSignedIn && this.configurationService.getValue('workbench.experimental.cloudChanges.autoStore') === 'onShutdown' && !isWeb) {
|
|
194
|
-
e.join(this.autoStoreEditSession(), { id: 'autoStoreWorkingChanges', label: (
|
|
193
|
+
e.join(this.autoStoreEditSession(), { id: 'autoStoreWorkingChanges', label: ( localize(2391, 'Storing current working changes...')) });
|
|
195
194
|
}
|
|
196
195
|
});
|
|
197
196
|
this._register(this.editSessionsStorageService.onDidSignIn(() => this.updateAccountsMenuBadge()));
|
|
@@ -249,7 +248,7 @@ let EditSessionsContribution = class EditSessionsContribution extends Disposable
|
|
|
249
248
|
if (this.editSessionsStorageService.isSignedIn) {
|
|
250
249
|
return this.accountsMenuBadgeDisposable.clear();
|
|
251
250
|
}
|
|
252
|
-
const badge = ( (new NumberBadge(1, () => (
|
|
251
|
+
const badge = ( (new NumberBadge(1, () => ( localize(2392, 'Check for pending cloud changes')))));
|
|
253
252
|
this.accountsMenuBadgeDisposable.value = this.activityService.showAccountsActivity({ badge });
|
|
254
253
|
}
|
|
255
254
|
async autoStoreEditSession() {
|
|
@@ -257,7 +256,7 @@ let EditSessionsContribution = class EditSessionsContribution extends Disposable
|
|
|
257
256
|
await this.progressService.withProgress({
|
|
258
257
|
location: ProgressLocation.Window,
|
|
259
258
|
type: 'syncing',
|
|
260
|
-
title: (
|
|
259
|
+
title: ( localize(2393, 'Storing working changes...'))
|
|
261
260
|
}, async () => this.storeEditSession(false, cancellationTokenSource.token), () => {
|
|
262
261
|
cancellationTokenSource.cancel();
|
|
263
262
|
cancellationTokenSource.dispose();
|
|
@@ -301,7 +300,7 @@ let EditSessionsContribution = class EditSessionsContribution extends Disposable
|
|
|
301
300
|
constructor() {
|
|
302
301
|
super({
|
|
303
302
|
id: 'workbench.editSessions.actions.showEditSessions',
|
|
304
|
-
title: (
|
|
303
|
+
title: ( localize2(2394, 'Show Cloud Changes')),
|
|
305
304
|
category: EDIT_SESSION_SYNC_CATEGORY,
|
|
306
305
|
f1: true
|
|
307
306
|
});
|
|
@@ -338,7 +337,7 @@ let EditSessionsContribution = class EditSessionsContribution extends Disposable
|
|
|
338
337
|
location: ProgressLocation.Notification,
|
|
339
338
|
cancellable: true,
|
|
340
339
|
type: 'syncing',
|
|
341
|
-
title: (
|
|
340
|
+
title: ( localize(2395, 'Storing your working changes...'))
|
|
342
341
|
}, async () => {
|
|
343
342
|
const ref = await that.storeEditSession(false, cancellationTokenSource.token);
|
|
344
343
|
if (ref !== undefined) {
|
|
@@ -387,7 +386,7 @@ let EditSessionsContribution = class EditSessionsContribution extends Disposable
|
|
|
387
386
|
constructor() {
|
|
388
387
|
super({
|
|
389
388
|
id: 'workbench.editSessions.actions.resumeLatest',
|
|
390
|
-
title: (
|
|
389
|
+
title: ( localize2(2396, 'Resume Latest Changes from Cloud')),
|
|
391
390
|
category: EDIT_SESSION_SYNC_CATEGORY,
|
|
392
391
|
f1: true,
|
|
393
392
|
});
|
|
@@ -400,7 +399,7 @@ let EditSessionsContribution = class EditSessionsContribution extends Disposable
|
|
|
400
399
|
constructor() {
|
|
401
400
|
super({
|
|
402
401
|
id: 'workbench.editSessions.actions.resumeFromSerializedPayload',
|
|
403
|
-
title: (
|
|
402
|
+
title: ( localize2(2397, 'Resume Changes from Serialized Data')),
|
|
404
403
|
category: 'Developer',
|
|
405
404
|
f1: true,
|
|
406
405
|
});
|
|
@@ -420,7 +419,7 @@ let EditSessionsContribution = class EditSessionsContribution extends Disposable
|
|
|
420
419
|
constructor() {
|
|
421
420
|
super({
|
|
422
421
|
id: 'workbench.editSessions.actions.storeCurrent',
|
|
423
|
-
title: (
|
|
422
|
+
title: ( localize2(2398, 'Store Working Changes in Cloud')),
|
|
424
423
|
category: EDIT_SESSION_SYNC_CATEGORY,
|
|
425
424
|
f1: true,
|
|
426
425
|
});
|
|
@@ -429,7 +428,7 @@ let EditSessionsContribution = class EditSessionsContribution extends Disposable
|
|
|
429
428
|
const cancellationTokenSource = ( (new CancellationTokenSource()));
|
|
430
429
|
await that.progressService.withProgress({
|
|
431
430
|
location: ProgressLocation.Notification,
|
|
432
|
-
title: (
|
|
431
|
+
title: ( localize(2399, 'Storing working changes...'))
|
|
433
432
|
}, async () => {
|
|
434
433
|
that.telemetryService.publicLog2('editSessions.store');
|
|
435
434
|
await that.storeEditSession(true, cancellationTokenSource.token);
|
|
@@ -451,14 +450,14 @@ let EditSessionsContribution = class EditSessionsContribution extends Disposable
|
|
|
451
450
|
}
|
|
452
451
|
this.telemetryService.publicLog2('editSessions.resume');
|
|
453
452
|
performance.mark('code/willResumeEditSessionFromIdentifier');
|
|
454
|
-
progress?.report({ message: (
|
|
453
|
+
progress?.report({ message: ( localize(2400, 'Checking for pending cloud changes...')) });
|
|
455
454
|
const data = serializedData ? { content: serializedData, ref: '' } : await this.editSessionsStorageService.read('editSessions', ref);
|
|
456
455
|
if (!data) {
|
|
457
456
|
if (ref === undefined && !silent) {
|
|
458
|
-
this.notificationService.info((
|
|
457
|
+
this.notificationService.info(( localize(2401, 'There are no changes to resume from the cloud.')));
|
|
459
458
|
}
|
|
460
459
|
else if (ref !== undefined) {
|
|
461
|
-
this.notificationService.warn((
|
|
460
|
+
this.notificationService.warn(( localize(2402, 'Could not resume changes from the cloud for ID {0}.', ref)));
|
|
462
461
|
}
|
|
463
462
|
this.logService.info(ref !== 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`);
|
|
464
463
|
return;
|
|
@@ -467,9 +466,8 @@ let EditSessionsContribution = class EditSessionsContribution extends Disposable
|
|
|
467
466
|
const editSession = JSON.parse(data.content);
|
|
468
467
|
ref = data.ref;
|
|
469
468
|
if (editSession.version > EditSessionSchemaVersion) {
|
|
470
|
-
this.notificationService.error((
|
|
471
|
-
|
|
472
|
-
17,
|
|
469
|
+
this.notificationService.error(( localize(
|
|
470
|
+
2403,
|
|
473
471
|
"Please upgrade to a newer version of {0} to resume your working changes from the cloud.",
|
|
474
472
|
this.productService.nameLong
|
|
475
473
|
)));
|
|
@@ -485,15 +483,13 @@ let EditSessionsContribution = class EditSessionsContribution extends Disposable
|
|
|
485
483
|
const { confirmed } = await this.dialogService.confirm({
|
|
486
484
|
type: Severity$1.Warning,
|
|
487
485
|
message: conflictingChanges.length > 1 ?
|
|
488
|
-
(
|
|
489
|
-
|
|
490
|
-
18,
|
|
486
|
+
( localize(
|
|
487
|
+
2404,
|
|
491
488
|
'Resuming your working changes from the cloud will overwrite the following {0} files. Do you want to proceed?',
|
|
492
489
|
conflictingChanges.length
|
|
493
490
|
)) :
|
|
494
|
-
(
|
|
495
|
-
|
|
496
|
-
19,
|
|
491
|
+
( localize(
|
|
492
|
+
2405,
|
|
497
493
|
'Resuming your working changes from the cloud will overwrite {0}. Do you want to proceed?',
|
|
498
494
|
basename(conflictingChanges[0].uri)
|
|
499
495
|
)),
|
|
@@ -519,7 +515,7 @@ let EditSessionsContribution = class EditSessionsContribution extends Disposable
|
|
|
519
515
|
}
|
|
520
516
|
catch (ex) {
|
|
521
517
|
this.logService.error('Failed to resume edit session, reason: ', ( (ex.toString())));
|
|
522
|
-
this.notificationService.error((
|
|
518
|
+
this.notificationService.error(( localize(2406, "Failed to resume your working changes from the cloud.")));
|
|
523
519
|
}
|
|
524
520
|
performance.mark('code/didResumeEditSessionFromIdentifier');
|
|
525
521
|
}
|
|
@@ -547,11 +543,10 @@ let EditSessionsContribution = class EditSessionsContribution extends Disposable
|
|
|
547
543
|
else if (match === EditSessionIdentityMatch.Partial &&
|
|
548
544
|
this.configurationService.getValue('workbench.experimental.cloudChanges.partialMatches.enabled') === true) {
|
|
549
545
|
if (!applyPartialMatch) {
|
|
550
|
-
this.notificationService.prompt(Severity$1.Info, (
|
|
551
|
-
|
|
552
|
-
21,
|
|
546
|
+
this.notificationService.prompt(Severity$1.Info, ( localize(
|
|
547
|
+
2407,
|
|
553
548
|
'You have pending working changes in the cloud for this workspace. Would you like to resume them?'
|
|
554
|
-
)), [{ label: (
|
|
549
|
+
)), [{ label: ( localize(2408, 'Resume')), run: () => this.resumeEditSession(ref, false, undefined, true) }]);
|
|
555
550
|
}
|
|
556
551
|
else {
|
|
557
552
|
folderRoot = f;
|
|
@@ -634,11 +629,7 @@ let EditSessionsContribution = class EditSessionsContribution extends Disposable
|
|
|
634
629
|
const contents = encodeBase64((await this.fileService.readFile(uri)).value);
|
|
635
630
|
editSessionSize += contents.length;
|
|
636
631
|
if (editSessionSize > this.editSessionsStorageService.SIZE_LIMIT) {
|
|
637
|
-
this.notificationService.error((
|
|
638
|
-
_moduleId,
|
|
639
|
-
23,
|
|
640
|
-
'Your working changes exceed the size limit and cannot be stored.'
|
|
641
|
-
)));
|
|
632
|
+
this.notificationService.error(( localize(2409, 'Your working changes exceed the size limit and cannot be stored.')));
|
|
642
633
|
return undefined;
|
|
643
634
|
}
|
|
644
635
|
workingChanges.push({ type: ChangeType.Addition, fileType: FileType.File, contents: contents, relativeFilePath: relativeFilePath });
|
|
@@ -657,9 +648,8 @@ let EditSessionsContribution = class EditSessionsContribution extends Disposable
|
|
|
657
648
|
if (!hasEdits) {
|
|
658
649
|
this.logService.info('Skipped storing working changes in the cloud as there are no edits to store.');
|
|
659
650
|
if (fromStoreCommand) {
|
|
660
|
-
this.notificationService.info((
|
|
661
|
-
|
|
662
|
-
24,
|
|
651
|
+
this.notificationService.info(( localize(
|
|
652
|
+
2410,
|
|
663
653
|
'Skipped storing working changes in the cloud as there are no edits to store.'
|
|
664
654
|
)));
|
|
665
655
|
}
|
|
@@ -678,15 +668,11 @@ let EditSessionsContribution = class EditSessionsContribution extends Disposable
|
|
|
678
668
|
switch (ex.code) {
|
|
679
669
|
case UserDataSyncErrorCode.TooLarge:
|
|
680
670
|
this.telemetryService.publicLog2('editSessions.upload.failed', { reason: 'TooLarge' });
|
|
681
|
-
this.notificationService.error((
|
|
682
|
-
_moduleId,
|
|
683
|
-
23,
|
|
684
|
-
'Your working changes exceed the size limit and cannot be stored.'
|
|
685
|
-
)));
|
|
671
|
+
this.notificationService.error(( localize(2410, 'Your working changes exceed the size limit and cannot be stored.')));
|
|
686
672
|
break;
|
|
687
673
|
default:
|
|
688
674
|
this.telemetryService.publicLog2('editSessions.upload.failed', { reason: 'unknown' });
|
|
689
|
-
this.notificationService.error((
|
|
675
|
+
this.notificationService.error(( localize(2411, 'Your working changes cannot be stored.')));
|
|
690
676
|
break;
|
|
691
677
|
}
|
|
692
678
|
}
|
|
@@ -717,11 +703,11 @@ let EditSessionsContribution = class EditSessionsContribution extends Disposable
|
|
|
717
703
|
}
|
|
718
704
|
if (this.hasEditSession()) {
|
|
719
705
|
const quickpick = this.quickInputService.createQuickPick();
|
|
720
|
-
quickpick.placeholder = (
|
|
706
|
+
quickpick.placeholder = ( localize(2412, "Select whether to bring your working changes with you"));
|
|
721
707
|
quickpick.ok = false;
|
|
722
708
|
quickpick.ignoreFocusOut = true;
|
|
723
|
-
const withCloudChanges = { label: (
|
|
724
|
-
const withoutCloudChanges = { label: (
|
|
709
|
+
const withCloudChanges = { label: ( localize(2413, "Yes, continue with my working changes")) };
|
|
710
|
+
const withoutCloudChanges = { label: ( localize(2414, "No, continue without my working changes")) };
|
|
725
711
|
quickpick.items = [withCloudChanges, withoutCloudChanges];
|
|
726
712
|
const continueWithCloudChanges = await ( (new Promise((resolve, reject) => {
|
|
727
713
|
quickpick.onDidAccept(() => {
|
|
@@ -814,7 +800,7 @@ let EditSessionsContribution = class EditSessionsContribution extends Disposable
|
|
|
814
800
|
}
|
|
815
801
|
async run(accessor) {
|
|
816
802
|
const selection = await that.fileDialogService.showOpenDialog({
|
|
817
|
-
title: (
|
|
803
|
+
title: ( localize(2415, 'Select a local folder to continue working in')),
|
|
818
804
|
canSelectFolders: true,
|
|
819
805
|
canSelectMany: false,
|
|
820
806
|
canSelectFiles: false,
|
|
@@ -828,7 +814,7 @@ let EditSessionsContribution = class EditSessionsContribution extends Disposable
|
|
|
828
814
|
}
|
|
829
815
|
}));
|
|
830
816
|
if (getVirtualWorkspaceLocation(this.contextService.getWorkspace()) !== undefined && isNative) {
|
|
831
|
-
this.generateStandaloneOptionCommand(openLocalFolderCommand.id, (
|
|
817
|
+
this.generateStandaloneOptionCommand(openLocalFolderCommand.id, ( localize(2416, 'Continue Working in Existing Local Folder')), undefined, openLocalFolderCommand.precondition, undefined);
|
|
832
818
|
}
|
|
833
819
|
}
|
|
834
820
|
async pickContinueEditSessionDestination() {
|
|
@@ -836,9 +822,8 @@ let EditSessionsContribution = class EditSessionsContribution extends Disposable
|
|
|
836
822
|
const workspaceContext = this.contextService.getWorkbenchState() === WorkbenchState.FOLDER
|
|
837
823
|
? this.contextService.getWorkspace().folders[0].name
|
|
838
824
|
: ( (this.contextService.getWorkspace().folders.map((folder) => folder.name))).join(', ');
|
|
839
|
-
quickPick.placeholder = (
|
|
840
|
-
|
|
841
|
-
31,
|
|
825
|
+
quickPick.placeholder = ( localize(
|
|
826
|
+
2417,
|
|
842
827
|
"Select a development environment to continue working on {0} in",
|
|
843
828
|
`'${workspaceContext}'`
|
|
844
829
|
));
|
|
@@ -896,7 +881,7 @@ let EditSessionsContribution = class EditSessionsContribution extends Disposable
|
|
|
896
881
|
createPickItems() {
|
|
897
882
|
const items = [...this.continueEditSessionOptions].filter((option) => option.when === undefined || this.contextKeyService.contextMatchesRules(option.when));
|
|
898
883
|
if (getVirtualWorkspaceLocation(this.contextService.getWorkspace()) !== undefined && isNative) {
|
|
899
|
-
items.push(( (new ContinueEditSessionItem('$(folder) ' + (
|
|
884
|
+
items.push(( (new ContinueEditSessionItem('$(folder) ' + ( localize(2418, 'Open in Local Folder')), openLocalFolderCommand.id, ( localize(2419, 'Built-in'))))));
|
|
900
885
|
}
|
|
901
886
|
const sortedItems = items.sort((item1, item2) => item1.label.localeCompare(item2.label));
|
|
902
887
|
return sortedItems.concat({ type: 'separator' }, ( (new ContinueEditSessionItem(
|
|
@@ -947,7 +932,7 @@ class ContinueEditSessionItem {
|
|
|
947
932
|
if (documentation !== undefined) {
|
|
948
933
|
this.buttons = [{
|
|
949
934
|
iconClass: infoButtonClass,
|
|
950
|
-
tooltip: (
|
|
935
|
+
tooltip: ( localize(2420, 'Learn More')),
|
|
951
936
|
}];
|
|
952
937
|
}
|
|
953
938
|
}
|
|
@@ -955,9 +940,8 @@ class ContinueEditSessionItem {
|
|
|
955
940
|
const continueEditSessionExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
956
941
|
extensionPoint: 'continueEditSession',
|
|
957
942
|
jsonSchema: {
|
|
958
|
-
description: (
|
|
959
|
-
|
|
960
|
-
35,
|
|
943
|
+
description: ( localize(
|
|
944
|
+
2421,
|
|
961
945
|
'Contributes options for continuing the current edit session in a different environment'
|
|
962
946
|
)),
|
|
963
947
|
type: 'array',
|
|
@@ -965,43 +949,36 @@ const continueEditSessionExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
965
949
|
type: 'object',
|
|
966
950
|
properties: {
|
|
967
951
|
command: {
|
|
968
|
-
description: (
|
|
969
|
-
|
|
970
|
-
36,
|
|
952
|
+
description: ( localize(
|
|
953
|
+
2422,
|
|
971
954
|
'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.'
|
|
972
955
|
)),
|
|
973
956
|
type: 'string'
|
|
974
957
|
},
|
|
975
958
|
group: {
|
|
976
|
-
description: (
|
|
959
|
+
description: ( localize(2423, 'Group into which this item belongs.')),
|
|
977
960
|
type: 'string'
|
|
978
961
|
},
|
|
979
962
|
qualifiedName: {
|
|
980
|
-
description: (
|
|
981
|
-
|
|
982
|
-
38,
|
|
963
|
+
description: ( localize(
|
|
964
|
+
2424,
|
|
983
965
|
'A fully qualified name for this item which is used for display in menus.'
|
|
984
966
|
)),
|
|
985
967
|
type: 'string'
|
|
986
968
|
},
|
|
987
969
|
description: {
|
|
988
|
-
description: (
|
|
989
|
-
|
|
990
|
-
39,
|
|
970
|
+
description: ( localize(
|
|
971
|
+
2425,
|
|
991
972
|
"The url, or a command that returns the url, to the option's documentation page."
|
|
992
973
|
)),
|
|
993
974
|
type: 'string'
|
|
994
975
|
},
|
|
995
976
|
remoteGroup: {
|
|
996
|
-
description: (
|
|
997
|
-
_moduleId,
|
|
998
|
-
40,
|
|
999
|
-
'Group into which this item belongs in the remote indicator.'
|
|
1000
|
-
)),
|
|
977
|
+
description: ( localize(2426, 'Group into which this item belongs in the remote indicator.')),
|
|
1001
978
|
type: 'string'
|
|
1002
979
|
},
|
|
1003
980
|
when: {
|
|
1004
|
-
description: (
|
|
981
|
+
description: ( localize(2427, 'Condition which must be true to show this item.')),
|
|
1005
982
|
type: 'string'
|
|
1006
983
|
}
|
|
1007
984
|
},
|
|
@@ -1017,65 +994,54 @@ workbenchRegistry.registerWorkbenchContribution(EditSessionsContribution, Lifecy
|
|
|
1017
994
|
'workbench.experimental.cloudChanges.autoStore': {
|
|
1018
995
|
enum: ['onShutdown', 'off'],
|
|
1019
996
|
enumDescriptions: [
|
|
1020
|
-
(
|
|
1021
|
-
|
|
1022
|
-
42,
|
|
997
|
+
( localize(
|
|
998
|
+
2428,
|
|
1023
999
|
"Automatically store current working changes in the cloud on window close."
|
|
1024
1000
|
)),
|
|
1025
|
-
(
|
|
1026
|
-
_moduleId,
|
|
1027
|
-
43,
|
|
1028
|
-
"Never attempt to automatically store working changes in the cloud."
|
|
1029
|
-
))
|
|
1001
|
+
( localize(2429, "Never attempt to automatically store working changes in the cloud."))
|
|
1030
1002
|
],
|
|
1031
1003
|
'type': 'string',
|
|
1032
1004
|
'tags': ['experimental', 'usesOnlineServices'],
|
|
1033
1005
|
'default': 'off',
|
|
1034
|
-
'markdownDescription': (
|
|
1035
|
-
|
|
1036
|
-
44,
|
|
1006
|
+
'markdownDescription': ( localize(
|
|
1007
|
+
2430,
|
|
1037
1008
|
"Controls whether to automatically store available working changes in the cloud for the current workspace. This setting has no effect in the web."
|
|
1038
1009
|
)),
|
|
1039
1010
|
},
|
|
1040
1011
|
'workbench.cloudChanges.autoResume': {
|
|
1041
1012
|
enum: ['onReload', 'off'],
|
|
1042
1013
|
enumDescriptions: [
|
|
1043
|
-
(
|
|
1044
|
-
|
|
1045
|
-
45,
|
|
1014
|
+
( localize(
|
|
1015
|
+
2431,
|
|
1046
1016
|
"Automatically resume available working changes from the cloud on window reload."
|
|
1047
1017
|
)),
|
|
1048
|
-
(
|
|
1018
|
+
( localize(2432, "Never attempt to resume working changes from the cloud."))
|
|
1049
1019
|
],
|
|
1050
1020
|
'type': 'string',
|
|
1051
1021
|
'tags': ['usesOnlineServices'],
|
|
1052
1022
|
'default': 'onReload',
|
|
1053
|
-
'markdownDescription': (
|
|
1054
|
-
|
|
1055
|
-
47,
|
|
1023
|
+
'markdownDescription': ( localize(
|
|
1024
|
+
2433,
|
|
1056
1025
|
"Controls whether to automatically resume available working changes stored in the cloud for the current workspace."
|
|
1057
1026
|
)),
|
|
1058
1027
|
},
|
|
1059
1028
|
'workbench.cloudChanges.continueOn': {
|
|
1060
1029
|
enum: ['prompt', 'off'],
|
|
1061
1030
|
enumDescriptions: [
|
|
1062
|
-
(
|
|
1063
|
-
|
|
1064
|
-
48,
|
|
1031
|
+
( localize(
|
|
1032
|
+
2434,
|
|
1065
1033
|
'Prompt the user to sign in to store working changes in the cloud with Continue Working On.'
|
|
1066
1034
|
)),
|
|
1067
|
-
(
|
|
1068
|
-
|
|
1069
|
-
49,
|
|
1035
|
+
( localize(
|
|
1036
|
+
2435,
|
|
1070
1037
|
'Do not store working changes in the cloud with Continue Working On unless the user has already turned on Cloud Changes.'
|
|
1071
1038
|
))
|
|
1072
1039
|
],
|
|
1073
1040
|
type: 'string',
|
|
1074
1041
|
tags: ['usesOnlineServices'],
|
|
1075
1042
|
default: 'prompt',
|
|
1076
|
-
markdownDescription: (
|
|
1077
|
-
|
|
1078
|
-
50,
|
|
1043
|
+
markdownDescription: ( localize(
|
|
1044
|
+
2436,
|
|
1079
1045
|
'Controls whether to prompt the user to store working changes in the cloud when using Continue Working On.'
|
|
1080
1046
|
))
|
|
1081
1047
|
},
|
|
@@ -1083,9 +1049,8 @@ workbenchRegistry.registerWorkbenchContribution(EditSessionsContribution, Lifecy
|
|
|
1083
1049
|
'type': 'boolean',
|
|
1084
1050
|
'tags': ['experimental', 'usesOnlineServices'],
|
|
1085
1051
|
'default': false,
|
|
1086
|
-
'markdownDescription': (
|
|
1087
|
-
|
|
1088
|
-
51,
|
|
1052
|
+
'markdownDescription': ( localize(
|
|
1053
|
+
2437,
|
|
1089
1054
|
"Controls whether to surface cloud changes which partially match the current session."
|
|
1090
1055
|
))
|
|
1091
1056
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
|
|
2
2
|
import { Disposable, DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
3
|
-
import {
|
|
3
|
+
import { localize } from 'vscode/vscode/vs/nls';
|
|
4
4
|
import { registerAction2, Action2, MenuId, MenuRegistry } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
5
5
|
import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
6
6
|
import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
@@ -25,7 +25,6 @@ import { CancellationError } from 'vscode/vscode/vs/base/common/errors';
|
|
|
25
25
|
import { ISecretStorageService } from 'vscode/vscode/vs/platform/secrets/common/secrets.service';
|
|
26
26
|
|
|
27
27
|
var EditSessionsWorkbenchService_1;
|
|
28
|
-
const _moduleId = "vs/workbench/contrib/editSessions/browser/editSessionsStorageService";
|
|
29
28
|
let EditSessionsWorkbenchService = class EditSessionsWorkbenchService extends Disposable {
|
|
30
29
|
static { EditSessionsWorkbenchService_1 = this; }
|
|
31
30
|
static { this.CACHED_SESSION_STORAGE_KEY = 'editSessionAccountPreference'; }
|
|
@@ -233,15 +232,7 @@ let EditSessionsWorkbenchService = class EditSessionsWorkbenchService extends Di
|
|
|
233
232
|
async getAccountPreference(reason) {
|
|
234
233
|
const quickpick = this.quickInputService.createQuickPick();
|
|
235
234
|
quickpick.ok = false;
|
|
236
|
-
quickpick.placeholder = reason === 'read' ? (
|
|
237
|
-
_moduleId,
|
|
238
|
-
0,
|
|
239
|
-
"Select an account to restore your working changes from the cloud"
|
|
240
|
-
)) : ( localizeWithPath(
|
|
241
|
-
_moduleId,
|
|
242
|
-
1,
|
|
243
|
-
"Select an account to store your working changes in the cloud"
|
|
244
|
-
));
|
|
235
|
+
quickpick.placeholder = reason === 'read' ? ( localize(2375, "Select an account to restore your working changes from the cloud")) : ( localize(2376, "Select an account to store your working changes in the cloud"));
|
|
245
236
|
quickpick.ignoreFocusOut = true;
|
|
246
237
|
quickpick.items = await this.createQuickpickItems();
|
|
247
238
|
return (
|
|
@@ -262,15 +253,15 @@ let EditSessionsWorkbenchService = class EditSessionsWorkbenchService extends Di
|
|
|
262
253
|
}
|
|
263
254
|
async createQuickpickItems() {
|
|
264
255
|
const options = [];
|
|
265
|
-
options.push({ type: 'separator', label: (
|
|
256
|
+
options.push({ type: 'separator', label: ( localize(2377, "Signed In")) });
|
|
266
257
|
const sessions = await this.getAllSessions();
|
|
267
258
|
options.push(...sessions);
|
|
268
|
-
options.push({ type: 'separator', label: (
|
|
259
|
+
options.push({ type: 'separator', label: ( localize(2378, "Others")) });
|
|
269
260
|
for (const authenticationProvider of (await this.getAuthenticationProviders())) {
|
|
270
261
|
const signedInForProvider = ( (sessions.some(account => account.session.providerId === authenticationProvider.id)));
|
|
271
262
|
if (!signedInForProvider || this.authenticationService.getProvider(authenticationProvider.id).supportsMultipleAccounts) {
|
|
272
263
|
const providerName = this.authenticationService.getProvider(authenticationProvider.id).label;
|
|
273
|
-
options.push({ label: (
|
|
264
|
+
options.push({ label: ( localize(2379, "Sign in with {0}", providerName)), provider: authenticationProvider });
|
|
274
265
|
}
|
|
275
266
|
}
|
|
276
267
|
return options;
|
|
@@ -359,7 +350,7 @@ let EditSessionsWorkbenchService = class EditSessionsWorkbenchService extends Di
|
|
|
359
350
|
constructor() {
|
|
360
351
|
super({
|
|
361
352
|
id,
|
|
362
|
-
title: (
|
|
353
|
+
title: ( localize(2380, 'Turn on Cloud Changes...')),
|
|
363
354
|
category: EDIT_SESSION_SYNC_CATEGORY,
|
|
364
355
|
precondition: when,
|
|
365
356
|
menu: [{
|
|
@@ -380,7 +371,7 @@ let EditSessionsWorkbenchService = class EditSessionsWorkbenchService extends Di
|
|
|
380
371
|
group: '2_editSessions',
|
|
381
372
|
command: {
|
|
382
373
|
id,
|
|
383
|
-
title: (
|
|
374
|
+
title: ( localize(2381, 'Turn on Cloud Changes... (1)')),
|
|
384
375
|
},
|
|
385
376
|
when: ( (ContextKeyExpr.and(
|
|
386
377
|
(ContextKeyExpr.equals(EDIT_SESSIONS_PENDING_KEY, true)),
|
|
@@ -394,7 +385,7 @@ let EditSessionsWorkbenchService = class EditSessionsWorkbenchService extends Di
|
|
|
394
385
|
constructor() {
|
|
395
386
|
super({
|
|
396
387
|
id: 'workbench.editSessions.actions.resetAuth',
|
|
397
|
-
title: (
|
|
388
|
+
title: ( localize(2382, 'Turn off Cloud Changes...')),
|
|
398
389
|
category: EDIT_SESSION_SYNC_CATEGORY,
|
|
399
390
|
precondition: ( (ContextKeyExpr.equals(EDIT_SESSIONS_SIGNED_IN_KEY, true))),
|
|
400
391
|
menu: [{
|
|
@@ -409,12 +400,8 @@ let EditSessionsWorkbenchService = class EditSessionsWorkbenchService extends Di
|
|
|
409
400
|
}
|
|
410
401
|
async run() {
|
|
411
402
|
const result = await that.dialogService.confirm({
|
|
412
|
-
message: (
|
|
413
|
-
|
|
414
|
-
8,
|
|
415
|
-
'Do you want to disable storing working changes in the cloud?'
|
|
416
|
-
)),
|
|
417
|
-
checkbox: { label: ( localizeWithPath(_moduleId, 9, 'Delete all stored data from the cloud.')) }
|
|
403
|
+
message: ( localize(2383, 'Do you want to disable storing working changes in the cloud?')),
|
|
404
|
+
checkbox: { label: ( localize(2384, 'Delete all stored data from the cloud.')) }
|
|
418
405
|
});
|
|
419
406
|
if (result.confirmed) {
|
|
420
407
|
if (result.checkboxChecked) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
|
|
2
2
|
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
3
|
-
import {
|
|
3
|
+
import { localize } from 'vscode/vscode/vs/nls';
|
|
4
4
|
import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
|
|
5
5
|
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
6
6
|
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
@@ -22,7 +22,6 @@ import { joinPath } from 'vscode/vscode/vs/base/common/resources';
|
|
|
22
22
|
import { IFileService } from 'vscode/vscode/vs/platform/files/common/files.service';
|
|
23
23
|
import { basename } from 'vscode/vscode/vs/base/common/path';
|
|
24
24
|
|
|
25
|
-
const _moduleId = "vs/workbench/contrib/editSessions/browser/editSessionsViews";
|
|
26
25
|
const EDIT_SESSIONS_COUNT_KEY = 'editSessionsCount';
|
|
27
26
|
const EDIT_SESSIONS_COUNT_CONTEXT_KEY = ( (new RawContextKey(EDIT_SESSIONS_COUNT_KEY, 0)));
|
|
28
27
|
let EditSessionsDataViews = class EditSessionsDataViews extends Disposable {
|
|
@@ -51,11 +50,10 @@ let EditSessionsDataViews = class EditSessionsDataViews extends Disposable {
|
|
|
51
50
|
hideByDefault: true,
|
|
52
51
|
}], container);
|
|
53
52
|
viewsRegistry.registerViewWelcomeContent(viewId, {
|
|
54
|
-
content: (
|
|
55
|
-
|
|
56
|
-
0,
|
|
53
|
+
content: ( localize(
|
|
54
|
+
5692,
|
|
57
55
|
'You have no stored changes in the cloud to display.\n{0}',
|
|
58
|
-
`[${(
|
|
56
|
+
`[${( localize(5693, 'Store Working Changes'))}](command:workbench.editSessions.actions.store)`
|
|
59
57
|
)),
|
|
60
58
|
when: ( (ContextKeyExpr.equals(EDIT_SESSIONS_COUNT_KEY, 0))),
|
|
61
59
|
order: 1
|
|
@@ -64,7 +62,7 @@ let EditSessionsDataViews = class EditSessionsDataViews extends Disposable {
|
|
|
64
62
|
constructor() {
|
|
65
63
|
super({
|
|
66
64
|
id: 'workbench.editSessions.actions.resume',
|
|
67
|
-
title: (
|
|
65
|
+
title: ( localize(5694, "Resume Working Changes")),
|
|
68
66
|
icon: Codicon.desktopDownload,
|
|
69
67
|
menu: {
|
|
70
68
|
id: MenuId.ViewItemContext,
|
|
@@ -87,7 +85,7 @@ let EditSessionsDataViews = class EditSessionsDataViews extends Disposable {
|
|
|
87
85
|
constructor() {
|
|
88
86
|
super({
|
|
89
87
|
id: 'workbench.editSessions.actions.store',
|
|
90
|
-
title: (
|
|
88
|
+
title: ( localize(5695, "Store Working Changes")),
|
|
91
89
|
icon: Codicon.cloudUpload,
|
|
92
90
|
});
|
|
93
91
|
}
|
|
@@ -101,7 +99,7 @@ let EditSessionsDataViews = class EditSessionsDataViews extends Disposable {
|
|
|
101
99
|
constructor() {
|
|
102
100
|
super({
|
|
103
101
|
id: 'workbench.editSessions.actions.delete',
|
|
104
|
-
title: (
|
|
102
|
+
title: ( localize(5696, "Delete Working Changes")),
|
|
105
103
|
icon: Codicon.trash,
|
|
106
104
|
menu: {
|
|
107
105
|
id: MenuId.ViewItemContext,
|
|
@@ -118,13 +116,12 @@ let EditSessionsDataViews = class EditSessionsDataViews extends Disposable {
|
|
|
118
116
|
const dialogService = accessor.get(IDialogService);
|
|
119
117
|
const editSessionStorageService = accessor.get(IEditSessionsStorageService);
|
|
120
118
|
const result = await dialogService.confirm({
|
|
121
|
-
message: (
|
|
122
|
-
|
|
123
|
-
5,
|
|
119
|
+
message: ( localize(
|
|
120
|
+
5697,
|
|
124
121
|
'Are you sure you want to permanently delete your working changes with ref {0}?',
|
|
125
122
|
editSessionId
|
|
126
123
|
)),
|
|
127
|
-
detail: (
|
|
124
|
+
detail: ( localize(5698, ' You cannot undo this action.')),
|
|
128
125
|
type: 'warning',
|
|
129
126
|
title: EDIT_SESSIONS_TITLE.value
|
|
130
127
|
});
|
|
@@ -138,7 +135,7 @@ let EditSessionsDataViews = class EditSessionsDataViews extends Disposable {
|
|
|
138
135
|
constructor() {
|
|
139
136
|
super({
|
|
140
137
|
id: 'workbench.editSessions.actions.deleteAll',
|
|
141
|
-
title: (
|
|
138
|
+
title: ( localize(5699, "Delete All Working Changes from Cloud")),
|
|
142
139
|
icon: Codicon.trash,
|
|
143
140
|
menu: {
|
|
144
141
|
id: MenuId.ViewTitle,
|
|
@@ -153,12 +150,11 @@ let EditSessionsDataViews = class EditSessionsDataViews extends Disposable {
|
|
|
153
150
|
const dialogService = accessor.get(IDialogService);
|
|
154
151
|
const editSessionStorageService = accessor.get(IEditSessionsStorageService);
|
|
155
152
|
const result = await dialogService.confirm({
|
|
156
|
-
message: (
|
|
157
|
-
|
|
158
|
-
8,
|
|
153
|
+
message: ( localize(
|
|
154
|
+
5700,
|
|
159
155
|
'Are you sure you want to permanently delete all stored changes from the cloud?'
|
|
160
156
|
)),
|
|
161
|
-
detail: (
|
|
157
|
+
detail: ( localize(5701, ' You cannot undo this action.')),
|
|
162
158
|
type: 'warning',
|
|
163
159
|
title: EDIT_SESSIONS_TITLE.value
|
|
164
160
|
});
|
|
@@ -272,11 +268,11 @@ let EditSessionDataViewDataProvider = class EditSessionDataViewDataProvider {
|
|
|
272
268
|
themeIcon: Codicon.file,
|
|
273
269
|
command: {
|
|
274
270
|
id: 'vscode.diff',
|
|
275
|
-
title: (
|
|
271
|
+
title: ( localize(5702, 'Compare Changes')),
|
|
276
272
|
arguments: [
|
|
277
273
|
localCopy,
|
|
278
274
|
cloudChangeUri,
|
|
279
|
-
`${basename(change.relativeFilePath)} (${(
|
|
275
|
+
`${basename(change.relativeFilePath)} (${( localize(5703, 'Local Copy'))} \u2194 ${( localize(5704, 'Cloud Changes'))})`,
|
|
280
276
|
undefined
|
|
281
277
|
]
|
|
282
278
|
}
|
|
@@ -291,7 +287,7 @@ let EditSessionDataViewDataProvider = class EditSessionDataViewDataProvider {
|
|
|
291
287
|
themeIcon: Codicon.file,
|
|
292
288
|
command: {
|
|
293
289
|
id: API_OPEN_EDITOR_COMMAND_ID,
|
|
294
|
-
title: (
|
|
290
|
+
title: ( localize(5705, 'Open File')),
|
|
295
291
|
arguments: [cloudChangeUri, undefined, undefined]
|
|
296
292
|
}
|
|
297
293
|
};
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { decodeBase64, VSBuffer } from 'vscode/vscode/vs/base/common/buffer';
|
|
2
2
|
import { Codicon } from 'vscode/vscode/vs/base/common/codicons';
|
|
3
|
-
import {
|
|
3
|
+
import { localize2, localize } from 'vscode/vscode/vs/nls';
|
|
4
4
|
import { RawContextKey } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
5
5
|
import { registerIcon } from 'vscode/vscode/vs/platform/theme/common/iconRegistry';
|
|
6
6
|
import { StringSHA1 } from 'vscode/vscode/vs/base/common/hash';
|
|
7
7
|
|
|
8
|
-
const
|
|
9
|
-
const EDIT_SESSION_SYNC_CATEGORY = ( localize2WithPath(_moduleId, 0, 'Cloud Changes'));
|
|
8
|
+
const EDIT_SESSION_SYNC_CATEGORY = ( localize2(5680, 'Cloud Changes'));
|
|
10
9
|
var ChangeType;
|
|
11
10
|
( ((function(ChangeType) {
|
|
12
11
|
ChangeType[ChangeType["Addition"] = 1] = "Addition";
|
|
@@ -23,8 +22,8 @@ const EDIT_SESSIONS_PENDING_KEY = 'editSessionsPending';
|
|
|
23
22
|
const EDIT_SESSIONS_PENDING = ( (new RawContextKey(EDIT_SESSIONS_PENDING_KEY, false)));
|
|
24
23
|
const EDIT_SESSIONS_CONTAINER_ID = 'workbench.view.editSessions';
|
|
25
24
|
const EDIT_SESSIONS_DATA_VIEW_ID = 'workbench.views.editSessions.data';
|
|
26
|
-
const EDIT_SESSIONS_TITLE = (
|
|
27
|
-
const EDIT_SESSIONS_VIEW_ICON = registerIcon('edit-sessions-view-icon', Codicon.cloudDownload, (
|
|
25
|
+
const EDIT_SESSIONS_TITLE = ( localize2(5680, 'Cloud Changes'));
|
|
26
|
+
const EDIT_SESSIONS_VIEW_ICON = registerIcon('edit-sessions-view-icon', Codicon.cloudDownload, ( localize(5681, 'View icon of the cloud changes view.')));
|
|
28
27
|
const EDIT_SESSIONS_SHOW_VIEW = ( (new RawContextKey('editSessionsShowView', false)));
|
|
29
28
|
const EDIT_SESSIONS_SCHEME = 'vscode-edit-sessions';
|
|
30
29
|
function decodeEditSessionFileContent(version, content) {
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
|
|
2
2
|
import { joinPath } from 'vscode/vscode/vs/base/common/resources';
|
|
3
|
-
import {
|
|
3
|
+
import { localize } from 'vscode/vscode/vs/nls';
|
|
4
4
|
import { IEnvironmentService } from 'vscode/vscode/vs/platform/environment/common/environment.service';
|
|
5
5
|
import { AbstractLogger } from 'vscode/vscode/vs/platform/log/common/log';
|
|
6
6
|
import { ILoggerService } from 'vscode/vscode/vs/platform/log/common/log.service';
|
|
7
7
|
import { editSessionsLogId } from './editSessions.js';
|
|
8
8
|
|
|
9
|
-
const _moduleId = "vs/workbench/contrib/editSessions/common/editSessionsLogService";
|
|
10
9
|
let EditSessionsLogService = class EditSessionsLogService extends AbstractLogger {
|
|
11
10
|
constructor(loggerService, environmentService) {
|
|
12
11
|
super();
|
|
13
|
-
this.logger = this._register(loggerService.createLogger(joinPath(environmentService.logsHome, `${editSessionsLogId}.log`), { id: editSessionsLogId, name: (
|
|
12
|
+
this.logger = this._register(loggerService.createLogger(joinPath(environmentService.logsHome, `${editSessionsLogId}.log`), { id: editSessionsLogId, name: ( localize(2374, "Cloud Changes")) }));
|
|
14
13
|
}
|
|
15
14
|
trace(message, ...args) {
|
|
16
15
|
this.logger.trace(message, ...args);
|