@codingame/monaco-vscode-relauncher-service-override 23.3.0 → 24.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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-relauncher-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "24.1.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": "24.1.0"
|
|
19
19
|
},
|
|
20
20
|
"main": "index.js",
|
|
21
21
|
"module": "index.js",
|
|
@@ -23,7 +23,6 @@ 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;
|
|
27
26
|
private readonly controlsStyle;
|
|
28
27
|
private readonly updateMode;
|
|
29
28
|
private accessibilitySupport;
|
|
@@ -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,
|
|
5
|
+
import { isNative, isMacintosh, 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';
|
|
@@ -32,7 +32,6 @@ let SettingsChangeRelauncher = class SettingsChangeRelauncher extends Disposable
|
|
|
32
32
|
'window.nativeFullScreen',
|
|
33
33
|
'window.clickThroughInactive',
|
|
34
34
|
'window.controlsStyle',
|
|
35
|
-
'window.border',
|
|
36
35
|
'update.mode',
|
|
37
36
|
'editor.accessibilitySupport',
|
|
38
37
|
'security.workspace.trust.enabled',
|
|
@@ -56,7 +55,6 @@ let SettingsChangeRelauncher = class SettingsChangeRelauncher extends Disposable
|
|
|
56
55
|
this.nativeTabs = ( new ChangeObserver('boolean'));
|
|
57
56
|
this.nativeFullScreen = ( new ChangeObserver('boolean'));
|
|
58
57
|
this.clickThroughInactive = ( new ChangeObserver('boolean'));
|
|
59
|
-
this.border = ( new ChangeObserver('string'));
|
|
60
58
|
this.controlsStyle = ( new ChangeObserver('string'));
|
|
61
59
|
this.updateMode = ( new ChangeObserver('string'));
|
|
62
60
|
this.workspaceTrustEnabled = ( new ChangeObserver('boolean'));
|
|
@@ -94,7 +92,6 @@ let SettingsChangeRelauncher = class SettingsChangeRelauncher extends Disposable
|
|
|
94
92
|
processChanged(isMacintosh && this.nativeTabs.handleChange(config.window?.nativeTabs));
|
|
95
93
|
processChanged(isMacintosh && this.nativeFullScreen.handleChange(config.window?.nativeFullScreen));
|
|
96
94
|
processChanged(isMacintosh && this.clickThroughInactive.handleChange(config.window?.clickThroughInactive));
|
|
97
|
-
processChanged(isWindows && this.border.handleChange(config.window?.border));
|
|
98
95
|
processChanged(!isMacintosh && this.controlsStyle.handleChange(config.window?.controlsStyle));
|
|
99
96
|
processChanged(this.updateMode.handleChange(config.update?.mode));
|
|
100
97
|
if (isLinux && typeof config.editor?.accessibilitySupport === 'string' && config.editor.accessibilitySupport !== this.accessibilitySupport) {
|
|
@@ -113,20 +110,20 @@ let SettingsChangeRelauncher = class SettingsChangeRelauncher extends Disposable
|
|
|
113
110
|
processChanged(this.extensionUnificationEnabled.handleChange(config.chat?.extensionUnification?.enabled) && config.chat?.extensionUnification?.enabled === true);
|
|
114
111
|
if (askToRelaunch && changed && this.hostService.hasFocus) {
|
|
115
112
|
this.doConfirm(isNative ?
|
|
116
|
-
( localize(
|
|
117
|
-
( localize(
|
|
113
|
+
( localize(10192, "A setting has changed that requires a restart to take effect.")) :
|
|
114
|
+
( localize(10193, "A setting has changed that requires a reload to take effect.")), isNative ?
|
|
118
115
|
( localize(
|
|
119
|
-
|
|
116
|
+
10194,
|
|
120
117
|
"Press the restart button to restart {0} and enable the setting.",
|
|
121
118
|
this.productService.nameLong
|
|
122
119
|
)) :
|
|
123
120
|
( localize(
|
|
124
|
-
|
|
121
|
+
10195,
|
|
125
122
|
"Press the reload button to reload {0} and enable the setting.",
|
|
126
123
|
this.productService.nameLong
|
|
127
124
|
)), isNative ?
|
|
128
|
-
( localize(
|
|
129
|
-
( localize(
|
|
125
|
+
( localize(10196, "&&Restart")) :
|
|
126
|
+
( localize(10197, "&&Reload")), () => this.hostService.restart());
|
|
130
127
|
}
|
|
131
128
|
}
|
|
132
129
|
async doConfirm(message, detail, primaryButton, confirmedFn) {
|
|
@@ -173,7 +170,7 @@ let WorkspaceChangeExtHostRelauncher = class WorkspaceChangeExtHostRelauncher ex
|
|
|
173
170
|
hostService.reload();
|
|
174
171
|
}
|
|
175
172
|
else if (isNative) {
|
|
176
|
-
const stopped = await extensionService.stopExtensionHosts(( localize(
|
|
173
|
+
const stopped = await extensionService.stopExtensionHosts(( localize(10198, "Changing workspace folders")));
|
|
177
174
|
if (stopped) {
|
|
178
175
|
extensionService.startExtensionHosts();
|
|
179
176
|
}
|