@codingame/monaco-vscode-relauncher-service-override 15.0.3 → 16.0.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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-relauncher-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "16.0.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - relauncher service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-api": "
|
|
18
|
+
"@codingame/monaco-vscode-api": "16.0.1"
|
|
19
19
|
},
|
|
20
20
|
"main": "index.js",
|
|
21
21
|
"module": "index.js",
|
|
@@ -24,6 +24,9 @@
|
|
|
24
24
|
".": {
|
|
25
25
|
"default": "./index.js"
|
|
26
26
|
},
|
|
27
|
+
"./vscode/*.css": {
|
|
28
|
+
"default": "./vscode/src/*.css"
|
|
29
|
+
},
|
|
27
30
|
"./vscode/*": {
|
|
28
31
|
"types": "./vscode/src/*.d.ts",
|
|
29
32
|
"default": "./vscode/src/*.js"
|
|
@@ -22,6 +22,7 @@ export declare class SettingsChangeRelauncher extends Disposable implements IWor
|
|
|
22
22
|
private readonly nativeTabs;
|
|
23
23
|
private readonly nativeFullScreen;
|
|
24
24
|
private readonly clickThroughInactive;
|
|
25
|
+
private readonly controlsStyle;
|
|
25
26
|
private readonly updateMode;
|
|
26
27
|
private accessibilitySupport;
|
|
27
28
|
private readonly workspaceTrustEnabled;
|
|
@@ -29,6 +30,9 @@ export declare class SettingsChangeRelauncher extends Disposable implements IWor
|
|
|
29
30
|
private readonly enablePPEExtensionsGallery;
|
|
30
31
|
private readonly restrictUNCAccess;
|
|
31
32
|
private readonly accessibilityVerbosityDebug;
|
|
33
|
+
private readonly unifiedChatView;
|
|
34
|
+
private readonly useFileStorage;
|
|
35
|
+
private readonly telemetryFeedbackEnabled;
|
|
32
36
|
constructor(hostService: IHostService, configurationService: IConfigurationService, userDataSyncService: IUserDataSyncService, userDataSyncEnablementService: IUserDataSyncEnablementService, userDataSyncWorkbenchService: IUserDataSyncWorkbenchService, productService: IProductService, dialogService: IDialogService);
|
|
33
37
|
private onConfigurationChange;
|
|
34
38
|
private isTurningOnSyncInProgress;
|
|
@@ -21,6 +21,7 @@ import { IProductService } from '@codingame/monaco-vscode-api/vscode/vs/platform
|
|
|
21
21
|
import { SyncStatus } from '@codingame/monaco-vscode-api/vscode/vs/platform/userDataSync/common/userDataSync';
|
|
22
22
|
import { IUserDataSyncService, IUserDataSyncEnablementService } from '@codingame/monaco-vscode-api/vscode/vs/platform/userDataSync/common/userDataSync.service';
|
|
23
23
|
import { IUserDataSyncWorkbenchService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/userDataSync/common/userDataSync.service';
|
|
24
|
+
import { ChatConfiguration } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants';
|
|
24
25
|
|
|
25
26
|
var SettingsChangeRelauncher_1;
|
|
26
27
|
let SettingsChangeRelauncher = class SettingsChangeRelauncher extends Disposable {
|
|
@@ -30,13 +31,17 @@ let SettingsChangeRelauncher = class SettingsChangeRelauncher extends Disposable
|
|
|
30
31
|
'window.nativeTabs',
|
|
31
32
|
'window.nativeFullScreen',
|
|
32
33
|
'window.clickThroughInactive',
|
|
34
|
+
'window.controlsStyle',
|
|
33
35
|
'update.mode',
|
|
34
36
|
'editor.accessibilitySupport',
|
|
35
37
|
'security.workspace.trust.enabled',
|
|
36
38
|
'workbench.enableExperiments',
|
|
37
39
|
'_extensionsGallery.enablePPE',
|
|
38
40
|
'security.restrictUNCAccess',
|
|
39
|
-
'accessibility.verbosity.debug'
|
|
41
|
+
'accessibility.verbosity.debug',
|
|
42
|
+
ChatConfiguration.UnifiedChatView,
|
|
43
|
+
ChatConfiguration.UseFileStorage,
|
|
44
|
+
'telemetry.feedback.enabled'
|
|
40
45
|
]; }
|
|
41
46
|
constructor(hostService, configurationService, userDataSyncService, userDataSyncEnablementService, userDataSyncWorkbenchService, productService, dialogService) {
|
|
42
47
|
super();
|
|
@@ -50,12 +55,16 @@ let SettingsChangeRelauncher = class SettingsChangeRelauncher extends Disposable
|
|
|
50
55
|
this.nativeTabs = ( new ChangeObserver('boolean'));
|
|
51
56
|
this.nativeFullScreen = ( new ChangeObserver('boolean'));
|
|
52
57
|
this.clickThroughInactive = ( new ChangeObserver('boolean'));
|
|
58
|
+
this.controlsStyle = ( new ChangeObserver('string'));
|
|
53
59
|
this.updateMode = ( new ChangeObserver('string'));
|
|
54
60
|
this.workspaceTrustEnabled = ( new ChangeObserver('boolean'));
|
|
55
61
|
this.experimentsEnabled = ( new ChangeObserver('boolean'));
|
|
56
62
|
this.enablePPEExtensionsGallery = ( new ChangeObserver('boolean'));
|
|
57
63
|
this.restrictUNCAccess = ( new ChangeObserver('boolean'));
|
|
58
64
|
this.accessibilityVerbosityDebug = ( new ChangeObserver('boolean'));
|
|
65
|
+
this.unifiedChatView = ( new ChangeObserver('boolean'));
|
|
66
|
+
this.useFileStorage = ( new ChangeObserver('boolean'));
|
|
67
|
+
this.telemetryFeedbackEnabled = ( new ChangeObserver('boolean'));
|
|
59
68
|
this.update(false);
|
|
60
69
|
this._register(this.configurationService.onDidChangeConfiguration(e => this.onConfigurationChange(e)));
|
|
61
70
|
this._register(userDataSyncWorkbenchService.onDidTurnOnSync(e => this.update(true)));
|
|
@@ -83,6 +92,7 @@ let SettingsChangeRelauncher = class SettingsChangeRelauncher extends Disposable
|
|
|
83
92
|
processChanged(isMacintosh && this.nativeTabs.handleChange(config.window?.nativeTabs));
|
|
84
93
|
processChanged(isMacintosh && this.nativeFullScreen.handleChange(config.window?.nativeFullScreen));
|
|
85
94
|
processChanged(isMacintosh && this.clickThroughInactive.handleChange(config.window?.clickThroughInactive));
|
|
95
|
+
processChanged(!isMacintosh && this.controlsStyle.handleChange(config.window?.controlsStyle));
|
|
86
96
|
processChanged(this.updateMode.handleChange(config.update?.mode));
|
|
87
97
|
if (isLinux && typeof config.editor?.accessibilitySupport === 'string' && config.editor.accessibilitySupport !== this.accessibilitySupport) {
|
|
88
98
|
this.accessibilitySupport = config.editor.accessibilitySupport;
|
|
@@ -93,25 +103,28 @@ let SettingsChangeRelauncher = class SettingsChangeRelauncher extends Disposable
|
|
|
93
103
|
processChanged(this.workspaceTrustEnabled.handleChange(config?.security?.workspace?.trust?.enabled));
|
|
94
104
|
processChanged(this.restrictUNCAccess.handleChange(config?.security?.restrictUNCAccess));
|
|
95
105
|
processChanged(this.accessibilityVerbosityDebug.handleChange(config?.accessibility?.verbosity?.debug));
|
|
106
|
+
processChanged(this.unifiedChatView.handleChange(config.chat?.unifiedChatView));
|
|
107
|
+
processChanged(this.useFileStorage.handleChange(config.chat?.useFileStorage));
|
|
96
108
|
}
|
|
97
109
|
processChanged(this.experimentsEnabled.handleChange(config.workbench?.enableExperiments));
|
|
98
110
|
processChanged(this.productService.quality !== 'stable' && this.enablePPEExtensionsGallery.handleChange(config._extensionsGallery?.enablePPE));
|
|
111
|
+
processChanged(this.telemetryFeedbackEnabled.handleChange(config.telemetry?.feedback?.enabled));
|
|
99
112
|
if (askToRelaunch && changed && this.hostService.hasFocus) {
|
|
100
113
|
this.doConfirm(isNative ?
|
|
101
|
-
( localize(
|
|
102
|
-
( localize(
|
|
114
|
+
( localize(8780, "A setting has changed that requires a restart to take effect.")) :
|
|
115
|
+
( localize(8781, "A setting has changed that requires a reload to take effect.")), isNative ?
|
|
103
116
|
( localize(
|
|
104
|
-
|
|
117
|
+
8782,
|
|
105
118
|
"Press the restart button to restart {0} and enable the setting.",
|
|
106
119
|
this.productService.nameLong
|
|
107
120
|
)) :
|
|
108
121
|
( localize(
|
|
109
|
-
|
|
122
|
+
8783,
|
|
110
123
|
"Press the reload button to reload {0} and enable the setting.",
|
|
111
124
|
this.productService.nameLong
|
|
112
125
|
)), isNative ?
|
|
113
|
-
( localize(
|
|
114
|
-
( localize(
|
|
126
|
+
( localize(8784, "&&Restart")) :
|
|
127
|
+
( localize(8785, "&&Reload")), () => this.hostService.restart());
|
|
115
128
|
}
|
|
116
129
|
}
|
|
117
130
|
async doConfirm(message, detail, primaryButton, confirmedFn) {
|
|
@@ -158,7 +171,7 @@ let WorkspaceChangeExtHostRelauncher = class WorkspaceChangeExtHostRelauncher ex
|
|
|
158
171
|
hostService.reload();
|
|
159
172
|
}
|
|
160
173
|
else if (isNative) {
|
|
161
|
-
const stopped = await extensionService.stopExtensionHosts(( localize(
|
|
174
|
+
const stopped = await extensionService.stopExtensionHosts(( localize(8786, "Changing workspace folders")));
|
|
162
175
|
if (stopped) {
|
|
163
176
|
extensionService.startExtensionHosts();
|
|
164
177
|
}
|