@codingame/monaco-vscode-user-data-sync-service-override 2.0.3 → 2.1.0
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/userDataSync/browser/userDataSync.js +20 -19
- package/vscode/src/vs/workbench/contrib/userDataSync/browser/userDataSyncTrigger.js +1 -1
- package/vscode/src/vs/workbench/contrib/userDataSync/browser/userDataSyncViews.js +3 -3
- package/vscode/src/vs/workbench/{browser → services/userDataProfile/browser}/iconSelectBox.js +2 -2
- package/vscode/src/vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService.js +4 -3
- package/vscode/src/vs/workbench/services/userDataSync/browser/userDataSyncWorkbenchService.js +3 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-user-data-sync-service-override",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"module": "index.js",
|
|
19
19
|
"types": "index.d.ts",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"vscode": "npm:@codingame/monaco-vscode-api@2.0
|
|
21
|
+
"vscode": "npm:@codingame/monaco-vscode-api@2.1.0",
|
|
22
22
|
"vscode-marked": "npm:marked@=3.0.2"
|
|
23
23
|
}
|
|
24
24
|
}
|
|
@@ -8,7 +8,7 @@ import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
|
8
8
|
import { IModelService } from 'vscode/vscode/vs/editor/common/services/model';
|
|
9
9
|
import { ILanguageService } from 'vscode/vscode/vs/editor/common/languages/language';
|
|
10
10
|
import { ITextModelService } from 'vscode/vscode/vs/editor/common/services/resolverService';
|
|
11
|
-
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
11
|
+
import { localize2WithPath, localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
12
12
|
import { registerAction2, Action2, MenuId, MenuRegistry } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
13
13
|
import { ICommandService } from 'vscode/vscode/vs/platform/commands/common/commands';
|
|
14
14
|
import { RawContextKey, ContextKeyExpr, ContextKeyTrueExpr, IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
@@ -44,24 +44,24 @@ import { IUserDataProfileService } from 'vscode/vscode/vs/workbench/services/use
|
|
|
44
44
|
import { isWeb } from 'vscode/vscode/vs/base/common/platform';
|
|
45
45
|
import { IDialogService } from 'vscode/vscode/vs/platform/dialogs/common/dialogs';
|
|
46
46
|
|
|
47
|
-
const turnOffSyncCommand = { id: 'workbench.userDataSync.actions.turnOff', title:
|
|
47
|
+
const turnOffSyncCommand = { id: 'workbench.userDataSync.actions.turnOff', title: ( localize2WithPath(
|
|
48
48
|
'vs/workbench/contrib/userDataSync/browser/userDataSync',
|
|
49
49
|
'stop sync',
|
|
50
|
-
|
|
51
|
-
))
|
|
52
|
-
const configureSyncCommand = { id: CONFIGURE_SYNC_COMMAND_ID, title:
|
|
50
|
+
'Turn Off'
|
|
51
|
+
)) };
|
|
52
|
+
const configureSyncCommand = { id: CONFIGURE_SYNC_COMMAND_ID, title: ( localize2WithPath(
|
|
53
53
|
'vs/workbench/contrib/userDataSync/browser/userDataSync',
|
|
54
54
|
'configure sync',
|
|
55
|
-
|
|
56
|
-
))
|
|
55
|
+
'Configure...'
|
|
56
|
+
)) };
|
|
57
57
|
const showConflictsCommandId = 'workbench.userDataSync.actions.showConflicts';
|
|
58
58
|
const syncNowCommand = {
|
|
59
59
|
id: 'workbench.userDataSync.actions.syncNow',
|
|
60
|
-
title:
|
|
60
|
+
title: ( localize2WithPath(
|
|
61
61
|
'vs/workbench/contrib/userDataSync/browser/userDataSync',
|
|
62
62
|
'sync now',
|
|
63
|
-
|
|
64
|
-
)),
|
|
63
|
+
'Sync Now'
|
|
64
|
+
)),
|
|
65
65
|
description(userDataSyncService) {
|
|
66
66
|
if (userDataSyncService.status === "syncing" ) {
|
|
67
67
|
return ( localizeWithPath(
|
|
@@ -81,16 +81,16 @@ const syncNowCommand = {
|
|
|
81
81
|
return undefined;
|
|
82
82
|
}
|
|
83
83
|
};
|
|
84
|
-
const showSyncSettingsCommand = { id: 'workbench.userDataSync.actions.settings', title:
|
|
84
|
+
const showSyncSettingsCommand = { id: 'workbench.userDataSync.actions.settings', title: ( localize2WithPath(
|
|
85
85
|
'vs/workbench/contrib/userDataSync/browser/userDataSync',
|
|
86
86
|
'sync settings',
|
|
87
|
-
|
|
88
|
-
)),
|
|
89
|
-
const showSyncedDataCommand = { id: 'workbench.userDataSync.actions.showSyncedData', title:
|
|
87
|
+
'Show Settings'
|
|
88
|
+
)), };
|
|
89
|
+
const showSyncedDataCommand = { id: 'workbench.userDataSync.actions.showSyncedData', title: ( localize2WithPath(
|
|
90
90
|
'vs/workbench/contrib/userDataSync/browser/userDataSync',
|
|
91
91
|
'show synced data',
|
|
92
|
-
|
|
93
|
-
)),
|
|
92
|
+
'Show Synced Data'
|
|
93
|
+
)), };
|
|
94
94
|
const CONTEXT_TURNING_ON_STATE = ( new RawContextKey('userDataSyncTurningOn', false));
|
|
95
95
|
let UserDataSyncWorkbenchContribution = class UserDataSyncWorkbenchContribution extends Disposable {
|
|
96
96
|
constructor(userDataSyncEnablementService, userDataSyncService, userDataSyncWorkbenchService, contextKeyService, activityService, notificationService, editorService, userDataProfilesService, userDataProfileService, dialogService, quickInputService, instantiationService, outputService, userDataAutoSyncService, textModelResolverService, preferencesService, telemetryService, productService, openerService, authenticationService, userDataSyncStoreManagementService, hostService, commandService, workbenchIssueService) {
|
|
@@ -919,11 +919,11 @@ let UserDataSyncWorkbenchContribution = class UserDataSyncWorkbenchContribution
|
|
|
919
919
|
constructor() {
|
|
920
920
|
super({
|
|
921
921
|
id: 'workbench.userDataSync.actions.turnOn',
|
|
922
|
-
title:
|
|
922
|
+
title: ( localize2WithPath(
|
|
923
923
|
'vs/workbench/contrib/userDataSync/browser/userDataSync',
|
|
924
924
|
'global activity turn on sync',
|
|
925
|
-
|
|
926
|
-
)),
|
|
925
|
+
'Backup and Sync Settings...'
|
|
926
|
+
)),
|
|
927
927
|
category: SYNC_TITLE,
|
|
928
928
|
f1: true,
|
|
929
929
|
precondition: when,
|
|
@@ -1054,6 +1054,7 @@ let UserDataSyncWorkbenchContribution = class UserDataSyncWorkbenchContribution
|
|
|
1054
1054
|
)), original: `Show Conflicts (${this.getConflictsCount()})` };
|
|
1055
1055
|
}
|
|
1056
1056
|
registerShowConflictsAction() {
|
|
1057
|
+
this.conflictsActionDisposable.value = undefined;
|
|
1057
1058
|
const that = this;
|
|
1058
1059
|
this.conflictsActionDisposable.value = registerAction2(class TurningOnSyncAction extends Action2 {
|
|
1059
1060
|
constructor() {
|
|
@@ -5,7 +5,7 @@ import { isWeb } from 'vscode/vscode/vs/base/common/platform';
|
|
|
5
5
|
import { isEqual } from 'vscode/vscode/vs/base/common/resources';
|
|
6
6
|
import { IUserDataProfilesService } from 'vscode/vscode/vs/platform/userDataProfile/common/userDataProfile';
|
|
7
7
|
import { IUserDataAutoSyncService } from 'vscode/vscode/vs/platform/userDataSync/common/userDataSync';
|
|
8
|
-
import { IViewsService } from 'vscode/vscode/vs/workbench/common/
|
|
8
|
+
import { IViewsService } from 'vscode/vscode/vs/workbench/services/views/common/viewsService';
|
|
9
9
|
import { VIEWLET_ID } from 'vscode/vscode/vs/workbench/contrib/extensions/common/extensions';
|
|
10
10
|
import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService';
|
|
11
11
|
import { IHostService } from 'vscode/vscode/vs/workbench/services/host/browser/host';
|
|
@@ -235,7 +235,7 @@ let UserDataSyncDataViews = class UserDataSyncDataViews extends Disposable {
|
|
|
235
235
|
registerAction2(class extends Action2 {
|
|
236
236
|
constructor() {
|
|
237
237
|
super({
|
|
238
|
-
id: `workbench.actions.sync.resolveResource`,
|
|
238
|
+
id: `workbench.actions.sync.${viewId}.resolveResource`,
|
|
239
239
|
title: ( localizeWithPath(
|
|
240
240
|
'vs/workbench/contrib/userDataSync/browser/userDataSyncViews',
|
|
241
241
|
'workbench.actions.sync.resolveResourceRef',
|
|
@@ -256,7 +256,7 @@ let UserDataSyncDataViews = class UserDataSyncDataViews extends Disposable {
|
|
|
256
256
|
registerAction2(class extends Action2 {
|
|
257
257
|
constructor() {
|
|
258
258
|
super({
|
|
259
|
-
id: `workbench.actions.sync.compareWithLocal`,
|
|
259
|
+
id: `workbench.actions.sync.${viewId}.compareWithLocal`,
|
|
260
260
|
title: ( localizeWithPath(
|
|
261
261
|
'vs/workbench/contrib/userDataSync/browser/userDataSyncViews',
|
|
262
262
|
'workbench.actions.sync.compareWithLocal',
|
|
@@ -295,7 +295,7 @@ let UserDataSyncDataViews = class UserDataSyncDataViews extends Disposable {
|
|
|
295
295
|
registerAction2(class extends Action2 {
|
|
296
296
|
constructor() {
|
|
297
297
|
super({
|
|
298
|
-
id: `workbench.actions.sync.replaceCurrent`,
|
|
298
|
+
id: `workbench.actions.sync.${viewId}.replaceCurrent`,
|
|
299
299
|
title: ( localizeWithPath(
|
|
300
300
|
'vs/workbench/contrib/userDataSync/browser/userDataSyncViews',
|
|
301
301
|
'workbench.actions.sync.replaceCurrent',
|
package/vscode/src/vs/workbench/{browser → services/userDataProfile/browser}/iconSelectBox.js
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { __decorate, __param } from '
|
|
2
|
-
import { IconSelectBox } from '
|
|
1
|
+
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
+
import { IconSelectBox } from '../../../../base/browser/ui/icons/iconSelectBox.js';
|
|
3
3
|
import { trackFocus } from 'vscode/vscode/vs/base/browser/dom';
|
|
4
4
|
import { RawContextKey, ContextKeyExpr, IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
5
5
|
import { KeybindingsRegistry } from 'vscode/vscode/vs/platform/keybinding/common/keybindingsRegistry';
|
|
@@ -12,7 +12,8 @@ import { IUriIdentityService } from 'vscode/vscode/vs/platform/uriIdentity/commo
|
|
|
12
12
|
import { ITextFileService } from 'vscode/vscode/vs/workbench/services/textfile/common/textfiles';
|
|
13
13
|
import { IFileService } from 'vscode/vscode/vs/platform/files/common/files';
|
|
14
14
|
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
15
|
-
import { Extensions, TreeItemCollapsibleState,
|
|
15
|
+
import { Extensions, TreeItemCollapsibleState, IViewDescriptorService } from 'vscode/vscode/vs/workbench/common/views';
|
|
16
|
+
import { IViewsService } from 'vscode/vscode/vs/workbench/services/views/common/viewsService';
|
|
16
17
|
import { isUserDataProfile, toUserDataProfile, IUserDataProfilesService } from 'vscode/vscode/vs/platform/userDataProfile/common/userDataProfile';
|
|
17
18
|
import { ContextKeyExpr, IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
18
19
|
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
@@ -64,9 +65,9 @@ import { renderMarkdown } from 'vscode/vscode/vs/base/browser/markdownRenderer';
|
|
|
64
65
|
import { showWindowLogActionId } from 'vscode/vscode/vs/workbench/services/log/common/logConstants';
|
|
65
66
|
import { SelectBox } from 'vscode/vscode/vs/base/browser/ui/selectBox/selectBox';
|
|
66
67
|
import { ThemeIcon } from 'vscode/vscode/vs/base/common/themables';
|
|
67
|
-
import { IHoverService } from 'vscode/vscode/vs/
|
|
68
|
+
import { IHoverService } from 'vscode/vscode/vs/platform/hover/browser/hover';
|
|
68
69
|
import { DEFAULT_ICON, ICONS } from 'vscode/vscode/vs/workbench/services/userDataProfile/common/userDataProfileIcons';
|
|
69
|
-
import { WorkbenchIconSelectBox } from '
|
|
70
|
+
import { WorkbenchIconSelectBox } from './iconSelectBox.js';
|
|
70
71
|
import { StandardKeyboardEvent } from 'vscode/vscode/vs/base/browser/keyboardEvent';
|
|
71
72
|
import { IDialogService, IFileDialogService } from 'vscode/vscode/vs/platform/dialogs/common/dialogs';
|
|
72
73
|
|
package/vscode/src/vs/workbench/services/userDataSync/browser/userDataSyncWorkbenchService.js
CHANGED
|
@@ -18,7 +18,8 @@ import '../../../../../../../override/vs/platform/dialogs/common/dialogs.js';
|
|
|
18
18
|
import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
19
19
|
import { IProgressService } from 'vscode/vscode/vs/platform/progress/common/progress';
|
|
20
20
|
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
21
|
-
import {
|
|
21
|
+
import { IViewDescriptorService } from 'vscode/vscode/vs/workbench/common/views';
|
|
22
|
+
import { IViewsService } from 'vscode/vscode/vs/workbench/services/views/common/viewsService';
|
|
22
23
|
import { ILifecycleService } from 'vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle';
|
|
23
24
|
import { isWeb } from 'vscode/vscode/vs/base/common/platform';
|
|
24
25
|
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
@@ -695,7 +696,7 @@ let UserDataSyncWorkbenchService = class UserDataSyncWorkbenchService extends Di
|
|
|
695
696
|
await this.update('auth failure');
|
|
696
697
|
}
|
|
697
698
|
onDidChangeSessions(e) {
|
|
698
|
-
if (this.currentSessionId && e.removed
|
|
699
|
+
if (this.currentSessionId && e.removed?.find(session => session.id === this.currentSessionId)) {
|
|
699
700
|
this.currentSessionId = undefined;
|
|
700
701
|
}
|
|
701
702
|
this.update('change in sessions');
|