@codingame/monaco-vscode-relauncher-service-override 18.4.0 → 19.0.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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-relauncher-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "19.0.0",
|
|
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": "19.0.0"
|
|
19
19
|
},
|
|
20
20
|
"main": "index.js",
|
|
21
21
|
"module": "index.js",
|
|
@@ -23,6 +23,7 @@ export declare class SettingsChangeRelauncher extends Disposable implements IWor
|
|
|
23
23
|
private readonly nativeTabs;
|
|
24
24
|
private readonly nativeFullScreen;
|
|
25
25
|
private readonly clickThroughInactive;
|
|
26
|
+
private readonly border;
|
|
26
27
|
private readonly controlsStyle;
|
|
27
28
|
private readonly updateMode;
|
|
28
29
|
private accessibilitySupport;
|
|
@@ -33,7 +34,6 @@ export declare class SettingsChangeRelauncher extends Disposable implements IWor
|
|
|
33
34
|
private readonly accessibilityVerbosityDebug;
|
|
34
35
|
private readonly useFileStorage;
|
|
35
36
|
private readonly telemetryFeedbackEnabled;
|
|
36
|
-
private readonly showSuggestions;
|
|
37
37
|
constructor(hostService: IHostService, configurationService: IConfigurationService, userDataSyncService: IUserDataSyncService, userDataSyncEnablementService: IUserDataSyncEnablementService, userDataSyncWorkbenchService: IUserDataSyncWorkbenchService, productService: IProductService, dialogService: IDialogService);
|
|
38
38
|
private onConfigurationChange;
|
|
39
39
|
private isTurningOnSyncInProgress;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
3
|
import { RunOnceScheduler } from '@codingame/monaco-vscode-api/vscode/vs/base/common/async';
|
|
4
4
|
import { Disposable, toDisposable, dispose } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
5
|
-
import { isNative, isMacintosh, isLinux } from '@codingame/monaco-vscode-api/vscode/vs/base/common/platform';
|
|
5
|
+
import { isNative, isMacintosh, isWindows, isLinux } from '@codingame/monaco-vscode-api/vscode/vs/base/common/platform';
|
|
6
6
|
import { isEqual } from '@codingame/monaco-vscode-api/vscode/vs/base/common/resources';
|
|
7
7
|
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
8
8
|
import { ConfigurationTarget } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration';
|
|
@@ -33,11 +33,11 @@ let SettingsChangeRelauncher = class SettingsChangeRelauncher extends Disposable
|
|
|
33
33
|
'window.nativeFullScreen',
|
|
34
34
|
'window.clickThroughInactive',
|
|
35
35
|
'window.controlsStyle',
|
|
36
|
+
'window.border',
|
|
36
37
|
'update.mode',
|
|
37
38
|
'editor.accessibilitySupport',
|
|
38
39
|
'security.workspace.trust.enabled',
|
|
39
40
|
'workbench.enableExperiments',
|
|
40
|
-
'workbench.settings.showAISearchToggle',
|
|
41
41
|
'_extensionsGallery.enablePPE',
|
|
42
42
|
'security.restrictUNCAccess',
|
|
43
43
|
'accessibility.verbosity.debug',
|
|
@@ -57,6 +57,7 @@ let SettingsChangeRelauncher = class SettingsChangeRelauncher extends Disposable
|
|
|
57
57
|
this.nativeTabs = ( new ChangeObserver('boolean'));
|
|
58
58
|
this.nativeFullScreen = ( new ChangeObserver('boolean'));
|
|
59
59
|
this.clickThroughInactive = ( new ChangeObserver('boolean'));
|
|
60
|
+
this.border = ( new ChangeObserver('string'));
|
|
60
61
|
this.controlsStyle = ( new ChangeObserver('string'));
|
|
61
62
|
this.updateMode = ( new ChangeObserver('string'));
|
|
62
63
|
this.workspaceTrustEnabled = ( new ChangeObserver('boolean'));
|
|
@@ -66,7 +67,6 @@ let SettingsChangeRelauncher = class SettingsChangeRelauncher extends Disposable
|
|
|
66
67
|
this.accessibilityVerbosityDebug = ( new ChangeObserver('boolean'));
|
|
67
68
|
this.useFileStorage = ( new ChangeObserver('boolean'));
|
|
68
69
|
this.telemetryFeedbackEnabled = ( new ChangeObserver('boolean'));
|
|
69
|
-
this.showSuggestions = ( new ChangeObserver('boolean'));
|
|
70
70
|
this.update(false);
|
|
71
71
|
this._register(this.configurationService.onDidChangeConfiguration(e => this.onConfigurationChange(e)));
|
|
72
72
|
this._register(userDataSyncWorkbenchService.onDidTurnOnSync(e => this.update(true)));
|
|
@@ -95,6 +95,7 @@ let SettingsChangeRelauncher = class SettingsChangeRelauncher extends Disposable
|
|
|
95
95
|
processChanged(isMacintosh && this.nativeTabs.handleChange(config.window?.nativeTabs));
|
|
96
96
|
processChanged(isMacintosh && this.nativeFullScreen.handleChange(config.window?.nativeFullScreen));
|
|
97
97
|
processChanged(isMacintosh && this.clickThroughInactive.handleChange(config.window?.clickThroughInactive));
|
|
98
|
+
processChanged(isWindows && this.border.handleChange(config.window?.border));
|
|
98
99
|
processChanged(!isMacintosh && this.controlsStyle.handleChange(config.window?.controlsStyle));
|
|
99
100
|
processChanged(this.updateMode.handleChange(config.update?.mode));
|
|
100
101
|
if (isLinux && typeof config.editor?.accessibilitySupport === 'string' && config.editor.accessibilitySupport !== this.accessibilitySupport) {
|
|
@@ -111,23 +112,22 @@ let SettingsChangeRelauncher = class SettingsChangeRelauncher extends Disposable
|
|
|
111
112
|
processChanged(this.experimentsEnabled.handleChange(config.workbench?.enableExperiments));
|
|
112
113
|
processChanged(this.productService.quality !== 'stable' && this.enablePPEExtensionsGallery.handleChange(config._extensionsGallery?.enablePPE));
|
|
113
114
|
processChanged(this.telemetryFeedbackEnabled.handleChange(config.telemetry?.feedback?.enabled));
|
|
114
|
-
processChanged(this.showSuggestions.handleChange(config.workbench?.settings?.showSuggestions));
|
|
115
115
|
if (askToRelaunch && changed && this.hostService.hasFocus) {
|
|
116
116
|
this.doConfirm(isNative ?
|
|
117
|
-
( localize(
|
|
118
|
-
( localize(
|
|
117
|
+
( localize(9366, "A setting has changed that requires a restart to take effect.")) :
|
|
118
|
+
( localize(9367, "A setting has changed that requires a reload to take effect.")), isNative ?
|
|
119
119
|
( localize(
|
|
120
|
-
|
|
120
|
+
9368,
|
|
121
121
|
"Press the restart button to restart {0} and enable the setting.",
|
|
122
122
|
this.productService.nameLong
|
|
123
123
|
)) :
|
|
124
124
|
( localize(
|
|
125
|
-
|
|
125
|
+
9369,
|
|
126
126
|
"Press the reload button to reload {0} and enable the setting.",
|
|
127
127
|
this.productService.nameLong
|
|
128
128
|
)), isNative ?
|
|
129
|
-
( localize(
|
|
130
|
-
( localize(
|
|
129
|
+
( localize(9370, "&&Restart")) :
|
|
130
|
+
( localize(9371, "&&Reload")), () => this.hostService.restart());
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
133
|
async doConfirm(message, detail, primaryButton, confirmedFn) {
|
|
@@ -174,7 +174,7 @@ let WorkspaceChangeExtHostRelauncher = class WorkspaceChangeExtHostRelauncher ex
|
|
|
174
174
|
hostService.reload();
|
|
175
175
|
}
|
|
176
176
|
else if (isNative) {
|
|
177
|
-
const stopped = await extensionService.stopExtensionHosts(( localize(
|
|
177
|
+
const stopped = await extensionService.stopExtensionHosts(( localize(9372, "Changing workspace folders")));
|
|
178
178
|
if (stopped) {
|
|
179
179
|
extensionService.startExtensionHosts();
|
|
180
180
|
}
|