@opensumi/ide-debug 3.5.1-next-1730948411.0 → 3.5.1-next-1731391210.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/lib/browser/components/floating-click-widget/index.d.ts +1 -3
- package/lib/browser/components/floating-click-widget/index.d.ts.map +1 -1
- package/lib/browser/components/floating-click-widget/index.js +6 -5
- package/lib/browser/components/floating-click-widget/index.js.map +1 -1
- package/lib/browser/debug-contribution.js +2 -2
- package/lib/browser/debug-contribution.js.map +1 -1
- package/lib/browser/editor/debug-hover.view.d.ts +1 -3
- package/lib/browser/editor/debug-hover.view.d.ts.map +1 -1
- package/lib/browser/editor/debug-hover.view.js +3 -3
- package/lib/browser/editor/debug-hover.view.js.map +1 -1
- package/lib/browser/index.d.ts +1 -3
- package/lib/browser/index.d.ts.map +1 -1
- package/lib/browser/view/breakpoints/debug-breakpoints.service.d.ts +2 -2
- package/lib/browser/view/breakpoints/debug-breakpoints.service.d.ts.map +1 -1
- package/lib/browser/view/breakpoints/debug-breakpoints.service.js +13 -40
- package/lib/browser/view/breakpoints/debug-breakpoints.service.js.map +1 -1
- package/lib/browser/view/breakpoints/debug-breakpoints.view.d.ts +2 -4
- package/lib/browser/view/breakpoints/debug-breakpoints.view.d.ts.map +1 -1
- package/lib/browser/view/breakpoints/debug-breakpoints.view.js +9 -7
- package/lib/browser/view/breakpoints/debug-breakpoints.view.js.map +1 -1
- package/lib/browser/view/configuration/debug-configuration.service.d.ts +6 -6
- package/lib/browser/view/configuration/debug-configuration.service.d.ts.map +1 -1
- package/lib/browser/view/configuration/debug-configuration.service.js +24 -71
- package/lib/browser/view/configuration/debug-configuration.service.js.map +1 -1
- package/lib/browser/view/configuration/debug-configuration.view.d.ts +2 -6
- package/lib/browser/view/configuration/debug-configuration.view.d.ts.map +1 -1
- package/lib/browser/view/configuration/debug-configuration.view.js +15 -8
- package/lib/browser/view/configuration/debug-configuration.view.js.map +1 -1
- package/lib/browser/view/configuration/debug-toolbar.service.d.ts +3 -4
- package/lib/browser/view/configuration/debug-toolbar.service.d.ts.map +1 -1
- package/lib/browser/view/configuration/debug-toolbar.service.js +17 -44
- package/lib/browser/view/configuration/debug-toolbar.service.js.map +1 -1
- package/lib/browser/view/configuration/debug-toolbar.view.d.ts +2 -6
- package/lib/browser/view/configuration/debug-toolbar.view.d.ts.map +1 -1
- package/lib/browser/view/configuration/debug-toolbar.view.js +69 -82
- package/lib/browser/view/configuration/debug-toolbar.view.js.map +1 -1
- package/lib/browser/view/console/debug-console-filter.view.d.ts +1 -3
- package/lib/browser/view/console/debug-console-filter.view.d.ts.map +1 -1
- package/lib/browser/view/console/debug-console-filter.view.js +3 -3
- package/lib/browser/view/console/debug-console-filter.view.js.map +1 -1
- package/lib/browser/view/console/debug-console.contribution.d.ts.map +1 -1
- package/lib/browser/view/console/debug-console.contribution.js +1 -0
- package/lib/browser/view/console/debug-console.contribution.js.map +1 -1
- package/lib/browser/view/console/debug-console.view.d.ts +2 -4
- package/lib/browser/view/console/debug-console.view.d.ts.map +1 -1
- package/lib/browser/view/console/debug-console.view.js +3 -3
- package/lib/browser/view/console/debug-console.view.js.map +1 -1
- package/lib/browser/view/frames/debug-call-stack-frame.view.d.ts +1 -3
- package/lib/browser/view/frames/debug-call-stack-frame.view.d.ts.map +1 -1
- package/lib/browser/view/frames/debug-call-stack-frame.view.js +3 -3
- package/lib/browser/view/frames/debug-call-stack-frame.view.js.map +1 -1
- package/lib/browser/view/frames/debug-call-stack.view.d.ts +2 -4
- package/lib/browser/view/frames/debug-call-stack.view.d.ts.map +1 -1
- package/lib/browser/view/frames/debug-call-stack.view.js +3 -3
- package/lib/browser/view/frames/debug-call-stack.view.js.map +1 -1
- package/lib/browser/view/variables/debug-variables.view.d.ts +2 -4
- package/lib/browser/view/variables/debug-variables.view.d.ts.map +1 -1
- package/lib/browser/view/variables/debug-variables.view.js +6 -6
- package/lib/browser/view/variables/debug-variables.view.js.map +1 -1
- package/lib/browser/view/watch/debug-watch.view.d.ts +2 -4
- package/lib/browser/view/watch/debug-watch.view.d.ts.map +1 -1
- package/lib/browser/view/watch/debug-watch.view.js +5 -5
- package/lib/browser/view/watch/debug-watch.view.js.map +1 -1
- package/package.json +25 -25
- package/src/browser/components/floating-click-widget/index.tsx +7 -6
- package/src/browser/debug-contribution.ts +2 -2
- package/src/browser/editor/debug-hover.view.tsx +3 -4
- package/src/browser/view/breakpoints/debug-breakpoints.service.ts +13 -18
- package/src/browser/view/breakpoints/debug-breakpoints.view.tsx +9 -7
- package/src/browser/view/configuration/debug-configuration.service.ts +24 -35
- package/src/browser/view/configuration/debug-configuration.view.tsx +21 -15
- package/src/browser/view/configuration/debug-toolbar.service.ts +21 -28
- package/src/browser/view/configuration/debug-toolbar.view.tsx +98 -91
- package/src/browser/view/console/debug-console-filter.view.tsx +2 -3
- package/src/browser/view/console/debug-console.contribution.ts +1 -0
- package/src/browser/view/console/debug-console.view.tsx +2 -3
- package/src/browser/view/frames/debug-call-stack-frame.view.tsx +2 -3
- package/src/browser/view/frames/debug-call-stack.view.tsx +2 -3
- package/src/browser/view/variables/debug-variables.view.tsx +5 -8
- package/src/browser/view/watch/debug-watch.view.tsx +5 -8
|
@@ -158,6 +158,7 @@ export class DebugConsoleContribution
|
|
|
158
158
|
command: DEBUG_COMMANDS.CONSOLE_ENTER_EVALUATE.id,
|
|
159
159
|
keybinding: 'enter',
|
|
160
160
|
when: `${CONTEXT_IN_DEBUG_REPL.raw} && ${CONTEXT_IN_DEBUG_MODE.raw}`,
|
|
161
|
+
priority: 0,
|
|
161
162
|
});
|
|
162
163
|
bindings.registerKeybinding({
|
|
163
164
|
command: DEBUG_COMMANDS.CONSOLE_INPUT_DOWN_ARROW.id,
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import cls from 'classnames';
|
|
2
|
-
import { observer } from 'mobx-react-lite';
|
|
3
2
|
import React from 'react';
|
|
4
3
|
|
|
5
4
|
import {
|
|
@@ -35,7 +34,7 @@ import { IDebugConsoleModel } from './debug-console-tree.model.service';
|
|
|
35
34
|
import styles from './debug-console.module.less';
|
|
36
35
|
import { DebugConsoleService } from './debug-console.service';
|
|
37
36
|
|
|
38
|
-
export const DebugConsoleView =
|
|
37
|
+
export const DebugConsoleView = ({ viewState }: { viewState: ViewState }) => {
|
|
39
38
|
const debugConsoleService = useInjectable<DebugConsoleService>(DebugConsoleService);
|
|
40
39
|
const debugConsoleFilterService = useInjectable<DebugConsoleFilterService>(DebugConsoleFilterService);
|
|
41
40
|
const preferenceService = useInjectable<PreferenceService>(PreferenceService);
|
|
@@ -225,7 +224,7 @@ export const DebugConsoleView = observer(({ viewState }: { viewState: ViewState
|
|
|
225
224
|
</div>
|
|
226
225
|
</div>
|
|
227
226
|
);
|
|
228
|
-
}
|
|
227
|
+
};
|
|
229
228
|
|
|
230
229
|
export interface IDebugConsoleNodeProps {
|
|
231
230
|
item: any;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import cls from 'classnames';
|
|
2
|
-
import { observer } from 'mobx-react-lite';
|
|
3
2
|
import React, { useCallback, useEffect, useRef, useState } from 'react';
|
|
4
3
|
|
|
5
4
|
import { RecycleList } from '@opensumi/ide-components';
|
|
@@ -30,7 +29,7 @@ export interface DebugStackSessionViewProps {
|
|
|
30
29
|
isBottom?: boolean;
|
|
31
30
|
}
|
|
32
31
|
|
|
33
|
-
export const DebugStackFramesView =
|
|
32
|
+
export const DebugStackFramesView = (props: DebugStackSessionViewProps) => {
|
|
34
33
|
const { viewState, frames: rawFrames, thread, indent = 0, session, isBottom } = props;
|
|
35
34
|
const [selected, setSelected] = useState<number | undefined>();
|
|
36
35
|
const [isLoading, setIsLoading] = useState<boolean>(false);
|
|
@@ -360,4 +359,4 @@ export const DebugStackFramesView = observer((props: DebugStackSessionViewProps)
|
|
|
360
359
|
footer={isLoading || canLoadMore ? footer : undefined}
|
|
361
360
|
/>
|
|
362
361
|
);
|
|
363
|
-
}
|
|
362
|
+
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { observer } from 'mobx-react-lite';
|
|
2
1
|
import React from 'react';
|
|
3
2
|
|
|
4
3
|
import { ViewState, useInjectable } from '@opensumi/ide-core-browser';
|
|
@@ -10,7 +9,7 @@ import { DebugSessionManager } from '../../debug-session-manager';
|
|
|
10
9
|
import { DebugStackSessionView } from './debug-call-stack-session.view';
|
|
11
10
|
import styles from './debug-call-stack.module.less';
|
|
12
11
|
|
|
13
|
-
export const DebugCallStackView =
|
|
12
|
+
export const DebugCallStackView = ({ viewState }: React.PropsWithChildren<{ viewState: ViewState }>) => {
|
|
14
13
|
const manager = useInjectable<DebugSessionManager>(IDebugSessionManager);
|
|
15
14
|
const [sessions, setSessions] = React.useState<DebugSession[]>([]);
|
|
16
15
|
|
|
@@ -41,4 +40,4 @@ export const DebugCallStackView = observer(({ viewState }: React.PropsWithChildr
|
|
|
41
40
|
))}
|
|
42
41
|
</div>
|
|
43
42
|
);
|
|
44
|
-
}
|
|
43
|
+
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import cls from 'classnames';
|
|
2
|
-
import { observer } from 'mobx-react-lite';
|
|
3
2
|
import React from 'react';
|
|
4
3
|
|
|
5
4
|
import {
|
|
@@ -28,15 +27,13 @@ import styles from './debug-variables.module.less';
|
|
|
28
27
|
|
|
29
28
|
export const DEBUG_VARIABLE_TREE_FIELD_NAME = 'DEBUG_VARIABLE_TREE_FIELD';
|
|
30
29
|
|
|
31
|
-
export const DebugVariableView =
|
|
32
|
-
const
|
|
33
|
-
|
|
34
|
-
const { width, height } = viewState;
|
|
30
|
+
export const DebugVariableView = ({ viewState }: React.PropsWithChildren<{ viewState: ViewState }>) => {
|
|
31
|
+
const debugVariablesModelService = useInjectable<DebugVariablesModelService>(DebugVariablesModelService);
|
|
35
32
|
|
|
36
33
|
const wrapperRef = React.useRef<HTMLDivElement | null>(null);
|
|
37
34
|
const [model, setModel] = React.useState<TreeModel>();
|
|
38
|
-
|
|
39
|
-
const
|
|
35
|
+
const DEBUG_VARIABLE_ITEM_HEIGHT = 22;
|
|
36
|
+
const { width, height } = viewState;
|
|
40
37
|
|
|
41
38
|
React.useEffect(() => {
|
|
42
39
|
const disposable = debugVariablesModelService.onDidUpdateTreeModel(async (nextModel: TreeModel) => {
|
|
@@ -150,7 +147,7 @@ export const DebugVariableView = observer(({ viewState }: React.PropsWithChildre
|
|
|
150
147
|
{renderContent()}
|
|
151
148
|
</div>
|
|
152
149
|
);
|
|
153
|
-
}
|
|
150
|
+
};
|
|
154
151
|
|
|
155
152
|
export interface IDebugVariableNodeProps {
|
|
156
153
|
item: any;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import cls from 'classnames';
|
|
2
|
-
import { observer } from 'mobx-react-lite';
|
|
3
2
|
import React from 'react';
|
|
4
3
|
|
|
5
4
|
import {
|
|
@@ -35,15 +34,13 @@ import styles from './debug-watch.module.less';
|
|
|
35
34
|
|
|
36
35
|
export const DEBUG_WATCH_TREE_FIELD_NAME = 'DEBUG_WATCH_TREE_FIELD';
|
|
37
36
|
|
|
38
|
-
export const DebugWatchView =
|
|
39
|
-
const
|
|
40
|
-
|
|
41
|
-
const { height } = viewState;
|
|
37
|
+
export const DebugWatchView = ({ viewState }: React.PropsWithChildren<{ viewState: ViewState }>) => {
|
|
38
|
+
const debugWatchModelService = useInjectable<DebugWatchModelService>(DebugWatchModelService);
|
|
42
39
|
|
|
40
|
+
const DEBUG_VARIABLE_ITEM_HEIGHT = 22;
|
|
43
41
|
const wrapperRef = React.useRef<HTMLDivElement | null>(null);
|
|
44
42
|
const [model, setModel] = React.useState<TreeModel>();
|
|
45
|
-
|
|
46
|
-
const debugWatchModelService = useInjectable<DebugWatchModelService>(DebugWatchModelService);
|
|
43
|
+
const { height } = viewState;
|
|
47
44
|
|
|
48
45
|
React.useEffect(() => initTreeModel(), []);
|
|
49
46
|
|
|
@@ -170,7 +167,7 @@ export const DebugWatchView = observer(({ viewState }: React.PropsWithChildren<{
|
|
|
170
167
|
{renderContent()}
|
|
171
168
|
</div>
|
|
172
169
|
);
|
|
173
|
-
}
|
|
170
|
+
};
|
|
174
171
|
|
|
175
172
|
export interface IDebugVariableNodeProps {
|
|
176
173
|
item: any;
|