@codingame/monaco-vscode-workbench-service-override 10.1.3 → 11.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": "
|
|
3
|
+
"version": "11.0.0",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -26,12 +26,14 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"vscode": "npm:@codingame/monaco-vscode-api@
|
|
30
|
-
"@codingame/monaco-vscode-
|
|
31
|
-
"@codingame/monaco-vscode-
|
|
32
|
-
"@codingame/monaco-vscode-
|
|
33
|
-
"@codingame/monaco-vscode-view-
|
|
34
|
-
"@codingame/monaco-vscode-view-
|
|
35
|
-
"@codingame/monaco-vscode-view-
|
|
29
|
+
"vscode": "npm:@codingame/monaco-vscode-api@11.0.0",
|
|
30
|
+
"@codingame/monaco-vscode-view-common-views-workbench-common": "11.0.0",
|
|
31
|
+
"@codingame/monaco-vscode-keybindings-service-override": "11.0.0",
|
|
32
|
+
"@codingame/monaco-vscode-quickaccess-service-override": "11.0.0",
|
|
33
|
+
"@codingame/monaco-vscode-view-title-bar-service-override": "11.0.0",
|
|
34
|
+
"@codingame/monaco-vscode-view-status-bar-service-override": "11.0.0",
|
|
35
|
+
"@codingame/monaco-vscode-view-banner-service-override": "11.0.0",
|
|
36
|
+
"@codingame/monaco-vscode-view-common-service-override": "11.0.0",
|
|
37
|
+
"@codingame/monaco-vscode-notifications-workbench-common": "11.0.0"
|
|
36
38
|
}
|
|
37
39
|
}
|
|
@@ -5,8 +5,8 @@ import { onDidChangeFullscreen, isFullscreen, isWCOEnabled } from 'vscode/vscode
|
|
|
5
5
|
import { IWorkingCopyBackupService } from 'vscode/vscode/vs/workbench/services/workingCopy/common/workingCopyBackup.service';
|
|
6
6
|
import { isWindows, isLinux, isWeb, isIOS, isMacintosh } from 'vscode/vscode/vs/base/common/platform';
|
|
7
7
|
import { pathsToEditors, isResourceEditorInput } from 'vscode/vscode/vs/workbench/common/editor';
|
|
8
|
-
import { SidebarPart } from '@codingame/monaco-vscode-view-common-
|
|
9
|
-
import { PanelPart } from '@codingame/monaco-vscode-view-common-
|
|
8
|
+
import { SidebarPart } from '@codingame/monaco-vscode-view-common-views-workbench-common/vscode/vs/workbench/browser/parts/sidebar/sidebarPart';
|
|
9
|
+
import { PanelPart } from '@codingame/monaco-vscode-view-common-views-workbench-common/vscode/vs/workbench/browser/parts/panel/panelPart';
|
|
10
10
|
import { shouldShowCustomTitleBar, isHorizontal, panelOpensMaximizedFromString, positionToString, positionFromString } from 'vscode/vscode/vs/workbench/services/layout/browser/layoutService';
|
|
11
11
|
import { isTemporaryWorkspace } from 'vscode/vscode/vs/platform/workspace/common/workspace';
|
|
12
12
|
import { IWorkspaceContextService } from 'vscode/vscode/vs/platform/workspace/common/workspace.service';
|
|
@@ -19,7 +19,7 @@ import { IHostService } from 'vscode/vscode/vs/workbench/services/host/browser/h
|
|
|
19
19
|
import { IBrowserWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/browser/environmentService.service';
|
|
20
20
|
import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
21
21
|
import { IEditorGroupsService } from 'vscode/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
|
|
22
|
-
import { SerializableGrid, Sizing } from '@codingame/monaco-vscode-view-common-
|
|
22
|
+
import { SerializableGrid, Sizing } from '@codingame/monaco-vscode-view-common-views-workbench-common/vscode/vs/base/browser/ui/grid/grid';
|
|
23
23
|
import { Part } from 'vscode/vscode/vs/workbench/browser/part';
|
|
24
24
|
import { IStatusbarService } from 'vscode/vscode/vs/workbench/services/statusbar/browser/statusbar.service';
|
|
25
25
|
import { IFileService } from 'vscode/vscode/vs/platform/files/common/files.service';
|
|
@@ -39,7 +39,7 @@ import { ILogService } from 'vscode/vscode/vs/platform/log/common/log.service';
|
|
|
39
39
|
import { DeferredPromise, Promises } from 'vscode/vscode/vs/base/common/async';
|
|
40
40
|
import { IBannerService } from 'vscode/vscode/vs/workbench/services/banner/browser/bannerService.service';
|
|
41
41
|
import { IPaneCompositePartService } from 'vscode/vscode/vs/workbench/services/panecomposite/browser/panecomposite.service';
|
|
42
|
-
import { AuxiliaryBarPart } from '@codingame/monaco-vscode-view-common-
|
|
42
|
+
import { AuxiliaryBarPart } from '@codingame/monaco-vscode-view-common-views-workbench-common/vscode/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarPart';
|
|
43
43
|
import { ITelemetryService } from 'vscode/vscode/vs/platform/telemetry/common/telemetry.service';
|
|
44
44
|
import { IAuxiliaryWindowService } from 'vscode/vscode/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.service';
|
|
45
45
|
import { mainWindow } from 'vscode/vscode/vs/base/browser/window';
|
|
@@ -244,10 +244,10 @@ class Layout extends Disposable {
|
|
|
244
244
|
this.state.runtime.menuBar.toggled = visible;
|
|
245
245
|
const menuBarVisibility = getMenuBarVisibility(this.configurationService);
|
|
246
246
|
if (isWeb && menuBarVisibility === 'toggle') {
|
|
247
|
-
this.workbenchGrid.setViewVisible(this.titleBarPartView, shouldShowCustomTitleBar(this.configurationService, mainWindow, this.state.runtime.menuBar.toggled
|
|
247
|
+
this.workbenchGrid.setViewVisible(this.titleBarPartView, shouldShowCustomTitleBar(this.configurationService, mainWindow, this.state.runtime.menuBar.toggled));
|
|
248
248
|
}
|
|
249
249
|
else if (this.state.runtime.mainWindowFullscreen && (menuBarVisibility === 'toggle' || menuBarVisibility === 'classic')) {
|
|
250
|
-
this.workbenchGrid.setViewVisible(this.titleBarPartView, shouldShowCustomTitleBar(this.configurationService, mainWindow, this.state.runtime.menuBar.toggled
|
|
250
|
+
this.workbenchGrid.setViewVisible(this.titleBarPartView, shouldShowCustomTitleBar(this.configurationService, mainWindow, this.state.runtime.menuBar.toggled));
|
|
251
251
|
}
|
|
252
252
|
this.handleContainerDidLayout(this.mainContainer, this._mainContainerDimension);
|
|
253
253
|
}
|
|
@@ -278,7 +278,7 @@ class Layout extends Disposable {
|
|
|
278
278
|
}
|
|
279
279
|
this.workbenchGrid.edgeSnapping = this.state.runtime.mainWindowFullscreen;
|
|
280
280
|
{
|
|
281
|
-
this.workbenchGrid.setViewVisible(this.titleBarPartView, shouldShowCustomTitleBar(this.configurationService, mainWindow, this.state.runtime.menuBar.toggled
|
|
281
|
+
this.workbenchGrid.setViewVisible(this.titleBarPartView, shouldShowCustomTitleBar(this.configurationService, mainWindow, this.state.runtime.menuBar.toggled));
|
|
282
282
|
this.updateWindowsBorder(true);
|
|
283
283
|
}
|
|
284
284
|
}
|
|
@@ -423,8 +423,6 @@ class Layout extends Disposable {
|
|
|
423
423
|
initialization: initialLayoutState,
|
|
424
424
|
runtime: layoutRuntimeState,
|
|
425
425
|
};
|
|
426
|
-
const isNewWindow = lifecycleService.startupKind === 1 ;
|
|
427
|
-
const activityBarNotDefault = this.configurationService.getValue("workbench.activityBar.location" ) !== "default" ;
|
|
428
426
|
if (this.isVisible("workbench.parts.sidebar" )) {
|
|
429
427
|
let viewContainerToRestore;
|
|
430
428
|
if (!this.environmentService.isBuilt ||
|
|
@@ -442,13 +440,6 @@ class Layout extends Disposable {
|
|
|
442
440
|
this.stateModel.setRuntimeValue(LayoutStateKeys.SIDEBAR_HIDDEN, true);
|
|
443
441
|
}
|
|
444
442
|
}
|
|
445
|
-
else if (isNewWindow && activityBarNotDefault) {
|
|
446
|
-
const viewContainerToRestore = this.storageService.get(SidebarPart.activeViewletSettingsKey, 1 , this.viewDescriptorService.getDefaultViewContainer(0 )?.id);
|
|
447
|
-
if (viewContainerToRestore) {
|
|
448
|
-
this.state.initialization.views.containerToRestore.sideBar = viewContainerToRestore;
|
|
449
|
-
this.stateModel.setRuntimeValue(LayoutStateKeys.SIDEBAR_HIDDEN, false);
|
|
450
|
-
}
|
|
451
|
-
}
|
|
452
443
|
if (this.isVisible("workbench.parts.panel" )) {
|
|
453
444
|
const viewContainerToRestore = this.storageService.get(PanelPart.activePanelSettingsKey, 1 , this.viewDescriptorService.getDefaultViewContainer(1 )?.id);
|
|
454
445
|
if (viewContainerToRestore) {
|
|
@@ -459,8 +450,11 @@ class Layout extends Disposable {
|
|
|
459
450
|
}
|
|
460
451
|
}
|
|
461
452
|
if (this.isVisible("workbench.parts.auxiliarybar" )) {
|
|
462
|
-
|
|
453
|
+
let viewContainerToRestore = this.storageService.get(AuxiliaryBarPart.activePanelSettingsKey, 1 , this.viewDescriptorService.getDefaultViewContainer(2 )?.id);
|
|
463
454
|
if (viewContainerToRestore) {
|
|
455
|
+
if (viewContainerToRestore === 'workbench.panel.chatSidebar') {
|
|
456
|
+
viewContainerToRestore = 'workbench.panel.chat';
|
|
457
|
+
}
|
|
464
458
|
this.state.initialization.views.containerToRestore.auxiliaryBar = viewContainerToRestore;
|
|
465
459
|
}
|
|
466
460
|
else {
|
|
@@ -820,7 +814,7 @@ class Layout extends Disposable {
|
|
|
820
814
|
}
|
|
821
815
|
switch (part) {
|
|
822
816
|
case "workbench.parts.titlebar" :
|
|
823
|
-
return shouldShowCustomTitleBar(this.configurationService, mainWindow, this.state.runtime.menuBar.toggled
|
|
817
|
+
return shouldShowCustomTitleBar(this.configurationService, mainWindow, this.state.runtime.menuBar.toggled);
|
|
824
818
|
case "workbench.parts.sidebar" :
|
|
825
819
|
return !this.stateModel.getRuntimeValue(LayoutStateKeys.SIDEBAR_HIDDEN);
|
|
826
820
|
case "workbench.parts.panel" :
|
|
@@ -1428,13 +1422,13 @@ class Layout extends Disposable {
|
|
|
1428
1422
|
return this.stateModel.getRuntimeValue(LayoutStateKeys.PANEL_ALIGNMENT);
|
|
1429
1423
|
}
|
|
1430
1424
|
updateMenubarVisibility(skipLayout) {
|
|
1431
|
-
const shouldShowTitleBar = shouldShowCustomTitleBar(this.configurationService, mainWindow, this.state.runtime.menuBar.toggled
|
|
1425
|
+
const shouldShowTitleBar = shouldShowCustomTitleBar(this.configurationService, mainWindow, this.state.runtime.menuBar.toggled);
|
|
1432
1426
|
if (!skipLayout && this.workbenchGrid && shouldShowTitleBar !== this.isVisible("workbench.parts.titlebar" , mainWindow)) {
|
|
1433
1427
|
this.workbenchGrid.setViewVisible(this.titleBarPartView, shouldShowTitleBar);
|
|
1434
1428
|
}
|
|
1435
1429
|
}
|
|
1436
1430
|
updateCustomTitleBarVisibility() {
|
|
1437
|
-
const shouldShowTitleBar = shouldShowCustomTitleBar(this.configurationService, mainWindow, this.state.runtime.menuBar.toggled
|
|
1431
|
+
const shouldShowTitleBar = shouldShowCustomTitleBar(this.configurationService, mainWindow, this.state.runtime.menuBar.toggled);
|
|
1438
1432
|
const titlebarVisible = this.isVisible("workbench.parts.titlebar" );
|
|
1439
1433
|
if (shouldShowTitleBar !== titlebarVisible) {
|
|
1440
1434
|
this.workbenchGrid.setViewVisible(this.titleBarPartView, shouldShowTitleBar);
|
|
@@ -1556,7 +1550,7 @@ class Layout extends Disposable {
|
|
|
1556
1550
|
if (bannerFirst !== shouldBannerBeFirst) {
|
|
1557
1551
|
this.workbenchGrid.moveView(this.bannerPartView, Sizing.Distribute, this.titleBarPartView, shouldBannerBeFirst ? 0 : 1 );
|
|
1558
1552
|
}
|
|
1559
|
-
this.workbenchGrid.setViewVisible(this.titleBarPartView, shouldShowCustomTitleBar(this.configurationService, mainWindow, this.state.runtime.menuBar.toggled
|
|
1553
|
+
this.workbenchGrid.setViewVisible(this.titleBarPartView, shouldShowCustomTitleBar(this.configurationService, mainWindow, this.state.runtime.menuBar.toggled));
|
|
1560
1554
|
}
|
|
1561
1555
|
arrangeEditorNodes(nodes, availableHeight, availableWidth) {
|
|
1562
1556
|
if (!nodes.sideBar && !nodes.auxiliaryBar) {
|
|
@@ -8,7 +8,7 @@ import { IAccessibilitySignalService } from 'vscode/vscode/vs/platform/accessibi
|
|
|
8
8
|
import { ICommandService } from 'vscode/vscode/vs/platform/commands/common/commands.service';
|
|
9
9
|
import { WorkbenchList } from 'vscode/vscode/vs/platform/list/browser/listService';
|
|
10
10
|
import { IListService } from 'vscode/vscode/vs/platform/list/browser/listService.service';
|
|
11
|
-
import { getNotificationFromContext } from 'vscode/vscode/vs/workbench/browser/parts/notifications/notificationsCommands';
|
|
11
|
+
import { getNotificationFromContext } from '@codingame/monaco-vscode-notifications-workbench-common/vscode/vs/workbench/browser/parts/notifications/notificationsCommands';
|
|
12
12
|
import { NotificationFocusedContext } from 'vscode/vscode/vs/workbench/common/contextkeys';
|
|
13
13
|
|
|
14
14
|
class NotificationAccessibleView {
|
|
@@ -53,7 +53,7 @@ class NotificationAccessibleView {
|
|
|
53
53
|
if (!notification) {
|
|
54
54
|
return;
|
|
55
55
|
}
|
|
56
|
-
return notification.source ? ( localize(
|
|
56
|
+
return notification.source ? ( localize(8842, '{0} Source: {1}', message, notification.source)) : ( localize(8843, '{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(
|
|
121
|
+
id: 'clearNotification', label: ( localize(8844, "Clear Notification")), tooltip: ( localize(8844, "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,4 @@
|
|
|
1
|
-
import '
|
|
2
|
-
import 'vscode/vscode/vs/nls';
|
|
1
|
+
import 'vscode/vscode/vs/workbench/browser/style';
|
|
3
2
|
import { runWhenWindowIdle } from 'vscode/vscode/vs/base/browser/dom';
|
|
4
3
|
import { Emitter, setGlobalLeakWarningThreshold, Event } from 'vscode/vscode/vs/base/common/event';
|
|
5
4
|
import { timeout, RunOnceScheduler } from 'vscode/vscode/vs/base/common/async';
|
|
@@ -15,12 +14,12 @@ import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storag
|
|
|
15
14
|
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
|
|
16
15
|
import { ILifecycleService } from 'vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle.service';
|
|
17
16
|
import { INotificationService } from 'vscode/vscode/vs/platform/notification/common/notification.service';
|
|
18
|
-
import { NotificationsCenter } from 'vscode/vscode/vs/workbench/browser/parts/notifications/notificationsCenter';
|
|
19
|
-
import { NotificationsAlerts } from 'vscode/vscode/vs/workbench/browser/parts/notifications/notificationsAlerts';
|
|
20
|
-
import { NotificationsStatus } from 'vscode/vscode/vs/workbench/browser/parts/notifications/notificationsStatus';
|
|
21
|
-
import { NotificationsTelemetry } from 'vscode/vscode/vs/workbench/browser/parts/notifications/notificationsTelemetry';
|
|
22
|
-
import { registerNotificationCommands } from 'vscode/vscode/vs/workbench/browser/parts/notifications/notificationsCommands';
|
|
23
|
-
import { NotificationsToasts } from 'vscode/vscode/vs/workbench/browser/parts/notifications/notificationsToasts';
|
|
17
|
+
import { NotificationsCenter } from '@codingame/monaco-vscode-notifications-workbench-common/vscode/vs/workbench/browser/parts/notifications/notificationsCenter';
|
|
18
|
+
import { NotificationsAlerts } from '@codingame/monaco-vscode-notifications-workbench-common/vscode/vs/workbench/browser/parts/notifications/notificationsAlerts';
|
|
19
|
+
import { NotificationsStatus } from '@codingame/monaco-vscode-notifications-workbench-common/vscode/vs/workbench/browser/parts/notifications/notificationsStatus';
|
|
20
|
+
import { NotificationsTelemetry } from '@codingame/monaco-vscode-notifications-workbench-common/vscode/vs/workbench/browser/parts/notifications/notificationsTelemetry';
|
|
21
|
+
import { registerNotificationCommands } from '@codingame/monaco-vscode-notifications-workbench-common/vscode/vs/workbench/browser/parts/notifications/notificationsCommands';
|
|
22
|
+
import { NotificationsToasts } from '@codingame/monaco-vscode-notifications-workbench-common/vscode/vs/workbench/browser/parts/notifications/notificationsToasts';
|
|
24
23
|
import { setARIAContainer } from 'vscode/vscode/vs/base/browser/ui/aria/aria';
|
|
25
24
|
import { FontMeasurements } from 'vscode/vscode/vs/editor/browser/config/fontMeasurements';
|
|
26
25
|
import { BareFontInfo } from 'vscode/vscode/vs/editor/common/config/fontInfo';
|
package/workbench.js
CHANGED
|
@@ -8,7 +8,7 @@ import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/d
|
|
|
8
8
|
import { IEditorGroupsService } from 'vscode/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
|
|
9
9
|
import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
10
10
|
import { EditorService } from 'vscode/vscode/vs/workbench/services/editor/browser/editorService';
|
|
11
|
-
import { EditorParts } from '@codingame/monaco-vscode-view-common-
|
|
11
|
+
import { EditorParts } from '@codingame/monaco-vscode-view-common-views-workbench-common/vscode/vs/workbench/browser/parts/editor/editorParts';
|
|
12
12
|
import { setUnexpectedErrorHandler, onUnexpectedError } from 'vscode/vscode/vs/base/common/errors';
|
|
13
13
|
import { BrowserWindow } from 'vscode/vscode/vs/workbench/browser/window';
|
|
14
14
|
import { detectFullscreen } from 'vscode/vscode/vs/base/browser/dom';
|