@codingame/monaco-vscode-relauncher-service-override 31.0.1 → 32.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": "31.0.1",
3
+ "version": "32.0.1",
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": "31.0.1"
18
+ "@codingame/monaco-vscode-api": "32.0.1"
19
19
  },
20
20
  "main": "index.js",
21
21
  "module": "index.js",
@@ -33,6 +33,7 @@ export declare class SettingsChangeRelauncher extends Disposable implements IWor
33
33
  private readonly accessibilityVerbosityDebug;
34
34
  private readonly telemetryFeedbackEnabled;
35
35
  private readonly extensionUnificationEnabled;
36
+ private readonly agentHostEnabled;
36
37
  constructor(hostService: IHostService, configurationService: IConfigurationService, userDataSyncService: IUserDataSyncService, userDataSyncEnablementService: IUserDataSyncEnablementService, userDataSyncWorkbenchService: IUserDataSyncWorkbenchService, productService: IProductService, dialogService: IDialogService);
37
38
  private onConfigurationChange;
38
39
  private isTurningOnSyncInProgress;
@@ -43,7 +43,8 @@ let SettingsChangeRelauncher = class SettingsChangeRelauncher extends Disposable
43
43
  "security.restrictUNCAccess",
44
44
  "accessibility.verbosity.debug",
45
45
  "telemetry.feedback.enabled",
46
- "chat.extensionUnification.enabled"
46
+ "chat.extensionUnification.enabled",
47
+ "chat.agentHost.enabled"
47
48
  ];
48
49
  }
49
50
  constructor(
@@ -76,6 +77,7 @@ let SettingsChangeRelauncher = class SettingsChangeRelauncher extends Disposable
76
77
  this.accessibilityVerbosityDebug = ( new ChangeObserver("boolean"));
77
78
  this.telemetryFeedbackEnabled = ( new ChangeObserver("boolean"));
78
79
  this.extensionUnificationEnabled = ( new ChangeObserver("boolean"));
80
+ this.agentHostEnabled = ( new ChangeObserver("boolean"));
79
81
  this.update(false);
80
82
  this._register(
81
83
  this.configurationService.onDidChangeConfiguration(e => this.onConfigurationChange(e))
@@ -142,16 +144,17 @@ let SettingsChangeRelauncher = class SettingsChangeRelauncher extends Disposable
142
144
  processChanged(
143
145
  this.extensionUnificationEnabled.handleChange(config.chat?.extensionUnification?.enabled) && config.chat?.extensionUnification?.enabled === true
144
146
  );
147
+ processChanged(this.agentHostEnabled.handleChange(config.chat?.agentHost?.enabled));
145
148
  if (askToRelaunch && changed && this.hostService.hasFocus) {
146
- this.doConfirm(isNative ? ( localize(12129, "A setting has changed that requires a restart to take effect.")) : ( localize(12130, "A setting has changed that requires a reload to take effect.")), isNative ? ( localize(
147
- 12131,
149
+ this.doConfirm(isNative ? ( localize(12459, "A setting has changed that requires a restart to take effect.")) : ( localize(12460, "A setting has changed that requires a reload to take effect.")), isNative ? ( localize(
150
+ 12461,
148
151
  "Press the restart button to restart {0} and enable the setting.",
149
152
  this.productService.nameLong
150
153
  )) : ( localize(
151
- 12132,
154
+ 12462,
152
155
  "Press the reload button to reload {0} and enable the setting.",
153
156
  this.productService.nameLong
154
- )), isNative ? ( localize(12133, "&&Restart")) : ( localize(12134, "&&Reload")), () => this.hostService.restart());
157
+ )), isNative ? ( localize(12463, "&&Restart")) : ( localize(12464, "&&Reload")), () => this.hostService.restart());
155
158
  }
156
159
  }
157
160
  async doConfirm(message, detail, primaryButton, confirmedFn) {
@@ -198,7 +201,7 @@ let WorkspaceChangeExtHostRelauncher = class WorkspaceChangeExtHostRelauncher ex
198
201
  if (environmentService.remoteAuthority) {
199
202
  hostService.reload();
200
203
  } else if (isNative) {
201
- const stopped = await extensionService.stopExtensionHosts(( localize(12135, "Changing workspace folders")));
204
+ const stopped = await extensionService.stopExtensionHosts(( localize(12465, "Changing workspace folders")));
202
205
  if (stopped) {
203
206
  extensionService.startExtensionHosts();
204
207
  }