@codingame/monaco-vscode-relauncher-service-override 7.1.0 → 8.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": "7.1.0",
3
+ "version": "8.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@7.1.0"
29
+ "vscode": "npm:@codingame/monaco-vscode-api@8.0.0"
30
30
  }
31
31
  }
@@ -6,7 +6,7 @@ import { TitleBarSetting, TitlebarStyle } from 'vscode/vscode/vs/platform/window
6
6
  import { IHostService } from 'vscode/vscode/vs/workbench/services/host/browser/host.service';
7
7
  import { ConfigurationTarget } from 'vscode/vscode/vs/platform/configuration/common/configuration';
8
8
  import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
9
- import { localizeWithPath } from 'vscode/vscode/vs/nls';
9
+ import { localize } from 'vscode/vscode/vs/nls';
10
10
  import { WorkbenchState } from 'vscode/vscode/vs/platform/workspace/common/workspace';
11
11
  import { IWorkspaceContextService } from 'vscode/vscode/vs/platform/workspace/common/workspace.service';
12
12
  import { IExtensionService } from 'vscode/vscode/vs/workbench/services/extensions/common/extensions.service';
@@ -19,7 +19,6 @@ import { IWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/service
19
19
  import { IProductService } from 'vscode/vscode/vs/platform/product/common/productService.service';
20
20
 
21
21
  var SettingsChangeRelauncher_1;
22
- const _moduleId = "vs/workbench/contrib/relauncher/browser/relauncher.contribution";
23
22
  let SettingsChangeRelauncher = class SettingsChangeRelauncher extends Disposable {
24
23
  static { SettingsChangeRelauncher_1 = this; }
25
24
  static { this.SETTINGS = [
@@ -32,7 +31,8 @@ let SettingsChangeRelauncher = class SettingsChangeRelauncher extends Disposable
32
31
  'security.workspace.trust.enabled',
33
32
  'workbench.enableExperiments',
34
33
  '_extensionsGallery.enablePPE',
35
- 'security.restrictUNCAccess'
34
+ 'security.restrictUNCAccess',
35
+ 'accessibility.verbosity.debug'
36
36
  ]; }
37
37
  constructor(hostService, configurationService, productService, dialogService) {
38
38
  super();
@@ -49,6 +49,7 @@ let SettingsChangeRelauncher = class SettingsChangeRelauncher extends Disposable
49
49
  this.experimentsEnabled = ( (new ChangeObserver('boolean')));
50
50
  this.enablePPEExtensionsGallery = ( (new ChangeObserver('boolean')));
51
51
  this.restrictUNCAccess = ( (new ChangeObserver('boolean')));
52
+ this.accessibilityVerbosityDebug = ( (new ChangeObserver('boolean')));
52
53
  this.onConfigurationChange(undefined);
53
54
  this._register(this.configurationService.onDidChangeConfiguration(e => this.onConfigurationChange(e)));
54
55
  }
@@ -75,35 +76,26 @@ let SettingsChangeRelauncher = class SettingsChangeRelauncher extends Disposable
75
76
  }
76
77
  processChanged(this.workspaceTrustEnabled.handleChange(config?.security?.workspace?.trust?.enabled));
77
78
  processChanged(this.restrictUNCAccess.handleChange(config?.security?.restrictUNCAccess));
79
+ processChanged(this.accessibilityVerbosityDebug.handleChange(config?.accessibility?.verbosity?.debug));
78
80
  }
79
81
  processChanged(this.experimentsEnabled.handleChange(config.workbench?.enableExperiments));
80
82
  processChanged(this.productService.quality !== 'stable' && this.enablePPEExtensionsGallery.handleChange(config._extensionsGallery?.enablePPE));
81
83
  if (changed && e && e.source !== ConfigurationTarget.DEFAULT) {
82
84
  this.doConfirm(isNative ?
83
- ( localizeWithPath(
84
- _moduleId,
85
- 0,
86
- "A setting has changed that requires a restart to take effect."
87
- )) :
88
- ( localizeWithPath(
89
- _moduleId,
90
- 1,
91
- "A setting has changed that requires a reload to take effect."
92
- )), isNative ?
93
- ( localizeWithPath(
94
- _moduleId,
95
- 2,
85
+ ( localize(2243, "A setting has changed that requires a restart to take effect.")) :
86
+ ( localize(2244, "A setting has changed that requires a reload to take effect.")), isNative ?
87
+ ( localize(
88
+ 2245,
96
89
  "Press the restart button to restart {0} and enable the setting.",
97
90
  this.productService.nameLong
98
91
  )) :
99
- ( localizeWithPath(
100
- _moduleId,
101
- 3,
92
+ ( localize(
93
+ 2246,
102
94
  "Press the reload button to reload {0} and enable the setting.",
103
95
  this.productService.nameLong
104
96
  )), isNative ?
105
- ( localizeWithPath(_moduleId, 4, "&&Restart")) :
106
- ( localizeWithPath(_moduleId, 5, "&&Reload")), () => this.hostService.restart());
97
+ ( localize(2247, "&&Restart")) :
98
+ ( localize(2248, "&&Reload")), () => this.hostService.restart());
107
99
  }
108
100
  }
109
101
  async doConfirm(message, detail, primaryButton, confirmedFn) {
@@ -151,11 +143,7 @@ let WorkspaceChangeExtHostRelauncher = class WorkspaceChangeExtHostRelauncher ex
151
143
  hostService.reload();
152
144
  }
153
145
  else if (isNative) {
154
- const stopped = await extensionService.stopExtensionHosts(( localizeWithPath(
155
- _moduleId,
156
- 6,
157
- "Restarting extension host due to a workspace folder change."
158
- )));
146
+ const stopped = await extensionService.stopExtensionHosts(( localize(2249, "Restarting extension host due to a workspace folder change.")));
159
147
  if (stopped) {
160
148
  extensionService.startExtensionHosts();
161
149
  }