@theia/debug 1.23.0-next.4 → 1.23.0-next.46
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/lib/browser/breakpoint/breakpoint-manager.d.ts +2 -2
- package/lib/browser/breakpoint/breakpoint-manager.d.ts.map +1 -1
- package/lib/browser/breakpoint/breakpoint-manager.js +2 -2
- package/lib/browser/breakpoint/breakpoint-manager.js.map +1 -1
- package/lib/browser/console/debug-console-contribution.d.ts +2 -3
- package/lib/browser/console/debug-console-contribution.d.ts.map +1 -1
- package/lib/browser/console/debug-console-contribution.js +24 -20
- package/lib/browser/console/debug-console-contribution.js.map +1 -1
- package/lib/browser/console/debug-console-items.d.ts.map +1 -1
- package/lib/browser/console/debug-console-items.js.map +1 -1
- package/lib/browser/console/debug-console-session.d.ts +5 -1
- package/lib/browser/console/debug-console-session.d.ts.map +1 -1
- package/lib/browser/console/debug-console-session.js +37 -6
- package/lib/browser/console/debug-console-session.js.map +1 -1
- package/lib/browser/debug-configuration-manager.js +14 -14
- package/lib/browser/debug-configuration-manager.js.map +1 -1
- package/lib/browser/debug-frontend-application-contribution.d.ts +1 -2
- package/lib/browser/debug-frontend-application-contribution.d.ts.map +1 -1
- package/lib/browser/debug-frontend-application-contribution.js +28 -32
- package/lib/browser/debug-frontend-application-contribution.js.map +1 -1
- package/lib/browser/debug-frontend-module.js +5 -5
- package/lib/browser/debug-frontend-module.js.map +1 -1
- package/lib/browser/debug-keybinding-contexts.d.ts.map +1 -1
- package/lib/browser/debug-keybinding-contexts.js +5 -5
- package/lib/browser/debug-keybinding-contexts.js.map +1 -1
- package/lib/browser/debug-monaco-contribution.js +1 -1
- package/lib/browser/debug-monaco-contribution.js.map +1 -1
- package/lib/browser/debug-preferences.js +1 -1
- package/lib/browser/debug-preferences.js.map +1 -1
- package/lib/browser/debug-prefix-configuration.js +13 -13
- package/lib/browser/debug-prefix-configuration.js.map +1 -1
- package/lib/browser/debug-resource.js +2 -2
- package/lib/browser/debug-resource.js.map +1 -1
- package/lib/browser/debug-schema-updater.js +6 -6
- package/lib/browser/debug-schema-updater.js.map +1 -1
- package/lib/browser/debug-session-contribution.js +16 -16
- package/lib/browser/debug-session-contribution.js.map +1 -1
- package/lib/browser/debug-session-manager.js +16 -16
- package/lib/browser/debug-session-manager.js.map +1 -1
- package/lib/browser/debug-session.d.ts +5 -0
- package/lib/browser/debug-session.d.ts.map +1 -1
- package/lib/browser/debug-session.js +16 -1
- package/lib/browser/debug-session.js.map +1 -1
- package/lib/browser/debug-tab-bar-decorator.js +3 -3
- package/lib/browser/debug-tab-bar-decorator.js.map +1 -1
- package/lib/browser/debug-watch-manager.js +2 -2
- package/lib/browser/debug-watch-manager.js.map +1 -1
- package/lib/browser/editor/debug-breakpoint-widget.d.ts.map +1 -1
- package/lib/browser/editor/debug-breakpoint-widget.js +4 -4
- package/lib/browser/editor/debug-breakpoint-widget.js.map +1 -1
- package/lib/browser/editor/debug-editor-model.js +12 -12
- package/lib/browser/editor/debug-editor-model.js.map +1 -1
- package/lib/browser/editor/debug-editor-service.js +7 -7
- package/lib/browser/editor/debug-editor-service.js.map +1 -1
- package/lib/browser/editor/debug-exception-widget.d.ts.map +1 -1
- package/lib/browser/editor/debug-exception-widget.js +3 -3
- package/lib/browser/editor/debug-exception-widget.js.map +1 -1
- package/lib/browser/editor/debug-expression-provider.js +1 -1
- package/lib/browser/editor/debug-expression-provider.js.map +1 -1
- package/lib/browser/editor/debug-hover-source.js +2 -2
- package/lib/browser/editor/debug-hover-source.js.map +1 -1
- package/lib/browser/editor/debug-hover-widget.d.ts +0 -2
- package/lib/browser/editor/debug-hover-widget.d.ts.map +1 -1
- package/lib/browser/editor/debug-hover-widget.js +6 -7
- package/lib/browser/editor/debug-hover-widget.js.map +1 -1
- package/lib/browser/editor/debug-inline-value-decorator.js +3 -3
- package/lib/browser/editor/debug-inline-value-decorator.js.map +1 -1
- package/lib/browser/model/debug-breakpoint.d.ts.map +1 -1
- package/lib/browser/model/debug-function-breakpoint.d.ts.map +1 -1
- package/lib/browser/model/debug-function-breakpoint.js.map +1 -1
- package/lib/browser/model/debug-source-breakpoint.d.ts +1 -1
- package/lib/browser/model/debug-source-breakpoint.d.ts.map +1 -1
- package/lib/browser/model/debug-source-breakpoint.js.map +1 -1
- package/lib/browser/view/debug-action.d.ts.map +1 -1
- package/lib/browser/view/debug-action.js +1 -1
- package/lib/browser/view/debug-action.js.map +1 -1
- package/lib/browser/view/debug-breakpoints-source.js +4 -4
- package/lib/browser/view/debug-breakpoints-source.js.map +1 -1
- package/lib/browser/view/debug-breakpoints-widget.d.ts.map +1 -1
- package/lib/browser/view/debug-breakpoints-widget.js +5 -5
- package/lib/browser/view/debug-breakpoints-widget.js.map +1 -1
- package/lib/browser/view/debug-configuration-widget.d.ts.map +1 -1
- package/lib/browser/view/debug-configuration-widget.js +8 -8
- package/lib/browser/view/debug-configuration-widget.js.map +1 -1
- package/lib/browser/view/debug-session-widget.d.ts.map +1 -1
- package/lib/browser/view/debug-session-widget.js +12 -12
- package/lib/browser/view/debug-session-widget.js.map +1 -1
- package/lib/browser/view/debug-stack-frames-source.js +3 -3
- package/lib/browser/view/debug-stack-frames-source.js.map +1 -1
- package/lib/browser/view/debug-stack-frames-widget.d.ts.map +1 -1
- package/lib/browser/view/debug-stack-frames-widget.js +5 -5
- package/lib/browser/view/debug-stack-frames-widget.js.map +1 -1
- package/lib/browser/view/debug-threads-source.js +3 -3
- package/lib/browser/view/debug-threads-source.js.map +1 -1
- package/lib/browser/view/debug-threads-widget.d.ts.map +1 -1
- package/lib/browser/view/debug-threads-widget.js +5 -5
- package/lib/browser/view/debug-threads-widget.js.map +1 -1
- package/lib/browser/view/debug-toolbar-widget.js +3 -3
- package/lib/browser/view/debug-toolbar-widget.js.map +1 -1
- package/lib/browser/view/debug-variables-source.js +3 -3
- package/lib/browser/view/debug-variables-source.js.map +1 -1
- package/lib/browser/view/debug-variables-widget.d.ts.map +1 -1
- package/lib/browser/view/debug-variables-widget.js +4 -4
- package/lib/browser/view/debug-variables-widget.js.map +1 -1
- package/lib/browser/view/debug-view-model.js +6 -6
- package/lib/browser/view/debug-view-model.js.map +1 -1
- package/lib/browser/view/debug-watch-expression.d.ts.map +1 -1
- package/lib/browser/view/debug-watch-expression.js.map +1 -1
- package/lib/browser/view/debug-watch-source.js +3 -3
- package/lib/browser/view/debug-watch-source.js.map +1 -1
- package/lib/browser/view/debug-watch-widget.d.ts.map +1 -1
- package/lib/browser/view/debug-watch-widget.js +4 -4
- package/lib/browser/view/debug-watch-widget.js.map +1 -1
- package/lib/browser/view/debug-widget.d.ts.map +1 -1
- package/lib/browser/view/debug-widget.js +8 -8
- package/lib/browser/view/debug-widget.js.map +1 -1
- package/lib/common/debug-common.js +1 -1
- package/lib/node/debug-adapter-contribution-registry.js +3 -3
- package/lib/node/debug-adapter-contribution-registry.js.map +1 -1
- package/lib/node/debug-adapter-factory.js +4 -4
- package/lib/node/debug-adapter-factory.js.map +1 -1
- package/lib/node/debug-adapter-session-manager.js +3 -3
- package/lib/node/debug-adapter-session-manager.js.map +1 -1
- package/lib/node/debug-adapter-session.js.map +1 -1
- package/lib/node/debug-backend-module.js +1 -1
- package/lib/node/debug-backend-module.js.map +1 -1
- package/lib/node/debug-service-impl.js +3 -3
- package/lib/node/debug-service-impl.js.map +1 -1
- package/lib/node/stream-debug-adapter.js.map +1 -1
- package/lib/node/vscode/vscode-debug-adapter-contribution.d.ts.map +1 -1
- package/lib/node/vscode/vscode-debug-adapter-contribution.js +5 -4
- package/lib/node/vscode/vscode-debug-adapter-contribution.js.map +1 -1
- package/package.json +14 -16
- package/src/browser/breakpoint/breakpoint-manager.ts +1 -1
- package/src/browser/console/debug-console-contribution.tsx +17 -14
- package/src/browser/console/debug-console-items.tsx +4 -4
- package/src/browser/console/debug-console-session.ts +37 -6
- package/src/browser/debug-frontend-application-contribution.ts +3 -6
- package/src/browser/debug-keybinding-contexts.ts +2 -2
- package/src/browser/debug-session.tsx +16 -1
- package/src/browser/editor/debug-exception-widget.tsx +1 -1
- package/src/browser/editor/debug-hover-widget.ts +6 -8
- package/src/browser/model/debug-function-breakpoint.tsx +2 -2
- package/src/browser/model/debug-source-breakpoint.tsx +3 -3
- package/src/browser/style/index.css +1 -1
- package/src/browser/view/debug-action.tsx +1 -1
- package/src/browser/view/debug-breakpoints-widget.ts +3 -3
- package/src/browser/view/debug-session-widget.ts +2 -2
- package/src/browser/view/debug-stack-frames-widget.ts +5 -5
- package/src/browser/view/debug-threads-widget.ts +4 -4
- package/src/browser/view/debug-variables-widget.ts +2 -2
- package/src/browser/view/debug-watch-expression.tsx +3 -3
- package/src/browser/view/debug-watch-widget.ts +2 -2
- package/src/browser/view/debug-widget.ts +1 -1
- package/src/node/vscode/vscode-debug-adapter-contribution.ts +2 -0
- package/lib/node/inline-debug-adapter.d.ts +0 -34
- package/lib/node/inline-debug-adapter.d.ts.map +0 -1
- package/lib/node/inline-debug-adapter.js +0 -45
- package/lib/node/inline-debug-adapter.js.map +0 -1
- package/src/node/inline-debug-adapter.ts +0 -47
|
@@ -38,7 +38,7 @@ export class DebugSourceBreakpoint extends DebugBreakpoint<SourceBreakpoint> imp
|
|
|
38
38
|
this.origins = [origin];
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
update(data: Partial<DebugSourceBreakpointData>): void {
|
|
41
|
+
override update(data: Partial<DebugSourceBreakpointData>): void {
|
|
42
42
|
super.update(data);
|
|
43
43
|
}
|
|
44
44
|
|
|
@@ -140,7 +140,7 @@ export class DebugSourceBreakpoint extends DebugBreakpoint<SourceBreakpoint> imp
|
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
142
|
|
|
143
|
-
protected
|
|
143
|
+
protected override setBreakpointEnabled = (event: React.ChangeEvent<HTMLInputElement>) => {
|
|
144
144
|
this.setEnabled(event.target.checked);
|
|
145
145
|
};
|
|
146
146
|
|
|
@@ -158,7 +158,7 @@ export class DebugSourceBreakpoint extends DebugBreakpoint<SourceBreakpoint> imp
|
|
|
158
158
|
return this.line + (typeof this.column === 'number' ? ':' + this.column : '');
|
|
159
159
|
}
|
|
160
160
|
|
|
161
|
-
doGetDecoration(messages: string[] = []): DebugBreakpointDecoration {
|
|
161
|
+
override doGetDecoration(messages: string[] = []): DebugBreakpointDecoration {
|
|
162
162
|
if (this.logMessage || this.condition || this.hitCondition) {
|
|
163
163
|
const { session } = this;
|
|
164
164
|
if (this.logMessage) {
|
|
@@ -286,7 +286,7 @@
|
|
|
286
286
|
background: url('breakpoint-log.svg') center center no-repeat;
|
|
287
287
|
}
|
|
288
288
|
.theia-debug-logpoint-disabled,
|
|
289
|
-
.monaco-editor .theia-debug-breakpoint-column.theia-debug-logpoint-disabled-
|
|
289
|
+
.monaco-editor .theia-debug-breakpoint-column.theia-debug-logpoint-disabled-column {
|
|
290
290
|
background: url('breakpoint-log-disabled.svg') center center no-repeat;
|
|
291
291
|
}
|
|
292
292
|
.theia-debug-logpoint-unverified,
|
|
@@ -19,7 +19,7 @@ import { codiconArray, DISABLED_CLASS } from '@theia/core/lib/browser';
|
|
|
19
19
|
|
|
20
20
|
export class DebugAction extends React.Component<DebugAction.Props> {
|
|
21
21
|
|
|
22
|
-
render(): React.ReactNode {
|
|
22
|
+
override render(): React.ReactNode {
|
|
23
23
|
const { enabled, label, iconClass } = this.props;
|
|
24
24
|
const classNames = ['debug-action', ...codiconArray(iconClass, true)];
|
|
25
25
|
if (enabled === false) {
|
|
@@ -30,7 +30,7 @@ export class DebugBreakpointsWidget extends SourceTreeWidget {
|
|
|
30
30
|
static EDIT_MENU = [...DebugBreakpointsWidget.CONTEXT_MENU, 'a_edit'];
|
|
31
31
|
static REMOVE_MENU = [...DebugBreakpointsWidget.CONTEXT_MENU, 'b_remove'];
|
|
32
32
|
static ENABLE_MENU = [...DebugBreakpointsWidget.CONTEXT_MENU, 'c_enable'];
|
|
33
|
-
static createContainer(parent: interfaces.Container): Container {
|
|
33
|
+
static override createContainer(parent: interfaces.Container): Container {
|
|
34
34
|
const child = SourceTreeWidget.createContainer(parent, {
|
|
35
35
|
contextMenuPath: DebugBreakpointsWidget.CONTEXT_MENU,
|
|
36
36
|
virtualized: false,
|
|
@@ -55,7 +55,7 @@ export class DebugBreakpointsWidget extends SourceTreeWidget {
|
|
|
55
55
|
protected readonly breakpointsSource: DebugBreakpointsSource;
|
|
56
56
|
|
|
57
57
|
@postConstruct()
|
|
58
|
-
protected init(): void {
|
|
58
|
+
protected override init(): void {
|
|
59
59
|
super.init();
|
|
60
60
|
this.id = 'debug:breakpoints:' + this.viewModel.id;
|
|
61
61
|
this.title.label = nls.localizeByDefault('Breakpoints');
|
|
@@ -63,7 +63,7 @@ export class DebugBreakpointsWidget extends SourceTreeWidget {
|
|
|
63
63
|
this.source = this.breakpointsSource;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
protected getDefaultNodeStyle(node: TreeNode, props: NodeProps): React.CSSProperties | undefined {
|
|
66
|
+
protected override getDefaultNodeStyle(node: TreeNode, props: NodeProps): React.CSSProperties | undefined {
|
|
67
67
|
return undefined;
|
|
68
68
|
}
|
|
69
69
|
|
|
@@ -110,12 +110,12 @@ export class DebugSessionWidget extends BaseWidget implements StatefulWidget, Ap
|
|
|
110
110
|
layout.addWidget(this.viewContainer);
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
protected onActivateRequest(msg: Message): void {
|
|
113
|
+
protected override onActivateRequest(msg: Message): void {
|
|
114
114
|
super.onActivateRequest(msg);
|
|
115
115
|
this.toolbar.focus();
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
-
protected onAfterShow(msg: Message): void {
|
|
118
|
+
protected override onAfterShow(msg: Message): void {
|
|
119
119
|
super.onAfterShow(msg);
|
|
120
120
|
this.getTrackableWidgets().forEach(w => w.update());
|
|
121
121
|
}
|
|
@@ -28,7 +28,7 @@ import { nls } from '@theia/core/lib/common/nls';
|
|
|
28
28
|
export class DebugStackFramesWidget extends SourceTreeWidget {
|
|
29
29
|
|
|
30
30
|
static CONTEXT_MENU: MenuPath = ['debug-frames-context-menu'];
|
|
31
|
-
static createContainer(parent: interfaces.Container): Container {
|
|
31
|
+
static override createContainer(parent: interfaces.Container): Container {
|
|
32
32
|
const child = SourceTreeWidget.createContainer(parent, {
|
|
33
33
|
contextMenuPath: DebugStackFramesWidget.CONTEXT_MENU,
|
|
34
34
|
virtualized: false,
|
|
@@ -53,7 +53,7 @@ export class DebugStackFramesWidget extends SourceTreeWidget {
|
|
|
53
53
|
protected readonly debugCallStackItemTypeKey: DebugCallStackItemTypeKey;
|
|
54
54
|
|
|
55
55
|
@postConstruct()
|
|
56
|
-
protected init(): void {
|
|
56
|
+
protected override init(): void {
|
|
57
57
|
super.init();
|
|
58
58
|
this.id = 'debug:frames:' + this.viewModel.id;
|
|
59
59
|
this.title.label = nls.localizeByDefault('Call Stack');
|
|
@@ -101,7 +101,7 @@ export class DebugStackFramesWidget extends SourceTreeWidget {
|
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
protected toContextMenuArgs(node: SelectableTreeNode): [string | number] | undefined {
|
|
104
|
+
protected override toContextMenuArgs(node: SelectableTreeNode): [string | number] | undefined {
|
|
105
105
|
if (TreeElementNode.is(node)) {
|
|
106
106
|
if (node.element instanceof DebugStackFrame) {
|
|
107
107
|
const source = node.element.source;
|
|
@@ -120,14 +120,14 @@ export class DebugStackFramesWidget extends SourceTreeWidget {
|
|
|
120
120
|
return undefined;
|
|
121
121
|
}
|
|
122
122
|
|
|
123
|
-
protected handleClickEvent(node: TreeNode | undefined, event: React.MouseEvent<HTMLElement>): void {
|
|
123
|
+
protected override handleClickEvent(node: TreeNode | undefined, event: React.MouseEvent<HTMLElement>): void {
|
|
124
124
|
if (TreeElementNode.is(node) && node.element instanceof LoadMoreStackFrames) {
|
|
125
125
|
node.element.open();
|
|
126
126
|
}
|
|
127
127
|
super.handleClickEvent(node, event);
|
|
128
128
|
}
|
|
129
129
|
|
|
130
|
-
protected getDefaultNodeStyle(node: TreeNode, props: NodeProps): React.CSSProperties | undefined {
|
|
130
|
+
protected override getDefaultNodeStyle(node: TreeNode, props: NodeProps): React.CSSProperties | undefined {
|
|
131
131
|
return undefined;
|
|
132
132
|
}
|
|
133
133
|
|
|
@@ -32,7 +32,7 @@ export class DebugThreadsWidget extends SourceTreeWidget {
|
|
|
32
32
|
static CONTROL_MENU = [...DebugThreadsWidget.CONTEXT_MENU, 'a_control'];
|
|
33
33
|
static TERMINATE_MENU = [...DebugThreadsWidget.CONTEXT_MENU, 'b_terminate'];
|
|
34
34
|
static OPEN_MENU = [...DebugThreadsWidget.CONTEXT_MENU, 'c_open'];
|
|
35
|
-
static createContainer(parent: interfaces.Container): Container {
|
|
35
|
+
static override createContainer(parent: interfaces.Container): Container {
|
|
36
36
|
const child = SourceTreeWidget.createContainer(parent, {
|
|
37
37
|
contextMenuPath: DebugThreadsWidget.CONTEXT_MENU,
|
|
38
38
|
virtualized: false,
|
|
@@ -57,7 +57,7 @@ export class DebugThreadsWidget extends SourceTreeWidget {
|
|
|
57
57
|
protected readonly debugCallStackItemTypeKey: DebugCallStackItemTypeKey;
|
|
58
58
|
|
|
59
59
|
@postConstruct()
|
|
60
|
-
protected init(): void {
|
|
60
|
+
protected override init(): void {
|
|
61
61
|
super.init();
|
|
62
62
|
this.id = 'debug:threads:' + this.viewModel.id;
|
|
63
63
|
this.title.label = nls.localize('theia/debug/threads', 'Threads');
|
|
@@ -107,14 +107,14 @@ export class DebugThreadsWidget extends SourceTreeWidget {
|
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
109
|
|
|
110
|
-
protected toContextMenuArgs(node: SelectableTreeNode): [number] | undefined {
|
|
110
|
+
protected override toContextMenuArgs(node: SelectableTreeNode): [number] | undefined {
|
|
111
111
|
if (TreeElementNode.is(node) && node.element instanceof DebugThread) {
|
|
112
112
|
return [node.element.raw.id];
|
|
113
113
|
}
|
|
114
114
|
return undefined;
|
|
115
115
|
}
|
|
116
116
|
|
|
117
|
-
protected getDefaultNodeStyle(node: TreeNode, props: NodeProps): React.CSSProperties | undefined {
|
|
117
|
+
protected override getDefaultNodeStyle(node: TreeNode, props: NodeProps): React.CSSProperties | undefined {
|
|
118
118
|
if (this.threads.multiSession) {
|
|
119
119
|
return super.getDefaultNodeStyle(node, props);
|
|
120
120
|
}
|
|
@@ -27,7 +27,7 @@ export class DebugVariablesWidget extends SourceTreeWidget {
|
|
|
27
27
|
static CONTEXT_MENU: MenuPath = ['debug-variables-context-menu'];
|
|
28
28
|
static EDIT_MENU: MenuPath = [...DebugVariablesWidget.CONTEXT_MENU, 'a_edit'];
|
|
29
29
|
static WATCH_MENU: MenuPath = [...DebugVariablesWidget.CONTEXT_MENU, 'b_watch'];
|
|
30
|
-
static createContainer(parent: interfaces.Container): Container {
|
|
30
|
+
static override createContainer(parent: interfaces.Container): Container {
|
|
31
31
|
const child = SourceTreeWidget.createContainer(parent, {
|
|
32
32
|
contextMenuPath: DebugVariablesWidget.CONTEXT_MENU,
|
|
33
33
|
virtualized: false,
|
|
@@ -49,7 +49,7 @@ export class DebugVariablesWidget extends SourceTreeWidget {
|
|
|
49
49
|
protected readonly variables: DebugVariablesSource;
|
|
50
50
|
|
|
51
51
|
@postConstruct()
|
|
52
|
-
protected init(): void {
|
|
52
|
+
protected override init(): void {
|
|
53
53
|
super.init();
|
|
54
54
|
this.id = 'debug:variables:' + this.viewModel.id;
|
|
55
55
|
this.title.label = nls.localizeByDefault('Variables');
|
|
@@ -33,17 +33,17 @@ export class DebugWatchExpression extends ExpressionItem {
|
|
|
33
33
|
this.id = options.id;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
async evaluate(): Promise<void> {
|
|
36
|
+
override async evaluate(): Promise<void> {
|
|
37
37
|
await super.evaluate('watch');
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
protected setResult(body?: DebugProtocol.EvaluateResponse['body']): void {
|
|
40
|
+
protected override setResult(body?: DebugProtocol.EvaluateResponse['body']): void {
|
|
41
41
|
// overridden to ignore error
|
|
42
42
|
super.setResult(body);
|
|
43
43
|
this.options.onDidChange();
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
render(): React.ReactNode {
|
|
46
|
+
override render(): React.ReactNode {
|
|
47
47
|
return <div className='theia-debug-console-variable'>
|
|
48
48
|
<span title={this.type || this._expression} className='name'>{this._expression}: </span>
|
|
49
49
|
<span title={this._value} ref={this.setValueRef}>{this._value}</span>
|
|
@@ -27,7 +27,7 @@ export class DebugWatchWidget extends SourceTreeWidget {
|
|
|
27
27
|
static CONTEXT_MENU: MenuPath = ['debug-watch-context-menu'];
|
|
28
28
|
static EDIT_MENU = [...DebugWatchWidget.CONTEXT_MENU, 'a_edit'];
|
|
29
29
|
static REMOVE_MENU = [...DebugWatchWidget.CONTEXT_MENU, 'b_remove'];
|
|
30
|
-
static createContainer(parent: interfaces.Container): Container {
|
|
30
|
+
static override createContainer(parent: interfaces.Container): Container {
|
|
31
31
|
const child = SourceTreeWidget.createContainer(parent, {
|
|
32
32
|
contextMenuPath: DebugWatchWidget.CONTEXT_MENU,
|
|
33
33
|
virtualized: false,
|
|
@@ -49,7 +49,7 @@ export class DebugWatchWidget extends SourceTreeWidget {
|
|
|
49
49
|
protected readonly variables: DebugWatchSource;
|
|
50
50
|
|
|
51
51
|
@postConstruct()
|
|
52
|
-
protected init(): void {
|
|
52
|
+
protected override init(): void {
|
|
53
53
|
super.init();
|
|
54
54
|
this.id = 'debug:watch:' + this.viewModel.id;
|
|
55
55
|
this.title.label = nls.localizeByDefault('Watch');
|
|
@@ -81,7 +81,7 @@ export class DebugWidget extends BaseWidget implements StatefulWidget, Applicati
|
|
|
81
81
|
this.toDispose.push(this.progressBarFactory({ container: this.node, insertMode: 'prepend', locationId: 'debug' }));
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
protected onActivateRequest(msg: Message): void {
|
|
84
|
+
protected override onActivateRequest(msg: Message): void {
|
|
85
85
|
super.onActivateRequest(msg);
|
|
86
86
|
this.toolbar.focus();
|
|
87
87
|
}
|
|
@@ -14,6 +14,8 @@
|
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
16
|
|
|
17
|
+
/* eslint-disable @theia/localization-check */
|
|
18
|
+
|
|
17
19
|
import * as fs from '@theia/core/shared/fs-extra';
|
|
18
20
|
import * as path from 'path';
|
|
19
21
|
import { DebugAdapterExecutable, DebugAdapterContribution } from '../debug-model';
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/********************************************************************************
|
|
2
|
-
* Copyright (C) 2021 Red Hat, Inc. and others.
|
|
3
|
-
*
|
|
4
|
-
* This program and the accompanying materials are made available under the
|
|
5
|
-
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
-
* http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
-
*
|
|
8
|
-
* This Source Code may also be made available under the following Secondary
|
|
9
|
-
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
-
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
-
* with the GNU Classpath Exception which is available at
|
|
12
|
-
* https://www.gnu.org/software/classpath/license.html.
|
|
13
|
-
*
|
|
14
|
-
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
|
-
********************************************************************************/
|
|
16
|
-
import { Event } from '@theia/core/lib/common/event';
|
|
17
|
-
import { DebugAdapter } from './debug-model';
|
|
18
|
-
import * as theia from '@theia/plugin';
|
|
19
|
-
/**
|
|
20
|
-
* A debug adapter for using the inline implementation from a plugin.
|
|
21
|
-
*/
|
|
22
|
-
export declare class InlineDebugAdapter implements DebugAdapter {
|
|
23
|
-
private debugAdapter;
|
|
24
|
-
private messageReceivedEmitter;
|
|
25
|
-
onMessageReceived: Event<string>;
|
|
26
|
-
onError: Event<Error>;
|
|
27
|
-
private closeEmitter;
|
|
28
|
-
onClose: Event<void>;
|
|
29
|
-
constructor(debugAdapter: theia.DebugAdapter);
|
|
30
|
-
start(): Promise<void>;
|
|
31
|
-
send(message: string): void;
|
|
32
|
-
stop(): Promise<void>;
|
|
33
|
-
}
|
|
34
|
-
//# sourceMappingURL=inline-debug-adapter.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"inline-debug-adapter.d.ts","sourceRoot":"","sources":["../../src/node/inline-debug-adapter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAElF,OAAO,EAAW,KAAK,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,KAAK,KAAK,MAAM,eAAe,CAAC;AAEvC;;GAEG;AACH,qBAAa,kBAAmB,YAAW,YAAY;IAOvC,OAAO,CAAC,YAAY;IANhC,OAAO,CAAC,sBAAsB,CAAyB;IACvD,iBAAiB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAqC;IACrE,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,CAAc;IACnC,OAAO,CAAC,YAAY,CAAuB;IAC3C,OAAO,EAAE,KAAK,CAAC,IAAI,CAAC,CAA2B;gBAE3B,YAAY,EAAE,KAAK,CAAC,YAAY;IAM9C,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAG5B,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAIrB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAG9B"}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/********************************************************************************
|
|
3
|
-
* Copyright (C) 2021 Red Hat, Inc. and others.
|
|
4
|
-
*
|
|
5
|
-
* This program and the accompanying materials are made available under the
|
|
6
|
-
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
-
* http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
-
*
|
|
9
|
-
* This Source Code may also be made available under the following Secondary
|
|
10
|
-
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
-
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
-
* with the GNU Classpath Exception which is available at
|
|
13
|
-
* https://www.gnu.org/software/classpath/license.html.
|
|
14
|
-
*
|
|
15
|
-
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
16
|
-
********************************************************************************/
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.InlineDebugAdapter = void 0;
|
|
19
|
-
const event_1 = require("@theia/core/lib/common/event");
|
|
20
|
-
/**
|
|
21
|
-
* A debug adapter for using the inline implementation from a plugin.
|
|
22
|
-
*/
|
|
23
|
-
class InlineDebugAdapter {
|
|
24
|
-
constructor(debugAdapter) {
|
|
25
|
-
this.debugAdapter = debugAdapter;
|
|
26
|
-
this.messageReceivedEmitter = new event_1.Emitter();
|
|
27
|
-
this.onMessageReceived = this.messageReceivedEmitter.event;
|
|
28
|
-
this.onError = event_1.Event.None;
|
|
29
|
-
this.closeEmitter = new event_1.Emitter();
|
|
30
|
-
this.onClose = this.closeEmitter.event;
|
|
31
|
-
this.debugAdapter.onDidSendMessage(msg => {
|
|
32
|
-
this.messageReceivedEmitter.fire(JSON.stringify(msg));
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
async start() {
|
|
36
|
-
}
|
|
37
|
-
send(message) {
|
|
38
|
-
this.debugAdapter.handleMessage(JSON.parse(message));
|
|
39
|
-
}
|
|
40
|
-
async stop() {
|
|
41
|
-
this.debugAdapter.dispose();
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
exports.InlineDebugAdapter = InlineDebugAdapter;
|
|
45
|
-
//# sourceMappingURL=inline-debug-adapter.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"inline-debug-adapter.js","sourceRoot":"","sources":["../../src/node/inline-debug-adapter.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;AAElF,wDAA8D;AAI9D;;GAEG;AACH,MAAa,kBAAkB;IAO3B,YAAoB,YAAgC;QAAhC,iBAAY,GAAZ,YAAY,CAAoB;QAN5C,2BAAsB,GAAG,IAAI,eAAO,EAAU,CAAC;QACvD,sBAAiB,GAAkB,IAAI,CAAC,sBAAsB,CAAC,KAAK,CAAC;QACrE,YAAO,GAAiB,aAAK,CAAC,IAAI,CAAC;QAC3B,iBAAY,GAAG,IAAI,eAAO,EAAQ,CAAC;QAC3C,YAAO,GAAgB,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC;QAG3C,IAAI,CAAC,YAAY,CAAC,gBAAgB,CAAC,GAAG,CAAC,EAAE;YACrC,IAAI,CAAC,sBAAsB,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;QAC1D,CAAC,CAAC,CAAC;IACP,CAAC;IAED,KAAK,CAAC,KAAK;IACX,CAAC;IAED,IAAI,CAAC,OAAe;QAChB,IAAI,CAAC,YAAY,CAAC,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;IACzD,CAAC;IAED,KAAK,CAAC,IAAI;QACN,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,CAAC;IAChC,CAAC;CACJ;AAvBD,gDAuBC"}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
/********************************************************************************
|
|
2
|
-
* Copyright (C) 2021 Red Hat, Inc. and others.
|
|
3
|
-
*
|
|
4
|
-
* This program and the accompanying materials are made available under the
|
|
5
|
-
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
-
* http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
-
*
|
|
8
|
-
* This Source Code may also be made available under the following Secondary
|
|
9
|
-
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
-
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
-
* with the GNU Classpath Exception which is available at
|
|
12
|
-
* https://www.gnu.org/software/classpath/license.html.
|
|
13
|
-
*
|
|
14
|
-
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
|
-
********************************************************************************/
|
|
16
|
-
|
|
17
|
-
import { Emitter, Event } from '@theia/core/lib/common/event';
|
|
18
|
-
import { DebugAdapter } from './debug-model';
|
|
19
|
-
import * as theia from '@theia/plugin';
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* A debug adapter for using the inline implementation from a plugin.
|
|
23
|
-
*/
|
|
24
|
-
export class InlineDebugAdapter implements DebugAdapter {
|
|
25
|
-
private messageReceivedEmitter = new Emitter<string>();
|
|
26
|
-
onMessageReceived: Event<string> = this.messageReceivedEmitter.event;
|
|
27
|
-
onError: Event<Error> = Event.None;
|
|
28
|
-
private closeEmitter = new Emitter<void>();
|
|
29
|
-
onClose: Event<void> = this.closeEmitter.event;
|
|
30
|
-
|
|
31
|
-
constructor(private debugAdapter: theia.DebugAdapter) {
|
|
32
|
-
this.debugAdapter.onDidSendMessage(msg => {
|
|
33
|
-
this.messageReceivedEmitter.fire(JSON.stringify(msg));
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
async start(): Promise<void> {
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
send(message: string): void {
|
|
41
|
-
this.debugAdapter.handleMessage(JSON.parse(message));
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
async stop(): Promise<void> {
|
|
45
|
-
this.debugAdapter.dispose();
|
|
46
|
-
}
|
|
47
|
-
}
|