@codingame/monaco-vscode-workbench-service-override 8.0.3 → 9.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-workbench-service-override",
3
- "version": "8.0.3",
3
+ "version": "9.0.0",
4
4
  "keywords": [],
5
5
  "author": {
6
6
  "name": "CodinGame",
@@ -26,12 +26,12 @@
26
26
  }
27
27
  },
28
28
  "dependencies": {
29
- "vscode": "npm:@codingame/monaco-vscode-api@8.0.3",
30
- "@codingame/monaco-vscode-keybindings-service-override": "8.0.3",
31
- "@codingame/monaco-vscode-quickaccess-service-override": "8.0.3",
32
- "@codingame/monaco-vscode-view-title-bar-service-override": "8.0.3",
33
- "@codingame/monaco-vscode-view-status-bar-service-override": "8.0.3",
34
- "@codingame/monaco-vscode-view-banner-service-override": "8.0.3",
35
- "@codingame/monaco-vscode-view-common-service-override": "8.0.3"
29
+ "vscode": "npm:@codingame/monaco-vscode-api@9.0.0",
30
+ "@codingame/monaco-vscode-keybindings-service-override": "9.0.0",
31
+ "@codingame/monaco-vscode-quickaccess-service-override": "9.0.0",
32
+ "@codingame/monaco-vscode-view-title-bar-service-override": "9.0.0",
33
+ "@codingame/monaco-vscode-view-status-bar-service-override": "9.0.0",
34
+ "@codingame/monaco-vscode-view-banner-service-override": "9.0.0",
35
+ "@codingame/monaco-vscode-view-common-service-override": "9.0.0"
36
36
  }
37
37
  }
@@ -16,7 +16,7 @@ import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/c
16
16
  import { ITitleService } from 'vscode/vscode/vs/workbench/services/title/browser/titleService.service';
17
17
  import { StartupKind } from 'vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle';
18
18
  import { ILifecycleService } from 'vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle.service';
19
- import { TitleBarSetting, CustomTitleBarVisibility, hasNativeTitlebar, getMenuBarVisibility } from 'vscode/vscode/vs/platform/window/common/window';
19
+ import { TitleBarSetting, CustomTitleBarVisibility, hasNativeTitlebar, getMenuBarVisibility, useWindowControlsOverlay } from 'vscode/vscode/vs/platform/window/common/window';
20
20
  import { IHostService } from 'vscode/vscode/vs/workbench/services/host/browser/host.service';
21
21
  import { IBrowserWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/browser/environmentService.service';
22
22
  import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
@@ -341,6 +341,7 @@ class Layout extends Disposable {
341
341
  updateWindowsBorder(skipLayout = false) {
342
342
  if (isWeb ||
343
343
  isWindows ||
344
+ useWindowControlsOverlay(this.configurationService) ||
344
345
  hasNativeTitlebar(this.configurationService)) {
345
346
  return;
346
347
  }
@@ -398,7 +399,7 @@ class Layout extends Disposable {
398
399
  }));
399
400
  const initialEditorsState = this.getInitialEditorsState();
400
401
  if (initialEditorsState) {
401
- this.logService.info('Initial editor state', initialEditorsState);
402
+ this.logService.trace('Initial editor state', initialEditorsState);
402
403
  }
403
404
  const initialLayoutState = {
404
405
  layout: {
@@ -53,7 +53,7 @@ class NotificationAccessibleView {
53
53
  if (!notification) {
54
54
  return;
55
55
  }
56
- return notification.source ? ( localize(8671, '{0} Source: {1}', message, notification.source)) : ( localize(8672, '{0}', message));
56
+ return notification.source ? ( localize(8686, '{0} Source: {1}', message, notification.source)) : ( localize(8687, '{0}', message));
57
57
  }
58
58
  const content = getContentForNotification();
59
59
  if (!content) {
@@ -118,7 +118,7 @@ function getActionsFromNotification(notification, accessibilitySignalService) {
118
118
  }
119
119
  if (actions) {
120
120
  actions.push({
121
- id: 'clearNotification', label: ( localize(8673, "Clear Notification")), tooltip: ( localize(8673, "Clear Notification")), run: () => {
121
+ id: 'clearNotification', label: ( localize(8688, "Clear Notification")), tooltip: ( localize(8688, "Clear Notification")), run: () => {
122
122
  notification.close();
123
123
  accessibilitySignalService.playSignal(AccessibilitySignal.clear);
124
124
  }, enabled: true, class: ThemeIcon.asClassName(Codicon.clearAll)
@@ -1,5 +1,5 @@
1
1
  import '@codingame/monaco-vscode-view-common-service-override/vscode/vs/workbench/browser/style';
2
- import { localize } from 'vscode/vscode/vs/nls';
2
+ import 'vscode/vscode/vs/nls';
3
3
  import { runWhenWindowIdle } from 'vscode/vscode/vs/base/browser/dom';
4
4
  import { Emitter, setGlobalLeakWarningThreshold, Event } from 'vscode/vscode/vs/base/common/event';
5
5
  import { timeout, RunOnceScheduler } from 'vscode/vscode/vs/base/common/async';
@@ -37,15 +37,16 @@ import { AccessibilityProgressSignalScheduler } from 'vscode/vscode/vs/platform/
37
37
  import { setProgressAcccessibilitySignalScheduler } from 'vscode/vscode/vs/base/browser/ui/progressbar/progressAccessibilitySignal';
38
38
  import { AccessibleViewRegistry } from 'vscode/vscode/vs/platform/accessibility/browser/accessibleViewRegistry';
39
39
  import { NotificationAccessibleView } from './parts/notifications/notificationAccessibleView.js';
40
+ import 'vscode/vscode/vs/base/common/amd';
40
41
 
41
42
  class Workbench extends Layout {
42
43
  constructor(parent, options, serviceCollection, logService) {
43
44
  super(parent);
44
45
  this.options = options;
45
46
  this.serviceCollection = serviceCollection;
46
- this._onWillShutdown = this._register(( (new Emitter())));
47
+ this._onWillShutdown = this._register(( new Emitter()));
47
48
  this.onWillShutdown = this._onWillShutdown.event;
48
- this._onDidShutdown = this._register(( (new Emitter())));
49
+ this._onDidShutdown = this._register(( new Emitter()));
49
50
  this.onDidShutdown = this._onDidShutdown.event;
50
51
  this.previousUnexpectedError = { message: undefined, time: 0 };
51
52
  mark('code/willStartWorkbench');
@@ -57,20 +58,6 @@ class Workbench extends Layout {
57
58
  event.preventDefault();
58
59
  });
59
60
  setUnexpectedErrorHandler(error => this.handleUnexpectedError(error, logService));
60
- if (typeof mainWindow.require?.config === 'function') {
61
- mainWindow.require.config({
62
- onError: (err) => {
63
- if (err.phase === 'loading') {
64
- onUnexpectedError(( (new Error(( localize(
65
- 3534,
66
- "Failed to load a required file. Please restart the application to try again. Details: {0}",
67
- JSON.stringify(err)
68
- ))))));
69
- }
70
- console.error(err);
71
- }
72
- });
73
- }
74
61
  }
75
62
  handleUnexpectedError(error, logService) {
76
63
  const message = toErrorMessage(error, true);
@@ -116,7 +103,7 @@ class Workbench extends Layout {
116
103
  for (const [id, descriptor] of contributedServices) {
117
104
  serviceCollection.set(id, descriptor);
118
105
  }
119
- const instantiationService = ( (new InstantiationService(serviceCollection, true)));
106
+ const instantiationService = ( new InstantiationService(serviceCollection, true));
120
107
  instantiationService.invokeFunction(accessor => {
121
108
  const lifecycleService = accessor.get(ILifecycleService);
122
109
  const configurationService = accessor.get(IConfigurationService);
@@ -165,8 +152,8 @@ class Workbench extends Layout {
165
152
  }
166
153
  this.fontAliasing = aliasing;
167
154
  const fontAliasingValues = ['antialiased', 'none', 'auto'];
168
- this.mainContainer.classList.remove(...( (fontAliasingValues.map(value => `monaco-font-aliasing-${value}`))));
169
- if (( (fontAliasingValues.some(option => option === aliasing)))) {
155
+ this.mainContainer.classList.remove(...( fontAliasingValues.map(value => `monaco-font-aliasing-${value}`)));
156
+ if (( fontAliasingValues.some(option => option === aliasing))) {
170
157
  this.mainContainer.classList.add(`monaco-font-aliasing-${aliasing}`);
171
158
  }
172
159
  }
@@ -251,12 +238,12 @@ class Workbench extends Layout {
251
238
  notificationsStatus.update(notificationsCenter.isVisible, notificationsToasts.isVisible);
252
239
  }));
253
240
  registerNotificationCommands(notificationsCenter, notificationsToasts, notificationService.model);
254
- AccessibleViewRegistry.register(( (new NotificationAccessibleView())));
241
+ AccessibleViewRegistry.register(( new NotificationAccessibleView()));
255
242
  this.registerNotifications({
256
- onDidChangeNotificationsVisibility: ( (Event.map(
243
+ onDidChangeNotificationsVisibility: ( Event.map(
257
244
  Event.any(notificationsToasts.onDidChangeVisibility, notificationsCenter.onDidChangeVisibility),
258
245
  () => notificationsToasts.isVisible || notificationsCenter.isVisible
259
- )))
246
+ ))
260
247
  });
261
248
  }
262
249
  restore(lifecycleService) {
@@ -281,9 +268,9 @@ class Workbench extends Layout {
281
268
  this.whenRestored.finally(() => markDidStartWorkbench());
282
269
  }
283
270
  lifecycleService.phase = LifecyclePhase.Restored;
284
- const eventuallyPhaseScheduler = this._register(( (new RunOnceScheduler(() => {
271
+ const eventuallyPhaseScheduler = this._register(( new RunOnceScheduler(() => {
285
272
  this._register(runWhenWindowIdle(mainWindow, () => lifecycleService.phase = LifecyclePhase.Eventually, 2500));
286
- }, 2500))));
273
+ }, 2500)));
287
274
  eventuallyPhaseScheduler.schedule();
288
275
  }));
289
276
  }