@theia/debug 1.29.0-next.2 → 1.29.0-next.23
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/debug-configuration-manager.d.ts +15 -7
- package/lib/browser/debug-configuration-manager.d.ts.map +1 -1
- package/lib/browser/debug-configuration-manager.js +81 -31
- package/lib/browser/debug-configuration-manager.js.map +1 -1
- package/lib/browser/debug-configuration-model.d.ts +3 -0
- package/lib/browser/debug-configuration-model.d.ts.map +1 -1
- package/lib/browser/debug-configuration-model.js +17 -10
- package/lib/browser/debug-configuration-model.js.map +1 -1
- package/lib/browser/debug-frontend-application-contribution.d.ts.map +1 -1
- package/lib/browser/debug-frontend-application-contribution.js +6 -3
- package/lib/browser/debug-frontend-application-contribution.js.map +1 -1
- package/lib/browser/debug-prefix-configuration.js +3 -3
- package/lib/browser/debug-prefix-configuration.js.map +1 -1
- package/lib/browser/debug-schema-updater.d.ts.map +1 -1
- package/lib/browser/debug-schema-updater.js +55 -4
- package/lib/browser/debug-schema-updater.js.map +1 -1
- package/lib/browser/debug-session-contribution.d.ts +2 -2
- package/lib/browser/debug-session-contribution.d.ts.map +1 -1
- package/lib/browser/debug-session-contribution.js.map +1 -1
- package/lib/browser/debug-session-manager.d.ts +10 -4
- package/lib/browser/debug-session-manager.d.ts.map +1 -1
- package/lib/browser/debug-session-manager.js +64 -7
- package/lib/browser/debug-session-manager.js.map +1 -1
- package/lib/browser/debug-session-options.d.ts +36 -6
- package/lib/browser/debug-session-options.d.ts.map +1 -1
- package/lib/browser/debug-session-options.js +53 -10
- package/lib/browser/debug-session-options.js.map +1 -1
- package/lib/browser/debug-session.d.ts +3 -3
- package/lib/browser/debug-session.d.ts.map +1 -1
- package/lib/browser/debug-session.js +7 -0
- package/lib/browser/debug-session.js.map +1 -1
- package/lib/browser/editor/debug-breakpoint-widget.d.ts +2 -0
- package/lib/browser/editor/debug-breakpoint-widget.d.ts.map +1 -1
- package/lib/browser/editor/debug-breakpoint-widget.js +5 -4
- package/lib/browser/editor/debug-breakpoint-widget.js.map +1 -1
- package/lib/browser/editor/debug-exception-widget.d.ts +2 -0
- package/lib/browser/editor/debug-exception-widget.d.ts.map +1 -1
- package/lib/browser/editor/debug-exception-widget.js +6 -5
- package/lib/browser/editor/debug-exception-widget.js.map +1 -1
- package/lib/browser/editor/debug-hover-widget.d.ts.map +1 -1
- package/lib/browser/editor/debug-hover-widget.js +26 -1
- package/lib/browser/editor/debug-hover-widget.js.map +1 -1
- package/lib/browser/view/debug-configuration-select.d.ts +4 -1
- package/lib/browser/view/debug-configuration-select.d.ts.map +1 -1
- package/lib/browser/view/debug-configuration-select.js +36 -14
- package/lib/browser/view/debug-configuration-select.js.map +1 -1
- package/lib/browser/view/debug-configuration-widget.d.ts +3 -2
- package/lib/browser/view/debug-configuration-widget.d.ts.map +1 -1
- package/lib/browser/view/debug-configuration-widget.js +5 -1
- package/lib/browser/view/debug-configuration-widget.js.map +1 -1
- package/lib/browser/view/debug-toolbar-widget.d.ts +3 -2
- package/lib/browser/view/debug-toolbar-widget.d.ts.map +1 -1
- package/lib/browser/view/debug-toolbar-widget.js +5 -1
- package/lib/browser/view/debug-toolbar-widget.js.map +1 -1
- package/lib/common/debug-compound.d.ts +15 -0
- package/lib/common/debug-compound.d.ts.map +1 -0
- package/lib/common/debug-compound.js +27 -0
- package/lib/common/debug-compound.js.map +1 -0
- package/lib/common/debug-configuration.d.ts +2 -2
- package/lib/common/debug-configuration.d.ts.map +1 -1
- package/lib/common/debug-configuration.js.map +1 -1
- package/lib/node/debug-adapter-factory.d.ts.map +1 -1
- package/lib/node/debug-adapter-factory.js +1 -2
- package/lib/node/debug-adapter-factory.js.map +1 -1
- package/package.json +14 -14
- package/src/browser/debug-configuration-manager.ts +92 -40
- package/src/browser/debug-configuration-model.ts +19 -10
- package/src/browser/debug-frontend-application-contribution.ts +10 -3
- package/src/browser/debug-prefix-configuration.ts +3 -3
- package/src/browser/debug-schema-updater.ts +56 -5
- package/src/browser/debug-session-contribution.ts +2 -2
- package/src/browser/debug-session-manager.ts +79 -8
- package/src/browser/debug-session-options.ts +72 -15
- package/src/browser/debug-session.tsx +8 -2
- package/src/browser/editor/debug-breakpoint-widget.tsx +6 -4
- package/src/browser/editor/debug-exception-widget.tsx +7 -5
- package/src/browser/editor/debug-hover-widget.ts +34 -1
- package/src/browser/view/debug-configuration-select.tsx +42 -20
- package/src/browser/view/debug-configuration-widget.tsx +7 -2
- package/src/browser/view/debug-toolbar-widget.tsx +7 -2
- package/src/common/debug-compound.ts +32 -0
- package/src/common/debug-configuration.ts +2 -2
- package/src/node/debug-adapter-factory.ts +2 -3
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// *****************************************************************************
|
|
2
|
+
// Copyright (C) 2022 EclipseSource 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 { TaskIdentifier } from '@theia/task/lib/common';
|
|
18
|
+
|
|
19
|
+
export const defaultCompound: DebugCompound = { name: 'Compound', configurations: [] };
|
|
20
|
+
|
|
21
|
+
export interface DebugCompound {
|
|
22
|
+
name: string;
|
|
23
|
+
stopAll?: boolean;
|
|
24
|
+
preLaunchTask?: string | TaskIdentifier;
|
|
25
|
+
configurations: (string | { name: string, folder: string })[];
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export namespace DebugCompound {
|
|
29
|
+
export function is(arg: unknown): arg is DebugCompound {
|
|
30
|
+
return !!arg && typeof arg === 'object' && 'name' in arg && 'configurations' in arg;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -56,7 +56,7 @@ export interface DebugConfiguration {
|
|
|
56
56
|
* The data is sent as the 'restart' attribute of the 'terminated' event.
|
|
57
57
|
* The client should leave the data intact.
|
|
58
58
|
*/
|
|
59
|
-
__restart?:
|
|
59
|
+
__restart?: boolean;
|
|
60
60
|
|
|
61
61
|
/** default: neverOpen */
|
|
62
62
|
openDebug?: 'neverOpen' | 'openOnSessionStart' | 'openOnFirstSessionStart' | 'openOnDebugBreak';
|
|
@@ -71,7 +71,7 @@ export interface DebugConfiguration {
|
|
|
71
71
|
postDebugTask?: string | TaskIdentifier;
|
|
72
72
|
}
|
|
73
73
|
export namespace DebugConfiguration {
|
|
74
|
-
export function is(arg:
|
|
74
|
+
export function is(arg: unknown): arg is DebugConfiguration {
|
|
75
75
|
return !!arg && typeof arg === 'object' && 'type' in arg && 'name' in arg && 'request' in arg;
|
|
76
76
|
}
|
|
77
77
|
}
|
|
@@ -66,9 +66,8 @@ export class LaunchBasedDebugAdapterFactory implements DebugAdapterFactory {
|
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
private childProcess(executable: DebugAdapterExecutable): RawProcess {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
!!forkOptions && !!forkOptions.modulePath;
|
|
69
|
+
const isForkOptions = (forkOptions: unknown): forkOptions is RawForkOptions =>
|
|
70
|
+
!!forkOptions && typeof forkOptions === 'object' && 'modulePath' in forkOptions;
|
|
72
71
|
|
|
73
72
|
const processOptions: RawProcessOptions | RawForkOptions = { ...executable };
|
|
74
73
|
const options: { stdio: (string | number)[], env?: object, execArgv?: string[] } = { stdio: ['pipe', 'pipe', 2] };
|