@codingame/monaco-vscode-relauncher-service-override 9.0.3 → 10.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": "10.0.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@
|
|
29
|
+
"vscode": "npm:@codingame/monaco-vscode-api@10.0.1"
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -2,18 +2,14 @@ import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
|
|
|
2
2
|
import { Disposable, toDisposable, dispose } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
3
3
|
import { Extensions } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
4
4
|
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
5
|
-
import { TitleBarSetting, TitlebarStyle } from 'vscode/vscode/vs/platform/window/common/window';
|
|
6
5
|
import { IHostService } from 'vscode/vscode/vs/workbench/services/host/browser/host.service';
|
|
7
|
-
import { ConfigurationTarget } from 'vscode/vscode/vs/platform/configuration/common/configuration';
|
|
8
6
|
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
|
|
9
7
|
import { localize } from 'vscode/vscode/vs/nls';
|
|
10
|
-
import { WorkbenchState } from 'vscode/vscode/vs/platform/workspace/common/workspace';
|
|
11
8
|
import { IWorkspaceContextService } from 'vscode/vscode/vs/platform/workspace/common/workspace.service';
|
|
12
9
|
import { IExtensionService } from 'vscode/vscode/vs/workbench/services/extensions/common/extensions.service';
|
|
13
10
|
import { RunOnceScheduler } from 'vscode/vscode/vs/base/common/async';
|
|
14
11
|
import { isEqual } from 'vscode/vscode/vs/base/common/resources';
|
|
15
12
|
import { isNative, isMacintosh, isLinux } from 'vscode/vscode/vs/base/common/platform';
|
|
16
|
-
import { LifecyclePhase } from 'vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle';
|
|
17
13
|
import { IDialogService } from 'vscode/vscode/vs/platform/dialogs/common/dialogs.service';
|
|
18
14
|
import { IWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/common/environmentService.service';
|
|
19
15
|
import { IProductService } from 'vscode/vscode/vs/platform/product/common/productService.service';
|
|
@@ -22,7 +18,7 @@ var SettingsChangeRelauncher_1;
|
|
|
22
18
|
let SettingsChangeRelauncher = class SettingsChangeRelauncher extends Disposable {
|
|
23
19
|
static { SettingsChangeRelauncher_1 = this; }
|
|
24
20
|
static { this.SETTINGS = [
|
|
25
|
-
|
|
21
|
+
"window.titleBarStyle" ,
|
|
26
22
|
'window.nativeTabs',
|
|
27
23
|
'window.nativeFullScreen',
|
|
28
24
|
'window.clickThroughInactive',
|
|
@@ -65,7 +61,7 @@ let SettingsChangeRelauncher = class SettingsChangeRelauncher extends Disposable
|
|
|
65
61
|
}
|
|
66
62
|
const config = this.configurationService.getValue();
|
|
67
63
|
if (isNative) {
|
|
68
|
-
processChanged((config.window.titleBarStyle ===
|
|
64
|
+
processChanged(((config.window.titleBarStyle === "native" || config.window.titleBarStyle === "custom") ) && this.titleBarStyle.handleChange(config.window?.titleBarStyle));
|
|
69
65
|
processChanged(isMacintosh && this.nativeTabs.handleChange(config.window?.nativeTabs));
|
|
70
66
|
processChanged(isMacintosh && this.nativeFullScreen.handleChange(config.window?.nativeFullScreen));
|
|
71
67
|
processChanged(isMacintosh && this.clickThroughInactive.handleChange(config.window?.clickThroughInactive));
|
|
@@ -83,22 +79,22 @@ let SettingsChangeRelauncher = class SettingsChangeRelauncher extends Disposable
|
|
|
83
79
|
}
|
|
84
80
|
processChanged(this.experimentsEnabled.handleChange(config.workbench?.enableExperiments));
|
|
85
81
|
processChanged(this.productService.quality !== 'stable' && this.enablePPEExtensionsGallery.handleChange(config._extensionsGallery?.enablePPE));
|
|
86
|
-
if (changed && e && e.source !==
|
|
82
|
+
if (changed && e && e.source !== 7 ) {
|
|
87
83
|
this.doConfirm(isNative ?
|
|
88
|
-
( localize(
|
|
89
|
-
( localize(
|
|
84
|
+
( localize(2711, "A setting has changed that requires a restart to take effect.")) :
|
|
85
|
+
( localize(2712, "A setting has changed that requires a reload to take effect.")), isNative ?
|
|
90
86
|
( localize(
|
|
91
|
-
|
|
87
|
+
2713,
|
|
92
88
|
"Press the restart button to restart {0} and enable the setting.",
|
|
93
89
|
this.productService.nameLong
|
|
94
90
|
)) :
|
|
95
91
|
( localize(
|
|
96
|
-
|
|
92
|
+
2714,
|
|
97
93
|
"Press the reload button to reload {0} and enable the setting.",
|
|
98
94
|
this.productService.nameLong
|
|
99
95
|
)), isNative ?
|
|
100
|
-
( localize(
|
|
101
|
-
( localize(
|
|
96
|
+
( localize(2715, "&&Restart")) :
|
|
97
|
+
( localize(2716, "&&Reload")), () => this.hostService.restart());
|
|
102
98
|
}
|
|
103
99
|
}
|
|
104
100
|
async doConfirm(message, detail, primaryButton, confirmedFn) {
|
|
@@ -146,7 +142,7 @@ let WorkspaceChangeExtHostRelauncher = class WorkspaceChangeExtHostRelauncher ex
|
|
|
146
142
|
hostService.reload();
|
|
147
143
|
}
|
|
148
144
|
else if (isNative) {
|
|
149
|
-
const stopped = await extensionService.stopExtensionHosts(( localize(
|
|
145
|
+
const stopped = await extensionService.stopExtensionHosts(( localize(2717, "Restarting extension host due to a workspace folder change.")));
|
|
150
146
|
if (stopped) {
|
|
151
147
|
extensionService.startExtensionHosts();
|
|
152
148
|
}
|
|
@@ -163,7 +159,7 @@ let WorkspaceChangeExtHostRelauncher = class WorkspaceChangeExtHostRelauncher ex
|
|
|
163
159
|
}));
|
|
164
160
|
}
|
|
165
161
|
handleWorkbenchState() {
|
|
166
|
-
if (this.contextService.getWorkbenchState() ===
|
|
162
|
+
if (this.contextService.getWorkbenchState() === 3 ) {
|
|
167
163
|
const workspace = this.contextService.getWorkspace();
|
|
168
164
|
this.firstFolderResource = workspace.folders.length > 0 ? workspace.folders[0].uri : undefined;
|
|
169
165
|
if (!this.onDidChangeWorkspaceFoldersUnbind) {
|
|
@@ -191,7 +187,7 @@ WorkspaceChangeExtHostRelauncher = ( (__decorate([
|
|
|
191
187
|
( (__param(3, IWorkbenchEnvironmentService)))
|
|
192
188
|
], WorkspaceChangeExtHostRelauncher)));
|
|
193
189
|
const workbenchRegistry = ( (Registry.as(Extensions.Workbench)));
|
|
194
|
-
workbenchRegistry.registerWorkbenchContribution(SettingsChangeRelauncher,
|
|
195
|
-
workbenchRegistry.registerWorkbenchContribution(WorkspaceChangeExtHostRelauncher,
|
|
190
|
+
workbenchRegistry.registerWorkbenchContribution(SettingsChangeRelauncher, 3 );
|
|
191
|
+
workbenchRegistry.registerWorkbenchContribution(WorkspaceChangeExtHostRelauncher, 3 );
|
|
196
192
|
|
|
197
193
|
export { SettingsChangeRelauncher, WorkspaceChangeExtHostRelauncher };
|