@codingame/monaco-vscode-relauncher-service-override 17.2.0 → 18.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": "17.2.0",
3
+ "version": "18.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": "17.2.0"
18
+ "@codingame/monaco-vscode-api": "18.0.0"
19
19
  },
20
20
  "main": "index.js",
21
21
  "module": "index.js",
@@ -1,14 +1,14 @@
1
1
  import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
2
- import { IWorkbenchContribution } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions";
3
- import { IHostService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/host/browser/host.service";
4
2
  import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
5
- import { IWorkspaceContextService } from "@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace.service";
6
- import { IExtensionService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions.service";
7
3
  import { IDialogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/dialogs/common/dialogs.service";
8
- import { IWorkbenchEnvironmentService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/common/environmentService.service";
9
4
  import { IProductService } from "@codingame/monaco-vscode-api/vscode/vs/platform/product/common/productService.service";
10
5
  import { IUserDataSyncService } from "@codingame/monaco-vscode-api/vscode/vs/platform/userDataSync/common/userDataSync.service";
11
6
  import { IUserDataSyncEnablementService } from "@codingame/monaco-vscode-api/vscode/vs/platform/userDataSync/common/userDataSync.service";
7
+ import { IWorkspaceContextService } from "@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace.service";
8
+ import { IWorkbenchContribution } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions";
9
+ import { IWorkbenchEnvironmentService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/common/environmentService.service";
10
+ import { IExtensionService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions.service";
11
+ import { IHostService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/host/browser/host.service";
12
12
  import { IUserDataSyncWorkbenchService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/userDataSync/common/userDataSync.service";
13
13
  export declare class SettingsChangeRelauncher extends Disposable implements IWorkbenchContribution {
14
14
  private readonly hostService;
@@ -19,6 +19,7 @@ export declare class SettingsChangeRelauncher extends Disposable implements IWor
19
19
  private readonly dialogService;
20
20
  private static SETTINGS;
21
21
  private readonly titleBarStyle;
22
+ private readonly menuStyle;
22
23
  private readonly nativeTabs;
23
24
  private readonly nativeFullScreen;
24
25
  private readonly clickThroughInactive;
@@ -1,25 +1,25 @@
1
1
 
2
2
  import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
3
+ import { RunOnceScheduler } from '@codingame/monaco-vscode-api/vscode/vs/base/common/async';
3
4
  import { Disposable, toDisposable, dispose } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
4
- import { Extensions } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions';
5
- import { Registry } from '@codingame/monaco-vscode-api/vscode/vs/platform/registry/common/platform';
6
- import { TitleBarSetting, TitlebarStyle } from '@codingame/monaco-vscode-api/vscode/vs/platform/window/common/window';
7
- import { IHostService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/host/browser/host.service';
5
+ import { isNative, isMacintosh, isLinux } from '@codingame/monaco-vscode-api/vscode/vs/base/common/platform';
6
+ import { isEqual } from '@codingame/monaco-vscode-api/vscode/vs/base/common/resources';
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';
9
9
  import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
10
- import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
11
- import { WorkbenchState } from '@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace';
12
- import { IWorkspaceContextService } from '@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace.service';
13
- import { IExtensionService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions.service';
14
- import { RunOnceScheduler } from '@codingame/monaco-vscode-api/vscode/vs/base/common/async';
15
- import { isEqual } from '@codingame/monaco-vscode-api/vscode/vs/base/common/resources';
16
- import { isNative, isMacintosh, isLinux } from '@codingame/monaco-vscode-api/vscode/vs/base/common/platform';
17
- import { LifecyclePhase } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/lifecycle/common/lifecycle';
18
10
  import { IDialogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/dialogs/common/dialogs.service';
19
- import { IWorkbenchEnvironmentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/common/environmentService.service';
20
11
  import { IProductService } from '@codingame/monaco-vscode-api/vscode/vs/platform/product/common/productService.service';
12
+ import { Registry } from '@codingame/monaco-vscode-api/vscode/vs/platform/registry/common/platform';
21
13
  import { SyncStatus } from '@codingame/monaco-vscode-api/vscode/vs/platform/userDataSync/common/userDataSync';
22
14
  import { IUserDataSyncService, IUserDataSyncEnablementService } from '@codingame/monaco-vscode-api/vscode/vs/platform/userDataSync/common/userDataSync.service';
15
+ import { TitleBarSetting, MenuSettings, TitlebarStyle } from '@codingame/monaco-vscode-api/vscode/vs/platform/window/common/window';
16
+ import { WorkbenchState } from '@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace';
17
+ import { IWorkspaceContextService } from '@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace.service';
18
+ import { Extensions } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions';
19
+ import { IWorkbenchEnvironmentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/common/environmentService.service';
20
+ import { IExtensionService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions.service';
21
+ import { IHostService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/host/browser/host.service';
22
+ import { LifecyclePhase } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/lifecycle/common/lifecycle';
23
23
  import { IUserDataSyncWorkbenchService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/userDataSync/common/userDataSync.service';
24
24
  import { ChatConfiguration } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants';
25
25
 
@@ -28,6 +28,7 @@ let SettingsChangeRelauncher = class SettingsChangeRelauncher extends Disposable
28
28
  static { SettingsChangeRelauncher_1 = this; }
29
29
  static { this.SETTINGS = [
30
30
  TitleBarSetting.TITLE_BAR_STYLE,
31
+ MenuSettings.MenuStyle,
31
32
  'window.nativeTabs',
32
33
  'window.nativeFullScreen',
33
34
  'window.clickThroughInactive',
@@ -36,7 +37,7 @@ let SettingsChangeRelauncher = class SettingsChangeRelauncher extends Disposable
36
37
  'editor.accessibilitySupport',
37
38
  'security.workspace.trust.enabled',
38
39
  'workbench.enableExperiments',
39
- 'workbench.settings.showSuggestions',
40
+ 'workbench.settings.showAISearchToggle',
40
41
  '_extensionsGallery.enablePPE',
41
42
  'security.restrictUNCAccess',
42
43
  'accessibility.verbosity.debug',
@@ -52,6 +53,7 @@ let SettingsChangeRelauncher = class SettingsChangeRelauncher extends Disposable
52
53
  this.productService = productService;
53
54
  this.dialogService = dialogService;
54
55
  this.titleBarStyle = ( new ChangeObserver('string'));
56
+ this.menuStyle = ( new ChangeObserver('string'));
55
57
  this.nativeTabs = ( new ChangeObserver('boolean'));
56
58
  this.nativeFullScreen = ( new ChangeObserver('boolean'));
57
59
  this.clickThroughInactive = ( new ChangeObserver('boolean'));
@@ -89,6 +91,7 @@ let SettingsChangeRelauncher = class SettingsChangeRelauncher extends Disposable
89
91
  const config = this.configurationService.getValue();
90
92
  if (isNative) {
91
93
  processChanged((config.window.titleBarStyle === TitlebarStyle.NATIVE || config.window.titleBarStyle === TitlebarStyle.CUSTOM) && this.titleBarStyle.handleChange(config.window?.titleBarStyle));
94
+ processChanged(!isMacintosh && this.menuStyle.handleChange(config.window?.menuStyle));
92
95
  processChanged(isMacintosh && this.nativeTabs.handleChange(config.window?.nativeTabs));
93
96
  processChanged(isMacintosh && this.nativeFullScreen.handleChange(config.window?.nativeFullScreen));
94
97
  processChanged(isMacintosh && this.clickThroughInactive.handleChange(config.window?.clickThroughInactive));
@@ -111,20 +114,20 @@ let SettingsChangeRelauncher = class SettingsChangeRelauncher extends Disposable
111
114
  processChanged(this.showSuggestions.handleChange(config.workbench?.settings?.showSuggestions));
112
115
  if (askToRelaunch && changed && this.hostService.hasFocus) {
113
116
  this.doConfirm(isNative ?
114
- ( localize(8881, "A setting has changed that requires a restart to take effect.")) :
115
- ( localize(8882, "A setting has changed that requires a reload to take effect.")), isNative ?
117
+ ( localize(9118, "A setting has changed that requires a restart to take effect.")) :
118
+ ( localize(9119, "A setting has changed that requires a reload to take effect.")), isNative ?
116
119
  ( localize(
117
- 8883,
120
+ 9120,
118
121
  "Press the restart button to restart {0} and enable the setting.",
119
122
  this.productService.nameLong
120
123
  )) :
121
124
  ( localize(
122
- 8884,
125
+ 9121,
123
126
  "Press the reload button to reload {0} and enable the setting.",
124
127
  this.productService.nameLong
125
128
  )), isNative ?
126
- ( localize(8885, "&&Restart")) :
127
- ( localize(8886, "&&Reload")), () => this.hostService.restart());
129
+ ( localize(9122, "&&Restart")) :
130
+ ( localize(9123, "&&Reload")), () => this.hostService.restart());
128
131
  }
129
132
  }
130
133
  async doConfirm(message, detail, primaryButton, confirmedFn) {
@@ -171,7 +174,7 @@ let WorkspaceChangeExtHostRelauncher = class WorkspaceChangeExtHostRelauncher ex
171
174
  hostService.reload();
172
175
  }
173
176
  else if (isNative) {
174
- const stopped = await extensionService.stopExtensionHosts(( localize(8887, "Changing workspace folders")));
177
+ const stopped = await extensionService.stopExtensionHosts(( localize(9124, "Changing workspace folders")));
175
178
  if (stopped) {
176
179
  extensionService.startExtensionHosts();
177
180
  }