@codingame/monaco-vscode-workbench-service-override 22.1.9 → 23.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/index.js CHANGED
@@ -26,10 +26,10 @@ import { onLayout, onRenderWorkbench } from '@codingame/monaco-vscode-api/lifecy
26
26
  export { EditorPane, SimpleEditorInput, SimpleEditorPane, getPanelPosition, getSideBarPosition, isPartVisibile, onDidChangePanelPosition, onDidChangeSideBarPosition, registerCustomView, registerEditor, registerEditorPane, registerEditorSerializer, setPartVisibility, viewContainerRegistry, viewRegistry } from '@codingame/monaco-vscode-9efc1f50-c7de-55d6-8b28-bcc88bd49b5a-common/service-override/tools/views';
27
27
  export { ViewContainerLocation } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/views';
28
28
  export { ViewPaneContainer } from '@codingame/monaco-vscode-a8d3bd74-e63e-5327-96e8-4f931661e329-common/vscode/vs/workbench/browser/parts/views/viewPaneContainer';
29
- export { ConfirmResult } from '@codingame/monaco-vscode-d941ac7b-412f-57e3-b1bf-f6b0eb253b21-common/vscode/vs/platform/dialogs/common/dialogs';
29
+ export { ConfirmResult } from '@codingame/monaco-vscode-3b5a5cd1-d4ff-500a-b609-57e0cd4afa0a-common/vscode/vs/platform/dialogs/common/dialogs';
30
30
  export { RegisteredEditorPriority } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorResolverService';
31
- export { AbstractResourceEditorInput } from '@codingame/monaco-vscode-caeb744c-8e3f-5c11-80fb-0f057d24d544-common/vscode/vs/workbench/common/editor/resourceEditorInput';
32
- export { AbstractTextResourceEditorInput } from '@codingame/monaco-vscode-caeb744c-8e3f-5c11-80fb-0f057d24d544-common/vscode/vs/workbench/common/editor/textResourceEditorInput';
31
+ export { AbstractResourceEditorInput } from '@codingame/monaco-vscode-16b9b017-9377-5198-9904-c344b3b2ad14-common/vscode/vs/workbench/common/editor/resourceEditorInput';
32
+ export { AbstractTextResourceEditorInput } from '@codingame/monaco-vscode-16b9b017-9377-5198-9904-c344b3b2ad14-common/vscode/vs/workbench/common/editor/textResourceEditorInput';
33
33
  export { EditorInput } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor/editorInput';
34
34
  export { EditorInputCapabilities } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor';
35
35
  export { Parts } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/layout/browser/layoutService';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-workbench-service-override",
3
- "version": "22.1.9",
3
+ "version": "23.0.0",
4
4
  "private": false,
5
5
  "description": "VSCode public API plugged on the monaco editor - workbench service-override",
6
6
  "keywords": [],
@@ -15,24 +15,24 @@
15
15
  },
16
16
  "type": "module",
17
17
  "dependencies": {
18
- "@codingame/monaco-vscode-1021b67c-93e5-5c78-a270-cbdb2574d980-common": "22.1.9",
19
- "@codingame/monaco-vscode-256d5b78-0649-50e9-8354-2807f95f68f4-common": "22.1.9",
20
- "@codingame/monaco-vscode-494be54c-bd37-5b3c-af70-02f086e28768-common": "22.1.9",
21
- "@codingame/monaco-vscode-4bf376c2-03c7-58cb-8303-c67aeefa3d3d-common": "22.1.9",
22
- "@codingame/monaco-vscode-6980eeab-47bb-5a48-8e15-32caf0785565-common": "22.1.9",
23
- "@codingame/monaco-vscode-85886bdb-61c5-52f1-8eb7-d1d32f6f8cbd-common": "22.1.9",
24
- "@codingame/monaco-vscode-9c84f943-bcb5-5bcf-92a6-91f66a732f26-common": "22.1.9",
25
- "@codingame/monaco-vscode-9efc1f50-c7de-55d6-8b28-bcc88bd49b5a-common": "22.1.9",
26
- "@codingame/monaco-vscode-a8d3bd74-e63e-5327-96e8-4f931661e329-common": "22.1.9",
27
- "@codingame/monaco-vscode-api": "22.1.9",
28
- "@codingame/monaco-vscode-caeb744c-8e3f-5c11-80fb-0f057d24d544-common": "22.1.9",
29
- "@codingame/monaco-vscode-d941ac7b-412f-57e3-b1bf-f6b0eb253b21-common": "22.1.9",
30
- "@codingame/monaco-vscode-keybindings-service-override": "22.1.9",
31
- "@codingame/monaco-vscode-quickaccess-service-override": "22.1.9",
32
- "@codingame/monaco-vscode-view-banner-service-override": "22.1.9",
33
- "@codingame/monaco-vscode-view-common-service-override": "22.1.9",
34
- "@codingame/monaco-vscode-view-status-bar-service-override": "22.1.9",
35
- "@codingame/monaco-vscode-view-title-bar-service-override": "22.1.9"
18
+ "@codingame/monaco-vscode-1021b67c-93e5-5c78-a270-cbdb2574d980-common": "23.0.0",
19
+ "@codingame/monaco-vscode-16b9b017-9377-5198-9904-c344b3b2ad14-common": "23.0.0",
20
+ "@codingame/monaco-vscode-256d5b78-0649-50e9-8354-2807f95f68f4-common": "23.0.0",
21
+ "@codingame/monaco-vscode-3b5a5cd1-d4ff-500a-b609-57e0cd4afa0a-common": "23.0.0",
22
+ "@codingame/monaco-vscode-494be54c-bd37-5b3c-af70-02f086e28768-common": "23.0.0",
23
+ "@codingame/monaco-vscode-4bf376c2-03c7-58cb-8303-c67aeefa3d3d-common": "23.0.0",
24
+ "@codingame/monaco-vscode-6980eeab-47bb-5a48-8e15-32caf0785565-common": "23.0.0",
25
+ "@codingame/monaco-vscode-85886bdb-61c5-52f1-8eb7-d1d32f6f8cbd-common": "23.0.0",
26
+ "@codingame/monaco-vscode-9c84f943-bcb5-5bcf-92a6-91f66a732f26-common": "23.0.0",
27
+ "@codingame/monaco-vscode-9efc1f50-c7de-55d6-8b28-bcc88bd49b5a-common": "23.0.0",
28
+ "@codingame/monaco-vscode-a8d3bd74-e63e-5327-96e8-4f931661e329-common": "23.0.0",
29
+ "@codingame/monaco-vscode-api": "23.0.0",
30
+ "@codingame/monaco-vscode-keybindings-service-override": "23.0.0",
31
+ "@codingame/monaco-vscode-quickaccess-service-override": "23.0.0",
32
+ "@codingame/monaco-vscode-view-banner-service-override": "23.0.0",
33
+ "@codingame/monaco-vscode-view-common-service-override": "23.0.0",
34
+ "@codingame/monaco-vscode-view-status-bar-service-override": "23.0.0",
35
+ "@codingame/monaco-vscode-view-title-bar-service-override": "23.0.0"
36
36
  },
37
37
  "main": "index.js",
38
38
  "module": "index.js",
@@ -12,9 +12,9 @@ import type { IEditorOptions, IResourceEditorInput } from "@codingame/monaco-vsc
12
12
  import { EditorPane } from "@codingame/monaco-vscode-60014c9d-b815-501d-83a9-4b08725c2ec2-common/vscode/vs/workbench/browser/parts/editor/editorPane";
13
13
  import { CancellationToken } from "@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation";
14
14
  import { DomScrollableElement } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/scrollbar/scrollableElement";
15
- import { ConfirmResult } from "@codingame/monaco-vscode-d941ac7b-412f-57e3-b1bf-f6b0eb253b21-common/vscode/vs/platform/dialogs/common/dialogs";
16
- import { AbstractResourceEditorInput } from "@codingame/monaco-vscode-caeb744c-8e3f-5c11-80fb-0f057d24d544-common/vscode/vs/workbench/common/editor/resourceEditorInput";
17
- import { AbstractTextResourceEditorInput } from "@codingame/monaco-vscode-caeb744c-8e3f-5c11-80fb-0f057d24d544-common/vscode/vs/workbench/common/editor/textResourceEditorInput";
15
+ import { ConfirmResult } from "@codingame/monaco-vscode-3b5a5cd1-d4ff-500a-b609-57e0cd4afa0a-common/vscode/vs/platform/dialogs/common/dialogs";
16
+ import { AbstractResourceEditorInput } from "@codingame/monaco-vscode-16b9b017-9377-5198-9904-c344b3b2ad14-common/vscode/vs/workbench/common/editor/resourceEditorInput";
17
+ import { AbstractTextResourceEditorInput } from "@codingame/monaco-vscode-16b9b017-9377-5198-9904-c344b3b2ad14-common/vscode/vs/workbench/common/editor/textResourceEditorInput";
18
18
  import { Parts, Position } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/layout/browser/layoutService";
19
19
  import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
20
20
  import { type IView, SplitView } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/splitview/splitview";
@@ -2239,7 +2239,13 @@ class LayoutStateModel extends Disposable {
2239
2239
  this.storageService.store(`${LayoutStateModel.STORAGE_PREFIX}${key.name}`, typeof value === 'object' ? JSON.stringify(value) : value, key.scope, key.target);
2240
2240
  }
2241
2241
  loadKeyFromStorage(key) {
2242
- const value = this.storageService.get(`${LayoutStateModel.STORAGE_PREFIX}${key.name}`, key.scope);
2242
+ let value = this.storageService.get(`${LayoutStateModel.STORAGE_PREFIX}${key.name}`, key.scope);
2243
+ if (key.scope === StorageScope.WORKSPACE &&
2244
+ key.name === LayoutStateKeys.AUXILIARYBAR_HIDDEN.name &&
2245
+ this.configurationService.getValue('workbench.secondarySideBar.enableDefaultVisibilityInOldWorkspace') === true &&
2246
+ this.storageService.get('workbench.panel.chat.numberOfVisibleViews', StorageScope.WORKSPACE) === undefined) {
2247
+ value = undefined;
2248
+ }
2243
2249
  if (value !== undefined) {
2244
2250
  this.isNew[key.scope] = false;
2245
2251
  switch (typeof key.defaultValue) {
@@ -55,7 +55,7 @@ class NotificationAccessibleView {
55
55
  if (!notification || !message) {
56
56
  return;
57
57
  }
58
- return withSeverityPrefix(notification.source ? ( localize(3441, '{0} Source: {1}', message, notification.source)) : message, notification.severity);
58
+ return withSeverityPrefix(notification.source ? ( localize(3461, '{0} Source: {1}', message, notification.source)) : message, notification.severity);
59
59
  }
60
60
  const content = getContentForNotification();
61
61
  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(3442, "Clear Notification")), tooltip: ( localize(3442, "Clear Notification")), run: () => {
121
+ id: 'clearNotification', label: ( localize(3462, "Clear Notification")), tooltip: ( localize(3462, "Clear Notification")), run: () => {
122
122
  notification.close();
123
123
  accessibilitySignalService.playSignal(AccessibilitySignal.clear);
124
124
  }, enabled: true, class: ThemeIcon.asClassName(Codicon.clearAll)
@@ -23,7 +23,7 @@ import { registerNotificationCommands } from '@codingame/monaco-vscode-494be54c-
23
23
  import { NotificationsToasts } from '@codingame/monaco-vscode-494be54c-bd37-5b3c-af70-02f086e28768-common/vscode/vs/workbench/browser/parts/notifications/notificationsToasts';
24
24
  import { setARIAContainer } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/aria/aria';
25
25
  import { FontMeasurements } from '@codingame/monaco-vscode-api/vscode/vs/editor/browser/config/fontMeasurements';
26
- import { BareFontInfo } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/config/fontInfo';
26
+ import { createBareFontInfoFromRawSettings } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/config/fontInfoFromSettings';
27
27
  import { toErrorMessage } from '@codingame/monaco-vscode-api/vscode/vs/base/common/errorMessage';
28
28
  import { coalesce } from '@codingame/monaco-vscode-api/vscode/vs/base/common/arrays';
29
29
  import { InstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiationService';
@@ -33,9 +33,11 @@ import { IDialogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/
33
33
  import { mainWindow } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/window';
34
34
  import { PixelRatio } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/pixelRatio';
35
35
  import { AccessibilityProgressSignalScheduler } from '@codingame/monaco-vscode-1021b67c-93e5-5c78-a270-cbdb2574d980-common/vscode/vs/platform/accessibilitySignal/browser/progressAccessibilitySignalScheduler';
36
- import { setProgressAcccessibilitySignalScheduler } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/progressbar/progressAccessibilitySignal';
36
+ import { setProgressAccessibilitySignalScheduler } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/progressbar/progressAccessibilitySignal';
37
37
  import { AccessibleViewRegistry } from '@codingame/monaco-vscode-api/vscode/vs/platform/accessibility/browser/accessibleViewRegistry';
38
38
  import { NotificationAccessibleView } from './parts/notifications/notificationAccessibleView.js';
39
+ import { IMarkdownRendererService } from '@codingame/monaco-vscode-api/vscode/vs/platform/markdown/browser/markdownRenderer.service';
40
+ import { EditorMarkdownCodeBlockRenderer } from '@codingame/monaco-vscode-api/vscode/vs/editor/browser/widget/markdownRenderer/browser/editorMarkdownCodeBlockRenderer';
39
41
 
40
42
  class Workbench extends Layout {
41
43
  constructor(parent, options, serviceCollection, logService) {
@@ -82,6 +84,8 @@ class Workbench extends Layout {
82
84
  const hostService = accessor.get(IHostService);
83
85
  const dialogService = accessor.get(IDialogService);
84
86
  const notificationService = accessor.get(INotificationService);
87
+ const markdownRendererService = accessor.get(IMarkdownRendererService);
88
+ markdownRendererService.setDefaultCodeBlockRenderer(instantiationService.createInstance(EditorMarkdownCodeBlockRenderer));
85
89
  this.initLayout(accessor);
86
90
  this.registerListeners(lifecycleService, storageService, configurationService, hostService, dialogService);
87
91
  this.renderWorkbench(instantiationService, notificationService, storageService, configurationService);
@@ -106,7 +110,7 @@ class Workbench extends Layout {
106
110
  instantiationService.invokeFunction(accessor => {
107
111
  const lifecycleService = accessor.get(ILifecycleService);
108
112
  const configurationService = accessor.get(IConfigurationService);
109
- if (typeof configurationService.acquireInstantiationService === 'function') {
113
+ if (configurationService && 'acquireInstantiationService' in configurationService) {
110
114
  configurationService.acquireInstantiationService(instantiationService);
111
115
  }
112
116
  lifecycleService.phase = LifecyclePhase.Ready;
@@ -168,7 +172,7 @@ class Workbench extends Layout {
168
172
  catch (err) {
169
173
  }
170
174
  }
171
- FontMeasurements.readFontInfo(mainWindow, BareFontInfo.createFromRawSettings(configurationService.getValue('editor'), PixelRatio.getInstance(mainWindow).value));
175
+ FontMeasurements.readFontInfo(mainWindow, createBareFontInfoFromRawSettings(configurationService.getValue('editor'), PixelRatio.getInstance(mainWindow).value));
172
176
  }
173
177
  storeFontInfo(storageService) {
174
178
  const serializedFontInfo = FontMeasurements.serializeFontInfo(mainWindow);
@@ -178,7 +182,7 @@ class Workbench extends Layout {
178
182
  }
179
183
  renderWorkbench(instantiationService, notificationService, storageService, configurationService) {
180
184
  setARIAContainer(this.mainContainer);
181
- setProgressAcccessibilitySignalScheduler((msDelayTime, msLoopTime) => instantiationService.createInstance(AccessibilityProgressSignalScheduler, msDelayTime, msLoopTime));
185
+ setProgressAccessibilitySignalScheduler((msDelayTime, msLoopTime) => instantiationService.createInstance(AccessibilityProgressSignalScheduler, msDelayTime, msLoopTime));
182
186
  const platformClass = isWindows ? 'windows' : isLinux ? 'linux' : 'mac';
183
187
  const workbenchClasses = coalesce([
184
188
  'monaco-workbench',