@codingame/monaco-vscode-debug-service-override 22.1.7 → 22.1.9
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 +15 -16
- package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugToolBar.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugViewlet.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/replAccessibilityHelp.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/replAccessibilityHelp.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/replAccessibleView.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/replAccessibleView.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugActionViewItems.d.ts +0 -50
- package/vscode/src/vs/workbench/contrib/debug/browser/debugActionViewItems.js +0 -352
- package/vscode/src/vs/workbench/contrib/debug/browser/media/repl.css +0 -146
- package/vscode/src/vs/workbench/contrib/debug/browser/repl.d.ts +0 -105
- package/vscode/src/vs/workbench/contrib/debug/browser/repl.js +0 -1080
- package/vscode/src/vs/workbench/contrib/debug/browser/replFilter.d.ts +0 -9
- package/vscode/src/vs/workbench/contrib/debug/browser/replFilter.js +0 -53
- package/vscode/src/vs/workbench/contrib/debug/browser/replViewer.d.ts +0 -134
- package/vscode/src/vs/workbench/contrib/debug/browser/replViewer.js +0 -361
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-debug-service-override",
|
|
3
|
-
"version": "22.1.
|
|
3
|
+
"version": "22.1.9",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - debug service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,21 +15,20 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-09e9b2e8-42a8-5a68-864f-bfcdad0ca1df-common": "22.1.
|
|
19
|
-
"@codingame/monaco-vscode-4bf376c2-03c7-58cb-8303-c67aeefa3d3d-common": "22.1.
|
|
20
|
-
"@codingame/monaco-vscode-501b06ab-3f58-516b-8a1a-c29d375d3da4-common": "22.1.
|
|
21
|
-
"@codingame/monaco-vscode-60014c9d-b815-501d-83a9-4b08725c2ec2-common": "22.1.
|
|
22
|
-
"@codingame/monaco-vscode-88aa9a78-75f5-5aaa-89e9-bbdd580b3b5c-common": "22.1.
|
|
23
|
-
"@codingame/monaco-vscode-a17e9d37-b6c1-5556-8402-5db73960fae3-common": "22.1.
|
|
24
|
-
"@codingame/monaco-vscode-a8d3bd74-e63e-5327-96e8-4f931661e329-common": "22.1.
|
|
25
|
-
"@codingame/monaco-vscode-ab07af84-42e8-5a0f-8aef-b83fb90ede21-common": "22.1.
|
|
26
|
-
"@codingame/monaco-vscode-api": "22.1.
|
|
27
|
-
"@codingame/monaco-vscode-b99aef83-0d60-5e8c-a62e-9908b6256f35-common": "22.1.
|
|
28
|
-
"@codingame/monaco-vscode-ce7c734f-7712-563c-9335-d7acb43306af-common": "22.1.
|
|
29
|
-
"@codingame/monaco-vscode-d941ac7b-412f-57e3-b1bf-f6b0eb253b21-common": "22.1.
|
|
30
|
-
"@codingame/monaco-vscode-
|
|
31
|
-
"@codingame/monaco-vscode-
|
|
32
|
-
"@codingame/monaco-vscode-f24e325c-2ce0-5bba-8236-bfc4f53180ab-common": "22.1.7"
|
|
18
|
+
"@codingame/monaco-vscode-09e9b2e8-42a8-5a68-864f-bfcdad0ca1df-common": "22.1.9",
|
|
19
|
+
"@codingame/monaco-vscode-4bf376c2-03c7-58cb-8303-c67aeefa3d3d-common": "22.1.9",
|
|
20
|
+
"@codingame/monaco-vscode-501b06ab-3f58-516b-8a1a-c29d375d3da4-common": "22.1.9",
|
|
21
|
+
"@codingame/monaco-vscode-60014c9d-b815-501d-83a9-4b08725c2ec2-common": "22.1.9",
|
|
22
|
+
"@codingame/monaco-vscode-88aa9a78-75f5-5aaa-89e9-bbdd580b3b5c-common": "22.1.9",
|
|
23
|
+
"@codingame/monaco-vscode-a17e9d37-b6c1-5556-8402-5db73960fae3-common": "22.1.9",
|
|
24
|
+
"@codingame/monaco-vscode-a8d3bd74-e63e-5327-96e8-4f931661e329-common": "22.1.9",
|
|
25
|
+
"@codingame/monaco-vscode-ab07af84-42e8-5a0f-8aef-b83fb90ede21-common": "22.1.9",
|
|
26
|
+
"@codingame/monaco-vscode-api": "22.1.9",
|
|
27
|
+
"@codingame/monaco-vscode-b99aef83-0d60-5e8c-a62e-9908b6256f35-common": "22.1.9",
|
|
28
|
+
"@codingame/monaco-vscode-ce7c734f-7712-563c-9335-d7acb43306af-common": "22.1.9",
|
|
29
|
+
"@codingame/monaco-vscode-d941ac7b-412f-57e3-b1bf-f6b0eb253b21-common": "22.1.9",
|
|
30
|
+
"@codingame/monaco-vscode-e59ecb8c-db32-5324-8fe4-cf9921fd92b8-common": "22.1.9",
|
|
31
|
+
"@codingame/monaco-vscode-f24e325c-2ce0-5bba-8236-bfc4f53180ab-common": "22.1.9"
|
|
33
32
|
},
|
|
34
33
|
"main": "index.js",
|
|
35
34
|
"module": "index.js",
|
|
@@ -53,7 +53,7 @@ import { DisassemblyViewContribution, DisassemblyView } from './disassemblyView.
|
|
|
53
53
|
import { LoadedScriptsView } from './loadedScriptsView.js';
|
|
54
54
|
import * as debug_contribution from './media/debug.contribution.css';
|
|
55
55
|
import * as debugHover from './media/debugHover.css';
|
|
56
|
-
import { Repl } from '
|
|
56
|
+
import { Repl } from '@codingame/monaco-vscode-88aa9a78-75f5-5aaa-89e9-bbdd580b3b5c-common/vscode/vs/workbench/contrib/debug/browser/repl';
|
|
57
57
|
import { ReplAccessibilityHelp } from './replAccessibilityHelp.js';
|
|
58
58
|
import { ReplAccessibleView } from './replAccessibleView.js';
|
|
59
59
|
import { RunAndDebugAccessibilityHelp } from './runAndDebugAccessibilityHelp.js';
|
|
@@ -45,7 +45,7 @@ import { LayoutSettings, Parts, EditorTabsMode } from '@codingame/monaco-vscode-
|
|
|
45
45
|
import { IWorkbenchLayoutService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/layout/browser/layoutService.service';
|
|
46
46
|
import { State, VIEWLET_ID, CONTEXT_DEBUG_STATE, CONTEXT_IN_DEBUG_MODE, CONTEXT_FOCUSED_SESSION_IS_NO_DEBUG, CONTEXT_FOCUSED_SESSION_IS_ATTACH, CONTEXT_TERMINATE_DEBUGGEE_SUPPORTED, CONTEXT_STEP_BACK_SUPPORTED, CONTEXT_MULTI_SESSION_DEBUG, CONTEXT_SUSPEND_DEBUGGEE_SUPPORTED } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debug';
|
|
47
47
|
import { IDebugService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debug.service';
|
|
48
|
-
import { FocusSessionActionViewItem } from '
|
|
48
|
+
import { FocusSessionActionViewItem } from '@codingame/monaco-vscode-88aa9a78-75f5-5aaa-89e9-bbdd580b3b5c-common/vscode/vs/workbench/contrib/debug/browser/debugActionViewItems';
|
|
49
49
|
import { debugToolBarBackground, debugToolBarBorder } from '@codingame/monaco-vscode-09e9b2e8-42a8-5a68-864f-bfcdad0ca1df-common/vscode/vs/workbench/contrib/debug/browser/debugColors';
|
|
50
50
|
import { FOCUS_SESSION_ID, STOP_ID, DISCONNECT_ID, CONTINUE_ID, CONTINUE_LABEL, PAUSE_ID, PAUSE_LABEL, STOP_LABEL, DISCONNECT_LABEL, STEP_OVER_ID, STEP_OVER_LABEL, STEP_INTO_ID, STEP_INTO_LABEL, STEP_OUT_ID, STEP_OUT_LABEL, RESTART_SESSION_ID, RESTART_LABEL, STEP_BACK_ID, REVERSE_CONTINUE_ID, FOCUS_SESSION_LABEL, DISCONNECT_AND_SUSPEND_LABEL, DISCONNECT_AND_SUSPEND_ID } from '@codingame/monaco-vscode-88aa9a78-75f5-5aaa-89e9-bbdd580b3b5c-common/vscode/vs/workbench/contrib/debug/browser/debugCommands';
|
|
51
51
|
import { debugGripper, debugContinue, debugPause, debugStop, debugDisconnect, debugStepOver, debugStepInto, debugStepOut, debugRestart, debugStepBack, debugReverseContinue } from '@codingame/monaco-vscode-09e9b2e8-42a8-5a68-864f-bfcdad0ca1df-common/vscode/vs/workbench/contrib/debug/browser/debugIcons';
|
|
@@ -21,7 +21,7 @@ import { ViewPaneContainer, ViewsSubMenu } from '@codingame/monaco-vscode-a8d3bd
|
|
|
21
21
|
import { WorkbenchStateContext } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contextkeys';
|
|
22
22
|
import { IViewDescriptorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/views.service';
|
|
23
23
|
import { IViewsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/views/common/viewsService.service';
|
|
24
|
-
import { StartDebugActionViewItem, FocusSessionActionViewItem } from '
|
|
24
|
+
import { StartDebugActionViewItem, FocusSessionActionViewItem } from '@codingame/monaco-vscode-88aa9a78-75f5-5aaa-89e9-bbdd580b3b5c-common/vscode/vs/workbench/contrib/debug/browser/debugActionViewItems';
|
|
25
25
|
import { DEBUG_START_COMMAND_ID, FOCUS_SESSION_ID, STOP_ID, DISCONNECT_ID, DEBUG_START_LABEL, DEBUG_CONFIGURE_LABEL, DEBUG_CONFIGURE_COMMAND_ID, SELECT_AND_START_ID } from '@codingame/monaco-vscode-88aa9a78-75f5-5aaa-89e9-bbdd580b3b5c-common/vscode/vs/workbench/contrib/debug/browser/debugCommands';
|
|
26
26
|
import { debugConfigure } from '@codingame/monaco-vscode-09e9b2e8-42a8-5a68-864f-bfcdad0ca1df-common/vscode/vs/workbench/contrib/debug/browser/debugIcons';
|
|
27
27
|
import { createDisconnectMenuItemAction } from './debugToolBar.js';
|
|
@@ -2,7 +2,7 @@ import { ServicesAccessor } from "@codingame/monaco-vscode-api/vscode/vs/editor/
|
|
|
2
2
|
import { AccessibleViewProviderId, AccessibleViewType, IAccessibleViewContentProvider } from "@codingame/monaco-vscode-api/vscode/vs/platform/accessibility/browser/accessibleView";
|
|
3
3
|
import { IAccessibleViewImplementation } from "@codingame/monaco-vscode-api/vscode/vs/platform/accessibility/browser/accessibleViewRegistry";
|
|
4
4
|
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
5
|
-
import { Repl } from "
|
|
5
|
+
import { Repl } from "@codingame/monaco-vscode-88aa9a78-75f5-5aaa-89e9-bbdd580b3b5c-common/vscode/vs/workbench/contrib/debug/browser/repl";
|
|
6
6
|
import { AccessibilityVerbositySettingId } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration";
|
|
7
7
|
export declare class ReplAccessibilityHelp implements IAccessibleViewImplementation {
|
|
8
8
|
priority: number;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { AccessibleViewType, AccessibleViewProviderId } from '@codingame/monaco-vscode-api/vscode/vs/platform/accessibility/browser/accessibleView';
|
|
3
3
|
import { ContextKeyExpr } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey';
|
|
4
4
|
import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
5
|
-
import { getReplView } from '
|
|
5
|
+
import { getReplView } from '@codingame/monaco-vscode-88aa9a78-75f5-5aaa-89e9-bbdd580b3b5c-common/vscode/vs/workbench/contrib/debug/browser/repl';
|
|
6
6
|
import { IViewsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/views/common/viewsService.service';
|
|
7
7
|
import { AccessibilityVerbositySettingId } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration';
|
|
8
8
|
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
@@ -4,7 +4,7 @@ import { AccessibilityVerbositySettingId } from "@codingame/monaco-vscode-api/vs
|
|
|
4
4
|
import { IReplElement } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debug";
|
|
5
5
|
import { IAccessibleViewImplementation } from "@codingame/monaco-vscode-api/vscode/vs/platform/accessibility/browser/accessibleViewRegistry";
|
|
6
6
|
import { ServicesAccessor } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
7
|
-
import { Repl } from "
|
|
7
|
+
import { Repl } from "@codingame/monaco-vscode-88aa9a78-75f5-5aaa-89e9-bbdd580b3b5c-common/vscode/vs/workbench/contrib/debug/browser/repl";
|
|
8
8
|
import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
|
|
9
9
|
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
10
10
|
export declare class ReplAccessibleView implements IAccessibleViewImplementation {
|
|
@@ -3,7 +3,7 @@ import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib
|
|
|
3
3
|
import { AccessibleViewType, AccessibleViewProviderId } from '@codingame/monaco-vscode-api/vscode/vs/platform/accessibility/browser/accessibleView';
|
|
4
4
|
import { IAccessibleViewService } from '@codingame/monaco-vscode-api/vscode/vs/platform/accessibility/browser/accessibleView.service';
|
|
5
5
|
import { AccessibilityVerbositySettingId } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration';
|
|
6
|
-
import { getReplView } from '
|
|
6
|
+
import { getReplView } from '@codingame/monaco-vscode-88aa9a78-75f5-5aaa-89e9-bbdd580b3b5c-common/vscode/vs/workbench/contrib/debug/browser/repl';
|
|
7
7
|
import { IViewsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/views/common/viewsService.service';
|
|
8
8
|
import { ContextKeyExpr } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey';
|
|
9
9
|
import { Emitter } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { IAction } from "@codingame/monaco-vscode-api/vscode/vs/base/common/actions";
|
|
2
|
-
import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
|
|
3
|
-
import { ICommandService } from "@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service";
|
|
4
|
-
import { IDebugSession } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debug";
|
|
5
|
-
import { IDebugService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debug.service";
|
|
6
|
-
import { IContextViewService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextview/browser/contextView.service";
|
|
7
|
-
import { IWorkspaceContextService } from "@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace.service";
|
|
8
|
-
import { BaseActionViewItem, IBaseActionViewItemOptions, SelectActionViewItem } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/actionbar/actionViewItems";
|
|
9
|
-
import { IKeybindingService } from "@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service";
|
|
10
|
-
import { IHoverService } from "@codingame/monaco-vscode-api/vscode/vs/platform/hover/browser/hover.service";
|
|
11
|
-
import { IContextKeyService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service";
|
|
12
|
-
export declare class StartDebugActionViewItem extends BaseActionViewItem {
|
|
13
|
-
private context;
|
|
14
|
-
private readonly debugService;
|
|
15
|
-
private readonly configurationService;
|
|
16
|
-
private readonly commandService;
|
|
17
|
-
private readonly contextService;
|
|
18
|
-
private readonly keybindingService;
|
|
19
|
-
private readonly hoverService;
|
|
20
|
-
private readonly contextKeyService;
|
|
21
|
-
private static readonly SEPARATOR;
|
|
22
|
-
private container;
|
|
23
|
-
private start;
|
|
24
|
-
private selectBox;
|
|
25
|
-
private debugOptions;
|
|
26
|
-
private toDispose;
|
|
27
|
-
private selected;
|
|
28
|
-
private providers;
|
|
29
|
-
constructor(context: unknown, action: IAction, options: IBaseActionViewItemOptions, debugService: IDebugService, configurationService: IConfigurationService, commandService: ICommandService, contextService: IWorkspaceContextService, contextViewService: IContextViewService, keybindingService: IKeybindingService, hoverService: IHoverService, contextKeyService: IContextKeyService);
|
|
30
|
-
private registerListeners;
|
|
31
|
-
render(container: HTMLElement): void;
|
|
32
|
-
setActionContext(context: any): void;
|
|
33
|
-
isEnabled(): boolean;
|
|
34
|
-
focus(fromRight?: boolean): void;
|
|
35
|
-
blur(): void;
|
|
36
|
-
setFocusable(focusable: boolean): void;
|
|
37
|
-
dispose(): void;
|
|
38
|
-
private updateOptions;
|
|
39
|
-
private _setAriaLabel;
|
|
40
|
-
}
|
|
41
|
-
export declare class FocusSessionActionViewItem extends SelectActionViewItem<IDebugSession> {
|
|
42
|
-
protected readonly debugService: IDebugService;
|
|
43
|
-
private readonly configurationService;
|
|
44
|
-
constructor(action: IAction, session: IDebugSession | undefined, debugService: IDebugService, contextViewService: IContextViewService, configurationService: IConfigurationService);
|
|
45
|
-
protected getActionContext(_: string, index: number): IDebugSession;
|
|
46
|
-
private update;
|
|
47
|
-
private getSelectedSession;
|
|
48
|
-
protected getSessions(): ReadonlyArray<IDebugSession>;
|
|
49
|
-
protected mapFocusedSessionToSelected(focusedSession: IDebugSession): IDebugSession;
|
|
50
|
-
}
|
|
@@ -1,352 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
-
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
4
|
-
import { KeyCode } from '@codingame/monaco-vscode-api/vscode/vs/base/common/keyCodes';
|
|
5
|
-
import { $ as $$1, append, EventType, addDisposableListener } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
6
|
-
import { StandardKeyboardEvent } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/keyboardEvent';
|
|
7
|
-
import { SelectBox } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/selectBox/selectBox';
|
|
8
|
-
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
9
|
-
import { ICommandService } from '@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service';
|
|
10
|
-
import { State } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debug';
|
|
11
|
-
import { IDebugService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debug.service';
|
|
12
|
-
import { ThemeIcon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/themables';
|
|
13
|
-
import { asCssVariable } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colorUtils';
|
|
14
|
-
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/baseColors';
|
|
15
|
-
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/chartsColors';
|
|
16
|
-
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/editorColors';
|
|
17
|
-
import { selectBorder, selectBackground } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/inputColors';
|
|
18
|
-
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/listColors';
|
|
19
|
-
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/menuColors';
|
|
20
|
-
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/minimapColors';
|
|
21
|
-
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/miscColors';
|
|
22
|
-
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/quickpickColors';
|
|
23
|
-
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/searchColors';
|
|
24
|
-
import { IContextViewService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextview/browser/contextView.service';
|
|
25
|
-
import { WorkbenchState } from '@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace';
|
|
26
|
-
import { IWorkspaceContextService } from '@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace.service';
|
|
27
|
-
import { dispose } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
28
|
-
import { ADD_CONFIGURATION_ID } from '@codingame/monaco-vscode-88aa9a78-75f5-5aaa-89e9-bbdd580b3b5c-common/vscode/vs/workbench/contrib/debug/browser/debugCommands';
|
|
29
|
-
import { BaseActionViewItem, SelectActionViewItem } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/actionbar/actionViewItems';
|
|
30
|
-
import { debugStart } from '@codingame/monaco-vscode-09e9b2e8-42a8-5a68-864f-bfcdad0ca1df-common/vscode/vs/workbench/contrib/debug/browser/debugIcons';
|
|
31
|
-
import { IKeybindingService } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service';
|
|
32
|
-
import { defaultSelectBoxStyles } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/browser/defaultStyles';
|
|
33
|
-
import { getDefaultHoverDelegate } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/hover/hoverDelegateFactory';
|
|
34
|
-
import { IHoverService } from '@codingame/monaco-vscode-api/vscode/vs/platform/hover/browser/hover.service';
|
|
35
|
-
import { AccessibilityVerbositySettingId } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration';
|
|
36
|
-
import { AccessibilityCommandId } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/accessibility/common/accessibilityCommands';
|
|
37
|
-
import { IContextKeyService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
38
|
-
import { hasNativeContextMenu } from '@codingame/monaco-vscode-api/vscode/vs/platform/window/common/window';
|
|
39
|
-
import { Gesture, EventType as EventType$1 } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/touch';
|
|
40
|
-
|
|
41
|
-
var StartDebugActionViewItem_1;
|
|
42
|
-
const $ = $$1;
|
|
43
|
-
let StartDebugActionViewItem = class StartDebugActionViewItem extends BaseActionViewItem {
|
|
44
|
-
static { StartDebugActionViewItem_1 = this; }
|
|
45
|
-
static { this.SEPARATOR = '\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500'; }
|
|
46
|
-
constructor(context, action, options, debugService, configurationService, commandService, contextService, contextViewService, keybindingService, hoverService, contextKeyService) {
|
|
47
|
-
super(context, action, options);
|
|
48
|
-
this.context = context;
|
|
49
|
-
this.debugService = debugService;
|
|
50
|
-
this.configurationService = configurationService;
|
|
51
|
-
this.commandService = commandService;
|
|
52
|
-
this.contextService = contextService;
|
|
53
|
-
this.keybindingService = keybindingService;
|
|
54
|
-
this.hoverService = hoverService;
|
|
55
|
-
this.contextKeyService = contextKeyService;
|
|
56
|
-
this.debugOptions = [];
|
|
57
|
-
this.selected = 0;
|
|
58
|
-
this.providers = [];
|
|
59
|
-
this.toDispose = [];
|
|
60
|
-
this.selectBox = ( new SelectBox(
|
|
61
|
-
[],
|
|
62
|
-
-1,
|
|
63
|
-
contextViewService,
|
|
64
|
-
defaultSelectBoxStyles,
|
|
65
|
-
{ ariaLabel: ( localize(6272, 'Debug Launch Configurations')), useCustomDrawn: !hasNativeContextMenu(this.configurationService) }
|
|
66
|
-
));
|
|
67
|
-
this.selectBox.setFocusable(false);
|
|
68
|
-
this.toDispose.push(this.selectBox);
|
|
69
|
-
this.registerListeners();
|
|
70
|
-
}
|
|
71
|
-
registerListeners() {
|
|
72
|
-
this.toDispose.push(this.configurationService.onDidChangeConfiguration(e => {
|
|
73
|
-
if (e.affectsConfiguration('launch')) {
|
|
74
|
-
this.updateOptions();
|
|
75
|
-
}
|
|
76
|
-
}));
|
|
77
|
-
this.toDispose.push(this.debugService.getConfigurationManager().onDidSelectConfiguration(() => {
|
|
78
|
-
this.updateOptions();
|
|
79
|
-
}));
|
|
80
|
-
}
|
|
81
|
-
render(container) {
|
|
82
|
-
this.container = container;
|
|
83
|
-
container.classList.add('start-debug-action-item');
|
|
84
|
-
this.start = append(container, $(ThemeIcon.asCSSSelector(debugStart)));
|
|
85
|
-
const keybinding = this.keybindingService.lookupKeybinding(this.action.id)?.getLabel();
|
|
86
|
-
const keybindingLabel = keybinding ? ` (${keybinding})` : '';
|
|
87
|
-
const title = this.action.label + keybindingLabel;
|
|
88
|
-
this.toDispose.push(this.hoverService.setupManagedHover(getDefaultHoverDelegate('mouse'), this.start, title));
|
|
89
|
-
this.start.setAttribute('role', 'button');
|
|
90
|
-
this._setAriaLabel(title);
|
|
91
|
-
this._register(Gesture.addTarget(this.start));
|
|
92
|
-
for (const event of [EventType.CLICK, EventType$1.Tap]) {
|
|
93
|
-
this.toDispose.push(addDisposableListener(this.start, event, () => {
|
|
94
|
-
this.start.blur();
|
|
95
|
-
if (this.debugService.state !== State.Initializing) {
|
|
96
|
-
this.actionRunner.run(this.action, this.context);
|
|
97
|
-
}
|
|
98
|
-
}));
|
|
99
|
-
}
|
|
100
|
-
this.toDispose.push(addDisposableListener(this.start, EventType.MOUSE_DOWN, (e) => {
|
|
101
|
-
if (this.action.enabled && e.button === 0) {
|
|
102
|
-
this.start.classList.add('active');
|
|
103
|
-
}
|
|
104
|
-
}));
|
|
105
|
-
this.toDispose.push(addDisposableListener(this.start, EventType.MOUSE_UP, () => {
|
|
106
|
-
this.start.classList.remove('active');
|
|
107
|
-
}));
|
|
108
|
-
this.toDispose.push(addDisposableListener(this.start, EventType.MOUSE_OUT, () => {
|
|
109
|
-
this.start.classList.remove('active');
|
|
110
|
-
}));
|
|
111
|
-
this.toDispose.push(addDisposableListener(this.start, EventType.KEY_DOWN, (e) => {
|
|
112
|
-
const event = ( new StandardKeyboardEvent(e));
|
|
113
|
-
if (event.equals(KeyCode.RightArrow)) {
|
|
114
|
-
this.start.tabIndex = -1;
|
|
115
|
-
this.selectBox.focus();
|
|
116
|
-
event.stopPropagation();
|
|
117
|
-
}
|
|
118
|
-
}));
|
|
119
|
-
this.toDispose.push(this.selectBox.onDidSelect(async (e) => {
|
|
120
|
-
const target = this.debugOptions[e.index];
|
|
121
|
-
const shouldBeSelected = target.handler ? await target.handler() : false;
|
|
122
|
-
if (shouldBeSelected) {
|
|
123
|
-
this.selected = e.index;
|
|
124
|
-
}
|
|
125
|
-
else {
|
|
126
|
-
this.selectBox.select(this.selected);
|
|
127
|
-
}
|
|
128
|
-
}));
|
|
129
|
-
const selectBoxContainer = $('.configuration');
|
|
130
|
-
this.selectBox.render(append(container, selectBoxContainer));
|
|
131
|
-
this.toDispose.push(addDisposableListener(selectBoxContainer, EventType.KEY_DOWN, (e) => {
|
|
132
|
-
const event = ( new StandardKeyboardEvent(e));
|
|
133
|
-
if (event.equals(KeyCode.LeftArrow)) {
|
|
134
|
-
this.selectBox.setFocusable(false);
|
|
135
|
-
this.start.tabIndex = 0;
|
|
136
|
-
this.start.focus();
|
|
137
|
-
event.stopPropagation();
|
|
138
|
-
event.preventDefault();
|
|
139
|
-
}
|
|
140
|
-
}));
|
|
141
|
-
this.container.style.border = `1px solid ${asCssVariable(selectBorder)}`;
|
|
142
|
-
selectBoxContainer.style.borderLeft = `1px solid ${asCssVariable(selectBorder)}`;
|
|
143
|
-
this.container.style.backgroundColor = asCssVariable(selectBackground);
|
|
144
|
-
const configManager = this.debugService.getConfigurationManager();
|
|
145
|
-
const updateDynamicConfigs = () => configManager.getDynamicProviders().then(providers => {
|
|
146
|
-
if (providers.length !== this.providers.length) {
|
|
147
|
-
this.providers = providers;
|
|
148
|
-
this.updateOptions();
|
|
149
|
-
}
|
|
150
|
-
});
|
|
151
|
-
this.toDispose.push(configManager.onDidChangeConfigurationProviders(updateDynamicConfigs));
|
|
152
|
-
updateDynamicConfigs();
|
|
153
|
-
this.updateOptions();
|
|
154
|
-
}
|
|
155
|
-
setActionContext(context) {
|
|
156
|
-
this.context = context;
|
|
157
|
-
}
|
|
158
|
-
isEnabled() {
|
|
159
|
-
return true;
|
|
160
|
-
}
|
|
161
|
-
focus(fromRight) {
|
|
162
|
-
if (fromRight) {
|
|
163
|
-
this.selectBox.focus();
|
|
164
|
-
}
|
|
165
|
-
else {
|
|
166
|
-
this.start.tabIndex = 0;
|
|
167
|
-
this.start.focus();
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
blur() {
|
|
171
|
-
this.start.tabIndex = -1;
|
|
172
|
-
this.selectBox.blur();
|
|
173
|
-
this.container.blur();
|
|
174
|
-
}
|
|
175
|
-
setFocusable(focusable) {
|
|
176
|
-
if (focusable) {
|
|
177
|
-
this.start.tabIndex = 0;
|
|
178
|
-
}
|
|
179
|
-
else {
|
|
180
|
-
this.start.tabIndex = -1;
|
|
181
|
-
this.selectBox.setFocusable(false);
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
dispose() {
|
|
185
|
-
this.toDispose = dispose(this.toDispose);
|
|
186
|
-
super.dispose();
|
|
187
|
-
}
|
|
188
|
-
updateOptions() {
|
|
189
|
-
this.selected = 0;
|
|
190
|
-
this.debugOptions = [];
|
|
191
|
-
const manager = this.debugService.getConfigurationManager();
|
|
192
|
-
const inWorkspace = this.contextService.getWorkbenchState() === WorkbenchState.WORKSPACE;
|
|
193
|
-
let lastGroup;
|
|
194
|
-
const disabledIdxs = [];
|
|
195
|
-
manager.getAllConfigurations().forEach(({ launch, name, presentation }) => {
|
|
196
|
-
if (lastGroup !== presentation?.group) {
|
|
197
|
-
lastGroup = presentation?.group;
|
|
198
|
-
if (this.debugOptions.length) {
|
|
199
|
-
this.debugOptions.push({ label: StartDebugActionViewItem_1.SEPARATOR, handler: () => Promise.resolve(false) });
|
|
200
|
-
disabledIdxs.push(this.debugOptions.length - 1);
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
if (name === manager.selectedConfiguration.name && launch === manager.selectedConfiguration.launch) {
|
|
204
|
-
this.selected = this.debugOptions.length;
|
|
205
|
-
}
|
|
206
|
-
const label = inWorkspace ? `${name} (${launch.name})` : name;
|
|
207
|
-
this.debugOptions.push({
|
|
208
|
-
label, handler: async () => {
|
|
209
|
-
await manager.selectConfiguration(launch, name);
|
|
210
|
-
return true;
|
|
211
|
-
}
|
|
212
|
-
});
|
|
213
|
-
});
|
|
214
|
-
manager.getRecentDynamicConfigurations().slice(0, 3).forEach(({ name, type }) => {
|
|
215
|
-
if (type === manager.selectedConfiguration.type && manager.selectedConfiguration.name === name) {
|
|
216
|
-
this.selected = this.debugOptions.length;
|
|
217
|
-
}
|
|
218
|
-
this.debugOptions.push({
|
|
219
|
-
label: name,
|
|
220
|
-
handler: async () => {
|
|
221
|
-
await manager.selectConfiguration(undefined, name, undefined, { type });
|
|
222
|
-
return true;
|
|
223
|
-
}
|
|
224
|
-
});
|
|
225
|
-
});
|
|
226
|
-
if (this.debugOptions.length === 0) {
|
|
227
|
-
this.debugOptions.push({ label: ( localize(6273, "No Configurations")), handler: async () => false });
|
|
228
|
-
}
|
|
229
|
-
this.debugOptions.push({ label: StartDebugActionViewItem_1.SEPARATOR, handler: () => Promise.resolve(false) });
|
|
230
|
-
disabledIdxs.push(this.debugOptions.length - 1);
|
|
231
|
-
this.providers.forEach(p => {
|
|
232
|
-
this.debugOptions.push({
|
|
233
|
-
label: `${p.label}...`,
|
|
234
|
-
handler: async () => {
|
|
235
|
-
const picked = await p.pick();
|
|
236
|
-
if (picked) {
|
|
237
|
-
await manager.selectConfiguration(picked.launch, picked.config.name, picked.config, { type: p.type });
|
|
238
|
-
return true;
|
|
239
|
-
}
|
|
240
|
-
return false;
|
|
241
|
-
}
|
|
242
|
-
});
|
|
243
|
-
});
|
|
244
|
-
manager.getLaunches().filter(l => !l.hidden).forEach(l => {
|
|
245
|
-
const label = inWorkspace ? ( localize(6274, "Add Config ({0})...", l.name)) : ( localize(6275, "Add Configuration..."));
|
|
246
|
-
this.debugOptions.push({
|
|
247
|
-
label, handler: async () => {
|
|
248
|
-
await this.commandService.executeCommand(ADD_CONFIGURATION_ID, ( l.uri.toString()));
|
|
249
|
-
return false;
|
|
250
|
-
}
|
|
251
|
-
});
|
|
252
|
-
});
|
|
253
|
-
this.selectBox.setOptions(( this.debugOptions.map(
|
|
254
|
-
(data, index) => ({ text: data.label, isDisabled: disabledIdxs.indexOf(index) !== -1 })
|
|
255
|
-
)), this.selected);
|
|
256
|
-
}
|
|
257
|
-
_setAriaLabel(title) {
|
|
258
|
-
let ariaLabel = title;
|
|
259
|
-
let keybinding;
|
|
260
|
-
const verbose = this.configurationService.getValue(AccessibilityVerbositySettingId.Debug);
|
|
261
|
-
if (verbose) {
|
|
262
|
-
keybinding = this.keybindingService.lookupKeybinding(AccessibilityCommandId.OpenAccessibilityHelp, this.contextKeyService)?.getLabel() ?? undefined;
|
|
263
|
-
}
|
|
264
|
-
if (keybinding) {
|
|
265
|
-
ariaLabel = ( localize(6276, "{0}, use ({1}) for accessibility help", ariaLabel, keybinding));
|
|
266
|
-
}
|
|
267
|
-
else {
|
|
268
|
-
ariaLabel = ( localize(
|
|
269
|
-
6277,
|
|
270
|
-
"{0}, run the command Open Accessibility Help which is currently not triggerable via keybinding.",
|
|
271
|
-
ariaLabel
|
|
272
|
-
));
|
|
273
|
-
}
|
|
274
|
-
this.start.ariaLabel = ariaLabel;
|
|
275
|
-
}
|
|
276
|
-
};
|
|
277
|
-
StartDebugActionViewItem = StartDebugActionViewItem_1 = ( __decorate([
|
|
278
|
-
( __param(3, IDebugService)),
|
|
279
|
-
( __param(4, IConfigurationService)),
|
|
280
|
-
( __param(5, ICommandService)),
|
|
281
|
-
( __param(6, IWorkspaceContextService)),
|
|
282
|
-
( __param(7, IContextViewService)),
|
|
283
|
-
( __param(8, IKeybindingService)),
|
|
284
|
-
( __param(9, IHoverService)),
|
|
285
|
-
( __param(10, IContextKeyService))
|
|
286
|
-
], StartDebugActionViewItem));
|
|
287
|
-
let FocusSessionActionViewItem = class FocusSessionActionViewItem extends SelectActionViewItem {
|
|
288
|
-
constructor(action, session, debugService, contextViewService, configurationService) {
|
|
289
|
-
super(null, action, [], -1, contextViewService, defaultSelectBoxStyles, { ariaLabel: ( localize(6278, 'Debug Session')), useCustomDrawn: !hasNativeContextMenu(configurationService) });
|
|
290
|
-
this.debugService = debugService;
|
|
291
|
-
this.configurationService = configurationService;
|
|
292
|
-
this._register(this.debugService.getViewModel().onDidFocusSession(() => {
|
|
293
|
-
const session = this.getSelectedSession();
|
|
294
|
-
if (session) {
|
|
295
|
-
const index = this.getSessions().indexOf(session);
|
|
296
|
-
this.select(index);
|
|
297
|
-
}
|
|
298
|
-
}));
|
|
299
|
-
this._register(this.debugService.onDidNewSession(session => {
|
|
300
|
-
const sessionListeners = [];
|
|
301
|
-
sessionListeners.push(session.onDidChangeName(() => this.update()));
|
|
302
|
-
sessionListeners.push(session.onDidEndAdapter(() => dispose(sessionListeners)));
|
|
303
|
-
this.update();
|
|
304
|
-
}));
|
|
305
|
-
this.getSessions().forEach(session => {
|
|
306
|
-
this._register(session.onDidChangeName(() => this.update()));
|
|
307
|
-
});
|
|
308
|
-
this._register(this.debugService.onDidEndSession(() => this.update()));
|
|
309
|
-
const selectedSession = session ? this.mapFocusedSessionToSelected(session) : undefined;
|
|
310
|
-
this.update(selectedSession);
|
|
311
|
-
}
|
|
312
|
-
getActionContext(_, index) {
|
|
313
|
-
return this.getSessions()[index];
|
|
314
|
-
}
|
|
315
|
-
update(session) {
|
|
316
|
-
if (!session) {
|
|
317
|
-
session = this.getSelectedSession();
|
|
318
|
-
}
|
|
319
|
-
const sessions = this.getSessions();
|
|
320
|
-
const names = ( sessions.map(s => {
|
|
321
|
-
const label = s.getLabel();
|
|
322
|
-
if (s.parentSession) {
|
|
323
|
-
return `\u00A0\u00A0${label}`;
|
|
324
|
-
}
|
|
325
|
-
return label;
|
|
326
|
-
}));
|
|
327
|
-
this.setOptions(( names.map((data) => ({ text: data }))), session ? sessions.indexOf(session) : undefined);
|
|
328
|
-
}
|
|
329
|
-
getSelectedSession() {
|
|
330
|
-
const session = this.debugService.getViewModel().focusedSession;
|
|
331
|
-
return session ? this.mapFocusedSessionToSelected(session) : undefined;
|
|
332
|
-
}
|
|
333
|
-
getSessions() {
|
|
334
|
-
const showSubSessions = this.configurationService.getValue('debug').showSubSessionsInToolBar;
|
|
335
|
-
const sessions = this.debugService.getModel().getSessions();
|
|
336
|
-
return showSubSessions ? sessions : sessions.filter(s => !s.parentSession);
|
|
337
|
-
}
|
|
338
|
-
mapFocusedSessionToSelected(focusedSession) {
|
|
339
|
-
const showSubSessions = this.configurationService.getValue('debug').showSubSessionsInToolBar;
|
|
340
|
-
while (focusedSession.parentSession && !showSubSessions) {
|
|
341
|
-
focusedSession = focusedSession.parentSession;
|
|
342
|
-
}
|
|
343
|
-
return focusedSession;
|
|
344
|
-
}
|
|
345
|
-
};
|
|
346
|
-
FocusSessionActionViewItem = ( __decorate([
|
|
347
|
-
( __param(2, IDebugService)),
|
|
348
|
-
( __param(3, IContextViewService)),
|
|
349
|
-
( __param(4, IConfigurationService))
|
|
350
|
-
], FocusSessionActionViewItem));
|
|
351
|
-
|
|
352
|
-
export { FocusSessionActionViewItem, StartDebugActionViewItem };
|