@codingame/monaco-vscode-relauncher-service-override 5.3.0 → 6.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": "6.0.0",
|
|
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@6.0.0"
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -2,14 +2,18 @@ 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';
|
|
5
6
|
import { IHostService } from 'vscode/vscode/vs/workbench/services/host/browser/host.service';
|
|
7
|
+
import { ConfigurationTarget } from 'vscode/vscode/vs/platform/configuration/common/configuration';
|
|
6
8
|
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
|
|
7
9
|
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
10
|
+
import { WorkbenchState } from 'vscode/vscode/vs/platform/workspace/common/workspace';
|
|
8
11
|
import { IWorkspaceContextService } from 'vscode/vscode/vs/platform/workspace/common/workspace.service';
|
|
9
12
|
import { IExtensionService } from 'vscode/vscode/vs/workbench/services/extensions/common/extensions.service';
|
|
10
13
|
import { RunOnceScheduler } from 'vscode/vscode/vs/base/common/async';
|
|
11
14
|
import { isEqual } from 'vscode/vscode/vs/base/common/resources';
|
|
12
15
|
import { isNative, isMacintosh, isLinux } from 'vscode/vscode/vs/base/common/platform';
|
|
16
|
+
import { LifecyclePhase } from 'vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle';
|
|
13
17
|
import { IDialogService } from 'vscode/vscode/vs/platform/dialogs/common/dialogs.service';
|
|
14
18
|
import { IWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/common/environmentService.service';
|
|
15
19
|
import { IProductService } from 'vscode/vscode/vs/platform/product/common/productService.service';
|
|
@@ -19,7 +23,7 @@ const _moduleId = "vs/workbench/contrib/relauncher/browser/relauncher.contributi
|
|
|
19
23
|
let SettingsChangeRelauncher = class SettingsChangeRelauncher extends Disposable {
|
|
20
24
|
static { SettingsChangeRelauncher_1 = this; }
|
|
21
25
|
static { this.SETTINGS = [
|
|
22
|
-
|
|
26
|
+
TitleBarSetting.TITLE_BAR_STYLE,
|
|
23
27
|
'window.nativeTabs',
|
|
24
28
|
'window.nativeFullScreen',
|
|
25
29
|
'window.clickThroughInactive',
|
|
@@ -58,7 +62,7 @@ let SettingsChangeRelauncher = class SettingsChangeRelauncher extends Disposable
|
|
|
58
62
|
}
|
|
59
63
|
const config = this.configurationService.getValue();
|
|
60
64
|
if (isNative) {
|
|
61
|
-
processChanged((
|
|
65
|
+
processChanged((config.window.titleBarStyle === TitlebarStyle.NATIVE || config.window.titleBarStyle === TitlebarStyle.CUSTOM) && this.titleBarStyle.handleChange(config.window?.titleBarStyle));
|
|
62
66
|
processChanged(isMacintosh && this.nativeTabs.handleChange(config.window?.nativeTabs));
|
|
63
67
|
processChanged(isMacintosh && this.nativeFullScreen.handleChange(config.window?.nativeFullScreen));
|
|
64
68
|
processChanged(isMacintosh && this.clickThroughInactive.handleChange(config.window?.clickThroughInactive));
|
|
@@ -74,7 +78,7 @@ let SettingsChangeRelauncher = class SettingsChangeRelauncher extends Disposable
|
|
|
74
78
|
}
|
|
75
79
|
processChanged(this.experimentsEnabled.handleChange(config.workbench?.enableExperiments));
|
|
76
80
|
processChanged(this.productService.quality !== 'stable' && this.enablePPEExtensionsGallery.handleChange(config._extensionsGallery?.enablePPE));
|
|
77
|
-
if (changed && e && e.source !==
|
|
81
|
+
if (changed && e && e.source !== ConfigurationTarget.DEFAULT) {
|
|
78
82
|
this.doConfirm(isNative ?
|
|
79
83
|
( localizeWithPath(
|
|
80
84
|
_moduleId,
|
|
@@ -168,7 +172,7 @@ let WorkspaceChangeExtHostRelauncher = class WorkspaceChangeExtHostRelauncher ex
|
|
|
168
172
|
}));
|
|
169
173
|
}
|
|
170
174
|
handleWorkbenchState() {
|
|
171
|
-
if (this.contextService.getWorkbenchState() ===
|
|
175
|
+
if (this.contextService.getWorkbenchState() === WorkbenchState.WORKSPACE) {
|
|
172
176
|
const workspace = this.contextService.getWorkspace();
|
|
173
177
|
this.firstFolderResource = workspace.folders.length > 0 ? workspace.folders[0].uri : undefined;
|
|
174
178
|
if (!this.onDidChangeWorkspaceFoldersUnbind) {
|
|
@@ -196,7 +200,7 @@ WorkspaceChangeExtHostRelauncher = ( (__decorate([
|
|
|
196
200
|
( (__param(3, IWorkbenchEnvironmentService)))
|
|
197
201
|
], WorkspaceChangeExtHostRelauncher)));
|
|
198
202
|
const workbenchRegistry = ( (Registry.as(Extensions.Workbench)));
|
|
199
|
-
workbenchRegistry.registerWorkbenchContribution(SettingsChangeRelauncher,
|
|
200
|
-
workbenchRegistry.registerWorkbenchContribution(WorkspaceChangeExtHostRelauncher,
|
|
203
|
+
workbenchRegistry.registerWorkbenchContribution(SettingsChangeRelauncher, LifecyclePhase.Restored);
|
|
204
|
+
workbenchRegistry.registerWorkbenchContribution(WorkspaceChangeExtHostRelauncher, LifecyclePhase.Restored);
|
|
201
205
|
|
|
202
206
|
export { SettingsChangeRelauncher, WorkspaceChangeExtHostRelauncher };
|