@jupyterlab/debugger 3.3.0-alpha.9 → 4.0.0-alpha.1
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/handler.js +5 -2
- package/lib/handler.js.map +1 -1
- package/lib/panels/breakpoints/body.d.ts +0 -1
- package/lib/panels/breakpoints/index.d.ts +2 -1
- package/lib/panels/breakpoints/index.js +7 -10
- package/lib/panels/breakpoints/index.js.map +1 -1
- package/lib/panels/callstack/body.d.ts +0 -1
- package/lib/panels/callstack/index.d.ts +2 -1
- package/lib/panels/callstack/index.js +24 -20
- package/lib/panels/callstack/index.js.map +1 -1
- package/lib/panels/sources/index.d.ts +2 -2
- package/lib/panels/sources/index.js +14 -9
- package/lib/panels/sources/index.js.map +1 -1
- package/lib/panels/sources/sourcepath.d.ts +10 -0
- package/lib/panels/sources/sourcepath.js +17 -0
- package/lib/panels/sources/sourcepath.js.map +1 -0
- package/lib/panels/variables/index.d.ts +2 -2
- package/lib/panels/variables/index.js +9 -11
- package/lib/panels/variables/index.js.map +1 -1
- package/lib/panels/variables/scope.d.ts +0 -1
- package/lib/panels/variables/tree.d.ts +0 -1
- package/lib/sidebar.d.ts +3 -40
- package/lib/sidebar.js +13 -60
- package/lib/sidebar.js.map +1 -1
- package/lib/tokens.d.ts +2 -14
- package/lib/tokens.js.map +1 -1
- package/package.json +25 -25
- package/style/breakpoints.css +2 -0
- package/style/callstack.css +2 -0
- package/style/icons.css +4 -4
- package/style/sidebar.css +5 -52
- package/style/sources.css +6 -1
- package/style/variables.css +2 -4
- package/lib/panels/breakpoints/header.d.ts +0 -16
- package/lib/panels/breakpoints/header.js +0 -30
- package/lib/panels/breakpoints/header.js.map +0 -1
- package/lib/panels/callstack/header.d.ts +0 -16
- package/lib/panels/callstack/header.js +0 -30
- package/lib/panels/callstack/header.js.map +0 -1
- package/lib/panels/sources/header.d.ts +0 -19
- package/lib/panels/sources/header.js +0 -48
- package/lib/panels/sources/header.js.map +0 -1
- package/lib/panels/variables/header.d.ts +0 -16
- package/lib/panels/variables/header.js +0 -30
- package/lib/panels/variables/header.js.map +0 -1
package/lib/handler.js
CHANGED
|
@@ -6,6 +6,7 @@ import { Debugger } from './debugger';
|
|
|
6
6
|
import { ConsoleHandler } from './handlers/console';
|
|
7
7
|
import { FileHandler } from './handlers/file';
|
|
8
8
|
import { NotebookHandler } from './handlers/notebook';
|
|
9
|
+
const TOOLBAR_DEBUGGER_ITEM = 'debugger-icon';
|
|
9
10
|
/**
|
|
10
11
|
* Add a bug icon to the widget toolbar to enable and disable debugging.
|
|
11
12
|
*
|
|
@@ -25,7 +26,9 @@ function updateIconButton(widget, onClick, enabled, pressed, translator = nullTr
|
|
|
25
26
|
pressed,
|
|
26
27
|
onClick
|
|
27
28
|
});
|
|
28
|
-
widget.toolbar.insertBefore('kernelName',
|
|
29
|
+
if (!widget.toolbar.insertBefore('kernelName', TOOLBAR_DEBUGGER_ITEM, icon)) {
|
|
30
|
+
widget.toolbar.addItem(TOOLBAR_DEBUGGER_ITEM, icon);
|
|
31
|
+
}
|
|
29
32
|
return icon;
|
|
30
33
|
}
|
|
31
34
|
/**
|
|
@@ -277,7 +280,7 @@ export class DebuggerHandler {
|
|
|
277
280
|
if (this._service.isStarted && !this._service.hasStoppedThreads()) {
|
|
278
281
|
await this._service.displayDefinedVariables();
|
|
279
282
|
}
|
|
280
|
-
updateIconButtonState(this._iconButtons[widget.id],
|
|
283
|
+
updateIconButtonState(this._iconButtons[widget.id], this._service.isStarted, true);
|
|
281
284
|
// check the state of the debug session
|
|
282
285
|
if (!this._service.isStarted) {
|
|
283
286
|
removeHandlers();
|
package/lib/handler.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handler.js","sourceRoot":"","sources":["../src/handler.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAU3D,OAAO,EAAe,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACtE,OAAO,EAAE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GAAG,UAAU,CAAC;QAEtC,iCAAiC;QACjC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC;IAC1C,CAAC;CAgDF"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { ITranslator } from '@jupyterlab/translation';
|
|
2
|
+
import { PanelWithToolbar } from '@jupyterlab/ui-components';
|
|
2
3
|
import { Signal } from '@lumino/signaling';
|
|
3
4
|
import { Panel } from '@lumino/widgets';
|
|
4
5
|
import { IDebugger } from '../../tokens';
|
|
5
6
|
/**
|
|
6
7
|
* A Panel to show a list of breakpoints.
|
|
7
8
|
*/
|
|
8
|
-
export declare class Breakpoints extends
|
|
9
|
+
export declare class Breakpoints extends PanelWithToolbar {
|
|
9
10
|
/**
|
|
10
11
|
* Instantiate a new Breakpoints Panel.
|
|
11
12
|
*
|
|
@@ -2,30 +2,28 @@
|
|
|
2
2
|
// Distributed under the terms of the Modified BSD License.
|
|
3
3
|
import { Dialog, showDialog } from '@jupyterlab/apputils';
|
|
4
4
|
import { nullTranslator } from '@jupyterlab/translation';
|
|
5
|
-
import { ToolbarButton } from '@jupyterlab/ui-components';
|
|
5
|
+
import { PanelWithToolbar, ToolbarButton } from '@jupyterlab/ui-components';
|
|
6
6
|
import { Signal } from '@lumino/signaling';
|
|
7
|
-
import { Panel } from '@lumino/widgets';
|
|
8
7
|
import { closeAllIcon } from '../../icons';
|
|
9
8
|
import { BreakpointsBody } from './body';
|
|
10
|
-
import { BreakpointsHeader } from './header';
|
|
11
9
|
/**
|
|
12
10
|
* A Panel to show a list of breakpoints.
|
|
13
11
|
*/
|
|
14
|
-
export class Breakpoints extends
|
|
12
|
+
export class Breakpoints extends PanelWithToolbar {
|
|
15
13
|
/**
|
|
16
14
|
* Instantiate a new Breakpoints Panel.
|
|
17
15
|
*
|
|
18
16
|
* @param options The instantiation options for a Breakpoints Panel.
|
|
19
17
|
*/
|
|
20
18
|
constructor(options) {
|
|
21
|
-
|
|
19
|
+
var _a;
|
|
20
|
+
super(options);
|
|
22
21
|
this.clicked = new Signal(this);
|
|
23
22
|
const { model, service } = options;
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
const header = new BreakpointsHeader(translator);
|
|
23
|
+
const trans = ((_a = options.translator) !== null && _a !== void 0 ? _a : nullTranslator).load('jupyterlab');
|
|
24
|
+
this.title.label = trans.__('Breakpoints');
|
|
27
25
|
const body = new BreakpointsBody(model);
|
|
28
|
-
|
|
26
|
+
this.toolbar.addItem('closeAll', new ToolbarButton({
|
|
29
27
|
icon: closeAllIcon,
|
|
30
28
|
onClick: async () => {
|
|
31
29
|
if (model.breakpoints.size === 0) {
|
|
@@ -46,7 +44,6 @@ export class Breakpoints extends Panel {
|
|
|
46
44
|
},
|
|
47
45
|
tooltip: trans.__('Remove All Breakpoints')
|
|
48
46
|
}));
|
|
49
|
-
this.addWidget(header);
|
|
50
47
|
this.addWidget(body);
|
|
51
48
|
this.addClass('jp-DebuggerBreakpoints');
|
|
52
49
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/panels/breakpoints/index.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAE3D,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAe,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/panels/breakpoints/index.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAE3D,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAe,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACtE,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC5E,OAAO,EAAE,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Q,EAAE,IAAI;iBACf,CAAC,CAAC;gBACH,IAAI,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE;oBACxB,OAAO,OAAO,CAAC,gBAAgB,EAAE,CAAC;iBACnC;YACH,CAAC;YACD,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CAAC;SAC5C,CAAC,CACH,CAAC;QAEF,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;QACrB,IAAI,CAAC,QAAQ,CAAC,wBAAwB,CAAC,CAAC;IAC1C,CAAC;CAGF"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { ITranslator } from '@jupyterlab/translation';
|
|
2
|
+
import { PanelWithToolbar } from '@jupyterlab/ui-components';
|
|
2
3
|
import { CommandRegistry } from '@lumino/commands';
|
|
3
4
|
import { Panel } from '@lumino/widgets';
|
|
4
5
|
import { IDebugger } from '../../tokens';
|
|
5
6
|
/**
|
|
6
7
|
* A Panel to show a callstack.
|
|
7
8
|
*/
|
|
8
|
-
export declare class Callstack extends
|
|
9
|
+
export declare class Callstack extends PanelWithToolbar {
|
|
9
10
|
/**
|
|
10
11
|
* Instantiate a new Callstack Panel.
|
|
11
12
|
*
|
|
@@ -1,50 +1,54 @@
|
|
|
1
1
|
// Copyright (c) Jupyter Development Team.
|
|
2
2
|
// Distributed under the terms of the Modified BSD License.
|
|
3
3
|
import { nullTranslator } from '@jupyterlab/translation';
|
|
4
|
-
import { CommandToolbarButton } from '@jupyterlab/ui-components';
|
|
5
|
-
import { Panel } from '@lumino/widgets';
|
|
4
|
+
import { CommandToolbarButton, PanelWithToolbar } from '@jupyterlab/ui-components';
|
|
6
5
|
import { CallstackBody } from './body';
|
|
7
|
-
import { CallstackHeader } from './header';
|
|
8
6
|
/**
|
|
9
7
|
* A Panel to show a callstack.
|
|
10
8
|
*/
|
|
11
|
-
export class Callstack extends
|
|
9
|
+
export class Callstack extends PanelWithToolbar {
|
|
12
10
|
/**
|
|
13
11
|
* Instantiate a new Callstack Panel.
|
|
14
12
|
*
|
|
15
13
|
* @param options The instantiation options for a Callstack Panel.
|
|
16
14
|
*/
|
|
17
15
|
constructor(options) {
|
|
18
|
-
|
|
16
|
+
var _a;
|
|
17
|
+
super(options);
|
|
19
18
|
const { commands, model } = options;
|
|
20
|
-
const
|
|
21
|
-
|
|
19
|
+
const trans = ((_a = options.translator) !== null && _a !== void 0 ? _a : nullTranslator).load('jupyterlab');
|
|
20
|
+
this.title.label = trans.__('Callstack');
|
|
22
21
|
const body = new CallstackBody(model);
|
|
23
|
-
|
|
22
|
+
this.toolbar.addItem('continue', new CommandToolbarButton({
|
|
24
23
|
commands: commands.registry,
|
|
25
|
-
id: commands.continue
|
|
24
|
+
id: commands.continue,
|
|
25
|
+
label: ''
|
|
26
26
|
}));
|
|
27
|
-
|
|
27
|
+
this.toolbar.addItem('terminate', new CommandToolbarButton({
|
|
28
28
|
commands: commands.registry,
|
|
29
|
-
id: commands.terminate
|
|
29
|
+
id: commands.terminate,
|
|
30
|
+
label: ''
|
|
30
31
|
}));
|
|
31
|
-
|
|
32
|
+
this.toolbar.addItem('step-over', new CommandToolbarButton({
|
|
32
33
|
commands: commands.registry,
|
|
33
|
-
id: commands.next
|
|
34
|
+
id: commands.next,
|
|
35
|
+
label: ''
|
|
34
36
|
}));
|
|
35
|
-
|
|
37
|
+
this.toolbar.addItem('step-in', new CommandToolbarButton({
|
|
36
38
|
commands: commands.registry,
|
|
37
|
-
id: commands.stepIn
|
|
39
|
+
id: commands.stepIn,
|
|
40
|
+
label: ''
|
|
38
41
|
}));
|
|
39
|
-
|
|
42
|
+
this.toolbar.addItem('step-out', new CommandToolbarButton({
|
|
40
43
|
commands: commands.registry,
|
|
41
|
-
id: commands.stepOut
|
|
44
|
+
id: commands.stepOut,
|
|
45
|
+
label: ''
|
|
42
46
|
}));
|
|
43
|
-
|
|
47
|
+
this.toolbar.addItem('evaluate', new CommandToolbarButton({
|
|
44
48
|
commands: commands.registry,
|
|
45
|
-
id: commands.evaluate
|
|
49
|
+
id: commands.evaluate,
|
|
50
|
+
label: ''
|
|
46
51
|
}));
|
|
47
|
-
this.addWidget(header);
|
|
48
52
|
this.addWidget(body);
|
|
49
53
|
this.addClass('jp-DebuggerCallstack');
|
|
50
54
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/panels/callstack/index.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAE3D,OAAO,EAAe,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACtE,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/panels/callstack/index.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAE3D,OAAO,EAAe,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACtE,OAAO,EACL,oBAAoB,EACpB,gBAAgB,EACjB,MAAM,2BAA2B,CAAC;AAInC,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAEvC;;GAEG;AACH,MAAM,OAAO,SAAU,SAAQ,gBAAgB;IAC7C;;;;OAIG;IACH,YAAY,OAA2B;;QACrC,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,OAAO,CAAC;QACpC,MAAM,KAAK,GAAG,OAAC,OAAO,CAAC,UAAU,mCAAI,cAAc,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QACxE,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC;QACzC,MAAM,IAAI,GAAG,IAAI,aAAa,CAAC,KAAK,CAAC,CAAC;QAEtC,IAAI,CAAC,OAAO,CAAC,OAAO,CAClB,UAAU,EACV,IAAI,oBAAoB,CAAC;YACvB,QAAQ,EAAE,QAAQ,CAAC,QAAQ;YAC3B,EAAE,EAAE,QAAQ,CAAC,QAAQ;YACrB,K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ranslator } from '@jupyterlab/translation';
|
|
3
|
-
import {
|
|
3
|
+
import { PanelWithToolbar } from '@jupyterlab/ui-components';
|
|
4
4
|
import { IDebugger } from '../../tokens';
|
|
5
5
|
/**
|
|
6
6
|
* A Panel that shows a preview of the source code while debugging.
|
|
7
7
|
*/
|
|
8
|
-
export declare class Sources extends
|
|
8
|
+
export declare class Sources extends PanelWithToolbar {
|
|
9
9
|
/**
|
|
10
10
|
* Instantiate a new Sources preview Panel.
|
|
11
11
|
*
|
|
@@ -3,38 +3,43 @@
|
|
|
3
3
|
| Distributed under the terms of the Modified BSD License.
|
|
4
4
|
|----------------------------------------------------------------------------*/
|
|
5
5
|
import { nullTranslator } from '@jupyterlab/translation';
|
|
6
|
-
import { ToolbarButton } from '@jupyterlab/ui-components';
|
|
7
|
-
import { Panel } from '@lumino/widgets';
|
|
6
|
+
import { PanelWithToolbar, ToolbarButton } from '@jupyterlab/ui-components';
|
|
8
7
|
import { viewBreakpointIcon } from '../../icons';
|
|
8
|
+
import { SourcePathComponent } from './sourcepath';
|
|
9
9
|
import { SourcesBody } from './body';
|
|
10
|
-
import {
|
|
10
|
+
import { ReactWidget } from '@jupyterlab/ui-components';
|
|
11
|
+
import React from 'react';
|
|
11
12
|
/**
|
|
12
13
|
* A Panel that shows a preview of the source code while debugging.
|
|
13
14
|
*/
|
|
14
|
-
export class Sources extends
|
|
15
|
+
export class Sources extends PanelWithToolbar {
|
|
15
16
|
/**
|
|
16
17
|
* Instantiate a new Sources preview Panel.
|
|
17
18
|
*
|
|
18
19
|
* @param options The Sources instantiation options.
|
|
19
20
|
*/
|
|
20
21
|
constructor(options) {
|
|
22
|
+
var _a;
|
|
21
23
|
super();
|
|
22
24
|
const { model, service, editorServices } = options;
|
|
23
|
-
const
|
|
24
|
-
|
|
25
|
-
|
|
25
|
+
const trans = ((_a = options.translator) !== null && _a !== void 0 ? _a : nullTranslator).load('jupyterlab');
|
|
26
|
+
this.title.label = trans.__('Source');
|
|
27
|
+
this.toolbar.addClass('jp-DebuggerSources-header');
|
|
26
28
|
const body = new SourcesBody({
|
|
27
29
|
service,
|
|
28
30
|
model,
|
|
29
31
|
editorServices
|
|
30
32
|
});
|
|
31
|
-
|
|
33
|
+
this.toolbar.addItem('open', new ToolbarButton({
|
|
32
34
|
icon: viewBreakpointIcon,
|
|
33
35
|
onClick: () => model.open(),
|
|
34
36
|
tooltip: trans.__('Open in the Main Area')
|
|
35
37
|
}));
|
|
36
|
-
|
|
38
|
+
const sourcePath = ReactWidget.create(React.createElement(SourcePathComponent, { model: model }));
|
|
39
|
+
this.toolbar.addItem('sourcePath', sourcePath);
|
|
40
|
+
this.addClass('jp-DebuggerSources-header');
|
|
37
41
|
this.addWidget(body);
|
|
42
|
+
this.addClass('jp-DebuggerSources');
|
|
38
43
|
}
|
|
39
44
|
}
|
|
40
45
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/panels/sources/index.
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/panels/sources/index.tsx"],"names":[],"mappings":"AAAA;;;+EAG+E;AAG/E,OAAO,EAAe,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACtE,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC5E,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B;;GAEG;AACH,MAAM,OAAO,OAAQ,SAAQ,gBAAgB;IAC3C;;;;OAIG;IACH,YAAY,OAAyB;;QACnC,KAAK,EAAE,CAAC;QACR,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,GAAG,OAAO,CAAC;QACnD,MAAM,KAAK,GAAG,OAAC,OAAO,CAAC,UAAU,mCAAI,cAAc,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QACxE,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC;QAEtC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,2BAA2B,CAAC,CAAC;QACnD,MAAM,IAAI,GAAG,IAAI,WAAW,CAAC;YAC3B,OAAO;YACP,KAAK;YACL,cAAc;SACf,CAAC,CAAC;QACH,IAAI,CAAC,OAAO,CAAC,OAAO,CAClB,MAAM,EACN,IAAI,aAAa,CAAC;YAChB,IAAI,EAAE,kBAAkB;YACxB,OAAO,EAAE,GAAS,EAAE,CAAC,KAAK,CAAC,IAAI,EAAE;YACjC,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAAC;SAC3C,CAAC,CACH,CAAC;QACF,MAAM,UAAU,GAAG,WAAW,CAAC,MAAM,CACnC,oBAAC,mBAAmB,IAAC,KAAK,EAAE,KAAK,GAAI,CACtC,CAAC;QAEF,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,YAAY,EAAE,UAAU,CAAC,CAAC;QAC/C,IAAI,CAAC,QAAQ,CAAC,2BAA2B,CAAC,CAAC;QAE3C,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;QACrB,IAAI,CAAC,QAAQ,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;CACF"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IDebugger } from '../../tokens';
|
|
2
|
+
/**
|
|
3
|
+
* A React component to display the path to a source.
|
|
4
|
+
*
|
|
5
|
+
* @param {object} props The component props.
|
|
6
|
+
* @param props.model The model for the sources.
|
|
7
|
+
*/
|
|
8
|
+
export declare const SourcePathComponent: ({ model }: {
|
|
9
|
+
model: IDebugger.Model.ISources;
|
|
10
|
+
}) => JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// Copyright (c) Jupyter Development Team.
|
|
2
|
+
// Distributed under the terms of the Modified BSD License.
|
|
3
|
+
import { UseSignal } from '@jupyterlab/ui-components';
|
|
4
|
+
import React from 'react';
|
|
5
|
+
/**
|
|
6
|
+
* A React component to display the path to a source.
|
|
7
|
+
*
|
|
8
|
+
* @param {object} props The component props.
|
|
9
|
+
* @param props.model The model for the sources.
|
|
10
|
+
*/
|
|
11
|
+
export const SourcePathComponent = ({ model }) => {
|
|
12
|
+
return (React.createElement(UseSignal, { signal: model.currentSourceChanged, initialSender: model }, (model) => {
|
|
13
|
+
var _a, _b;
|
|
14
|
+
return (React.createElement("span", { onClick: () => model === null || model === void 0 ? void 0 : model.open() }, (_b = (_a = model === null || model === void 0 ? void 0 : model.currentSource) === null || _a === void 0 ? void 0 : _a.path) !== null && _b !== void 0 ? _b : ''));
|
|
15
|
+
}));
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=sourcepath.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sourcepath.js","sourceRoot":"","sources":["../../../src/panels/sources/sourcepath.tsx"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAE3D,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B;;;;;GAKG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,EAClC,KAAK,EAGN,EAAe,EAAE;IAChB,OAAO,CACL,oBAAC,SAAS,IAAC,MAAM,EAAE,KAAK,CAAC,oBAAoB,EAAE,aAAa,EAAE,KAAK,IAChE,CAAC,KAAK,EAAe,EAAE;;QAAC,OAAA,CACvB,8BAAM,OAAO,EAAE,GAAS,EAAE,CAAC,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,IAAI,EAAE,gBACrC,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,aAAa,0CAAE,IAAI,mCAAI,EAAE,CAC5B,CACR,CAAA;KAAA,CACS,CACb,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { IThemeManager } from '@jupyterlab/apputils';
|
|
2
2
|
import { ITranslator } from '@jupyterlab/translation';
|
|
3
|
+
import { PanelWithToolbar } from '@jupyterlab/ui-components';
|
|
3
4
|
import { CommandRegistry } from '@lumino/commands';
|
|
4
5
|
import { Panel, Widget } from '@lumino/widgets';
|
|
5
6
|
import { IDebugger } from '../../tokens';
|
|
6
7
|
/**
|
|
7
8
|
* A Panel to show a variable explorer.
|
|
8
9
|
*/
|
|
9
|
-
export declare class Variables extends
|
|
10
|
+
export declare class Variables extends PanelWithToolbar implements IDebugger.IVariablesPanel {
|
|
10
11
|
/**
|
|
11
12
|
* Instantiate a new Variables Panel.
|
|
12
13
|
*
|
|
@@ -37,7 +38,6 @@ export declare class Variables extends Panel implements IDebugger.IVariablesPane
|
|
|
37
38
|
* @param msg The resize message.
|
|
38
39
|
*/
|
|
39
40
|
private _resizeBody;
|
|
40
|
-
private _header;
|
|
41
41
|
private _tree;
|
|
42
42
|
private _table;
|
|
43
43
|
}
|
|
@@ -1,27 +1,26 @@
|
|
|
1
1
|
// Copyright (c) Jupyter Development Team.
|
|
2
2
|
// Distributed under the terms of the Modified BSD License.
|
|
3
3
|
import { nullTranslator } from '@jupyterlab/translation';
|
|
4
|
-
import { tableRowsIcon, ToolbarButton, treeViewIcon } from '@jupyterlab/ui-components';
|
|
5
|
-
import { Panel } from '@lumino/widgets';
|
|
4
|
+
import { PanelWithToolbar, tableRowsIcon, ToolbarButton, treeViewIcon } from '@jupyterlab/ui-components';
|
|
6
5
|
import { VariablesBodyGrid } from './grid';
|
|
7
|
-
import { VariablesHeader } from './header';
|
|
8
6
|
import { ScopeSwitcher } from './scope';
|
|
9
7
|
import { VariablesBodyTree } from './tree';
|
|
10
8
|
/**
|
|
11
9
|
* A Panel to show a variable explorer.
|
|
12
10
|
*/
|
|
13
|
-
export class Variables extends
|
|
11
|
+
export class Variables extends PanelWithToolbar {
|
|
14
12
|
/**
|
|
15
13
|
* Instantiate a new Variables Panel.
|
|
16
14
|
*
|
|
17
15
|
* @param options The instantiation options for a Variables Panel.
|
|
18
16
|
*/
|
|
19
17
|
constructor(options) {
|
|
20
|
-
super();
|
|
18
|
+
super(options);
|
|
21
19
|
const { model, service, commands, themeManager } = options;
|
|
22
20
|
const translator = options.translator || nullTranslator;
|
|
23
21
|
const trans = translator.load('jupyterlab');
|
|
24
|
-
this.
|
|
22
|
+
this.title.label = trans.__('Variables');
|
|
23
|
+
this.toolbar.addClass('jp-DebuggerVariables-toolbar');
|
|
25
24
|
this._tree = new VariablesBodyTree({
|
|
26
25
|
model,
|
|
27
26
|
service,
|
|
@@ -35,7 +34,7 @@ export class Variables extends Panel {
|
|
|
35
34
|
translator
|
|
36
35
|
});
|
|
37
36
|
this._table.hide();
|
|
38
|
-
this.
|
|
37
|
+
this.toolbar.addItem('scope-switcher', new ScopeSwitcher({
|
|
39
38
|
translator,
|
|
40
39
|
model,
|
|
41
40
|
tree: this._tree,
|
|
@@ -80,9 +79,8 @@ export class Variables extends Panel {
|
|
|
80
79
|
}
|
|
81
80
|
};
|
|
82
81
|
markViewButtonSelection(this.viewMode);
|
|
83
|
-
this.
|
|
84
|
-
this.
|
|
85
|
-
this.addWidget(this._header);
|
|
82
|
+
this.toolbar.addItem('view-VariableTreeView', treeViewButton);
|
|
83
|
+
this.toolbar.addItem('view-VariableTableView', tableViewButton);
|
|
86
84
|
this.addWidget(this._tree);
|
|
87
85
|
this.addWidget(this._table);
|
|
88
86
|
this.addClass('jp-DebuggerVariables');
|
|
@@ -123,7 +121,7 @@ export class Variables extends Panel {
|
|
|
123
121
|
* @param msg The resize message.
|
|
124
122
|
*/
|
|
125
123
|
_resizeBody(msg) {
|
|
126
|
-
const height = msg.height - this.
|
|
124
|
+
const height = msg.height - this.toolbar.node.offsetHeight;
|
|
127
125
|
this._tree.node.style.height = `${height}px`;
|
|
128
126
|
}
|
|
129
127
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/panels/variables/index.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAG3D,OAAO,EAAe,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACtE,OAAO,EACL,aAAa,EACb,aAAa,EACb,YAAY,EACb,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/panels/variables/index.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAG3D,OAAO,EAAe,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACtE,OAAO,EACL,gBAAgB,EAChB,aAAa,EACb,aAAa,EACb,YAAY,EACb,MAAM,2BAA2B,CAAC;AAInC,OAAO,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AAE3C;;GAEG;AACH,MAAM,OAAO,SACX,SAAQ,gBAAgB;IAExB;;;;OAIG;IACH,YAAY,OAA2B;QACrC,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,GAAG,OAAO,CAAC;QAC3D,MAAM,UAAU,GAAG,OAAO,CAAC,UAAU,IAAI,cAAc,CAAC;QACxD,MAAM,KAAK,GAAG,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAC5C,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC;QACzC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,8BAA8B,CAAC,CAAC;QACtD,IAAI,CAAC,KAAK,GAAG,IA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C"}
|
package/lib/sidebar.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { IThemeManager } from '@jupyterlab/apputils';
|
|
2
2
|
import { IEditorServices } from '@jupyterlab/codeeditor';
|
|
3
3
|
import { ITranslator } from '@jupyterlab/translation';
|
|
4
|
-
import {
|
|
4
|
+
import { SidePanel } from '@jupyterlab/ui-components';
|
|
5
|
+
import { Widget } from '@lumino/widgets';
|
|
5
6
|
import { Breakpoints as BreakpointsPanel } from './panels/breakpoints';
|
|
6
7
|
import { Callstack as CallstackPanel } from './panels/callstack';
|
|
7
8
|
import { Sources as SourcesPanel } from './panels/sources';
|
|
@@ -10,47 +11,13 @@ import { IDebugger } from './tokens';
|
|
|
10
11
|
/**
|
|
11
12
|
* A debugger sidebar.
|
|
12
13
|
*/
|
|
13
|
-
export declare class DebuggerSidebar extends
|
|
14
|
+
export declare class DebuggerSidebar extends SidePanel implements IDebugger.ISidebar {
|
|
14
15
|
/**
|
|
15
16
|
* Instantiate a new Debugger.Sidebar
|
|
16
17
|
*
|
|
17
18
|
* @param options The instantiation options for a Debugger.Sidebar
|
|
18
19
|
*/
|
|
19
20
|
constructor(options: DebuggerSidebar.IOptions);
|
|
20
|
-
/**
|
|
21
|
-
* Add an item at the end of the sidebar.
|
|
22
|
-
*
|
|
23
|
-
* @param widget - The widget to add to the sidebar.
|
|
24
|
-
*
|
|
25
|
-
* #### Notes
|
|
26
|
-
* If the widget is already contained in the sidebar, it will be moved.
|
|
27
|
-
* The item can be removed from the sidebar by setting its parent to `null`.
|
|
28
|
-
*/
|
|
29
|
-
addItem(widget: Widget): void;
|
|
30
|
-
/**
|
|
31
|
-
* Insert an item at the specified index.
|
|
32
|
-
*
|
|
33
|
-
* @param index - The index at which to insert the widget.
|
|
34
|
-
*
|
|
35
|
-
* @param widget - The widget to insert into to the sidebar.
|
|
36
|
-
*
|
|
37
|
-
* #### Notes
|
|
38
|
-
* If the widget is already contained in the sidebar, it will be moved.
|
|
39
|
-
* The item can be removed from the sidebar by setting its parent to `null`.
|
|
40
|
-
*/
|
|
41
|
-
insertItem(index: number, widget: Widget): void;
|
|
42
|
-
/**
|
|
43
|
-
* A read-only array of the sidebar items.
|
|
44
|
-
*/
|
|
45
|
-
get items(): readonly Widget[];
|
|
46
|
-
/**
|
|
47
|
-
* Whether the sidebar is disposed.
|
|
48
|
-
*/
|
|
49
|
-
isDisposed: boolean;
|
|
50
|
-
/**
|
|
51
|
-
* Dispose the sidebar.
|
|
52
|
-
*/
|
|
53
|
-
dispose(): void;
|
|
54
21
|
/**
|
|
55
22
|
* The variables widget.
|
|
56
23
|
*/
|
|
@@ -67,10 +34,6 @@ export declare class DebuggerSidebar extends Panel implements IDebugger.ISidebar
|
|
|
67
34
|
* The sources widget.
|
|
68
35
|
*/
|
|
69
36
|
readonly sources: SourcesPanel;
|
|
70
|
-
/**
|
|
71
|
-
* Container for debugger panels.
|
|
72
|
-
*/
|
|
73
|
-
private _body;
|
|
74
37
|
}
|
|
75
38
|
/**
|
|
76
39
|
* A namespace for DebuggerSidebar statics
|
package/lib/sidebar.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// Copyright (c) Jupyter Development Team.
|
|
2
2
|
// Distributed under the terms of the Modified BSD License.
|
|
3
3
|
import { nullTranslator } from '@jupyterlab/translation';
|
|
4
|
-
import { bugIcon } from '@jupyterlab/ui-components';
|
|
5
|
-
import {
|
|
4
|
+
import { bugIcon, SidePanel } from '@jupyterlab/ui-components';
|
|
5
|
+
import { Widget } from '@lumino/widgets';
|
|
6
6
|
import { Breakpoints as BreakpointsPanel } from './panels/breakpoints';
|
|
7
7
|
import { Callstack as CallstackPanel } from './panels/callstack';
|
|
8
8
|
import { Sources as SourcesPanel } from './panels/sources';
|
|
@@ -10,19 +10,19 @@ import { Variables as VariablesPanel } from './panels/variables';
|
|
|
10
10
|
/**
|
|
11
11
|
* A debugger sidebar.
|
|
12
12
|
*/
|
|
13
|
-
export class DebuggerSidebar extends
|
|
13
|
+
export class DebuggerSidebar extends SidePanel {
|
|
14
14
|
/**
|
|
15
15
|
* Instantiate a new Debugger.Sidebar
|
|
16
16
|
*
|
|
17
17
|
* @param options The instantiation options for a Debugger.Sidebar
|
|
18
18
|
*/
|
|
19
19
|
constructor(options) {
|
|
20
|
-
|
|
20
|
+
const translator = options.translator || nullTranslator;
|
|
21
|
+
super({ translator });
|
|
21
22
|
this.id = 'jp-debugger-sidebar';
|
|
22
23
|
this.title.icon = bugIcon;
|
|
23
24
|
this.addClass('jp-DebuggerSidebar');
|
|
24
25
|
const { callstackCommands, editorServices, service, themeManager } = options;
|
|
25
|
-
const translator = options.translator || nullTranslator;
|
|
26
26
|
const model = service.model;
|
|
27
27
|
this.variables = new VariablesPanel({
|
|
28
28
|
model: model.variables,
|
|
@@ -48,59 +48,15 @@ export class DebuggerSidebar extends Panel {
|
|
|
48
48
|
translator
|
|
49
49
|
});
|
|
50
50
|
const header = new DebuggerSidebar.Header();
|
|
51
|
-
this.addWidget(header);
|
|
51
|
+
this.header.addWidget(header);
|
|
52
52
|
model.titleChanged.connect((_, title) => {
|
|
53
53
|
header.title.label = title;
|
|
54
54
|
});
|
|
55
|
-
this.
|
|
56
|
-
this.
|
|
57
|
-
this.
|
|
58
|
-
this.addWidget(this.
|
|
59
|
-
this.
|
|
60
|
-
this.addItem(this.callstack);
|
|
61
|
-
this.addItem(this.breakpoints);
|
|
62
|
-
this.addItem(this.sources);
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* Add an item at the end of the sidebar.
|
|
66
|
-
*
|
|
67
|
-
* @param widget - The widget to add to the sidebar.
|
|
68
|
-
*
|
|
69
|
-
* #### Notes
|
|
70
|
-
* If the widget is already contained in the sidebar, it will be moved.
|
|
71
|
-
* The item can be removed from the sidebar by setting its parent to `null`.
|
|
72
|
-
*/
|
|
73
|
-
addItem(widget) {
|
|
74
|
-
this._body.addWidget(widget);
|
|
75
|
-
}
|
|
76
|
-
/**
|
|
77
|
-
* Insert an item at the specified index.
|
|
78
|
-
*
|
|
79
|
-
* @param index - The index at which to insert the widget.
|
|
80
|
-
*
|
|
81
|
-
* @param widget - The widget to insert into to the sidebar.
|
|
82
|
-
*
|
|
83
|
-
* #### Notes
|
|
84
|
-
* If the widget is already contained in the sidebar, it will be moved.
|
|
85
|
-
* The item can be removed from the sidebar by setting its parent to `null`.
|
|
86
|
-
*/
|
|
87
|
-
insertItem(index, widget) {
|
|
88
|
-
this._body.insertWidget(index, widget);
|
|
89
|
-
}
|
|
90
|
-
/**
|
|
91
|
-
* A read-only array of the sidebar items.
|
|
92
|
-
*/
|
|
93
|
-
get items() {
|
|
94
|
-
return this._body.widgets;
|
|
95
|
-
}
|
|
96
|
-
/**
|
|
97
|
-
* Dispose the sidebar.
|
|
98
|
-
*/
|
|
99
|
-
dispose() {
|
|
100
|
-
if (this.isDisposed) {
|
|
101
|
-
return;
|
|
102
|
-
}
|
|
103
|
-
super.dispose();
|
|
55
|
+
this.content.addClass('jp-DebuggerSidebar-body');
|
|
56
|
+
this.addWidget(this.variables);
|
|
57
|
+
this.addWidget(this.callstack);
|
|
58
|
+
this.addWidget(this.breakpoints);
|
|
59
|
+
this.addWidget(this.sources);
|
|
104
60
|
}
|
|
105
61
|
}
|
|
106
62
|
/**
|
|
@@ -117,7 +73,7 @@ export class DebuggerSidebar extends Panel {
|
|
|
117
73
|
constructor() {
|
|
118
74
|
super({ node: Private.createHeader() });
|
|
119
75
|
this.title.changed.connect(_ => {
|
|
120
|
-
this.node.
|
|
76
|
+
this.node.textContent = this.title.label;
|
|
121
77
|
});
|
|
122
78
|
}
|
|
123
79
|
}
|
|
@@ -132,13 +88,10 @@ var Private;
|
|
|
132
88
|
* Create a sidebar header node.
|
|
133
89
|
*/
|
|
134
90
|
function createHeader() {
|
|
135
|
-
const header = document.createElement('div');
|
|
136
|
-
header.classList.add('jp-stack-panel-header');
|
|
137
91
|
const title = document.createElement('h2');
|
|
138
92
|
title.textContent = '-';
|
|
139
93
|
title.classList.add('jp-left-truncated');
|
|
140
|
-
|
|
141
|
-
return header;
|
|
94
|
+
return title;
|
|
142
95
|
}
|
|
143
96
|
Private.createHeader = createHeader;
|
|
144
97
|
})(Private || (Private = {}));
|
package/lib/sidebar.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sidebar.js","sourceRoot":"","sources":["../src/sidebar.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAM3D,OAAO,EAAe,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAEtE,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"sidebar.js","sourceRoot":"","sources":["../src/sidebar.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAM3D,OAAO,EAAe,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAEtE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAE/D,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,OAAO,EAAE,WAAW,IAAI,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAEvE,OAAO,EAAE,SAAS,IAAI,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEjE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAE3D,OAAO,EAAE,SAAS,IAAI,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAIjE;;GAEG;AACH,MAAM,OAAO,eAAgB,SAAQ,SAAS;IAC5C;;;;OAIG;IACH,YAAY,OAAiC;QAC3C,MAAM,UAAU,GAAG,OAAO,CAAC,UAAU,IAAI,cAAc,CAAC;QACxD,KAAK,CAAC,EAAE,UAAU,EAAE,CAAC,CAAC;QACtB,IAAI,CAAC,EAAE,GAAG,qBAAqB,CAAC;QAChC,IAAI,CAAC,KAAK,CAAC,IAAI,GAAG,OAAO,CAAC;QAC1B,IAAI,CAAC,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C,SAAS,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QACjC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC/B,CAAC;CAqBF;AAED;;GAEG;AACH,WAAiB,eAAe;IA8B9B;;OAEG;IACH,MAAa,MAAO,SAAQ,MAAM;QAChC;;WAEG;QACH;YACE,KAAK,CAAC,EAAE,IAAI,EAAE,OAAO,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC;YACxC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE;gBAC7B,IAAI,CAAC,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC;YAC3C,CAAC,CAAC,CAAC;QACL,CAAC;KACF;IAVY,sBAAM,SAUlB,CAAA;AACH,CAAC,EA5CgB,eAAe,KAAf,eAAe,QA4C/B;AAED;;GAEG;AACH,IAAU,OAAO,CAYhB;AAZD,WAAU,OAAO;IACf;;OAEG;IACH,SAAgB,YAAY;QAC1B,MAAM,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;QAE3C,KAAK,CAAC,WAAW,GAAG,GAAG,CAAC;QACxB,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC;QAEzC,OAAO,KAAK,CAAC;IACf,CAAC;IAPe,oBAAY,eAO3B,CAAA;AACH,CAAC,EAZS,OAAO,KAAP,OAAO,QAYhB"}
|
package/lib/tokens.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { KernelMessage, Session } from '@jupyterlab/services';
|
|
|
3
3
|
import { ReadonlyJSONObject, Token } from '@lumino/coreutils';
|
|
4
4
|
import { IObservableDisposable } from '@lumino/disposable';
|
|
5
5
|
import { ISignal, Signal } from '@lumino/signaling';
|
|
6
|
-
import {
|
|
6
|
+
import { Panel } from '@lumino/widgets';
|
|
7
7
|
import { DebugProtocol } from 'vscode-debugprotocol';
|
|
8
8
|
import { DebuggerHandler } from './handler';
|
|
9
9
|
/**
|
|
@@ -539,23 +539,11 @@ export declare namespace IDebugger {
|
|
|
539
539
|
/**
|
|
540
540
|
* Debugger sidebar interface.
|
|
541
541
|
*/
|
|
542
|
-
interface ISidebar extends
|
|
542
|
+
interface ISidebar extends Panel {
|
|
543
543
|
/**
|
|
544
544
|
* Debugger variables explorer.
|
|
545
545
|
*/
|
|
546
546
|
variables: IVariablesPanel;
|
|
547
|
-
/**
|
|
548
|
-
* Add item at the end of the sidebar.
|
|
549
|
-
*/
|
|
550
|
-
addItem(widget: Widget): void;
|
|
551
|
-
/**
|
|
552
|
-
* Insert item at a specified index.
|
|
553
|
-
*/
|
|
554
|
-
insertItem(index: number, widget: Widget): void;
|
|
555
|
-
/**
|
|
556
|
-
* Return all items that were added to sidebar.
|
|
557
|
-
*/
|
|
558
|
-
readonly items: readonly Widget[];
|
|
559
547
|
}
|
|
560
548
|
/**
|
|
561
549
|
* A utility to find text editors used by the debugger.
|
package/lib/tokens.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokens.js","sourceRoot":"","sources":["../src/tokens.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAM3D,OAAO,EAAsB,KAAK,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"tokens.js","sourceRoot":"","sources":["../src/tokens.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAM3D,OAAO,EAAsB,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAs3B9D;;GAEG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,IAAI,KAAK,CAAY,gCAAgC,CAAC,CAAC;AAEhF;;GAEG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,KAAK,CACtC,sCAAsC,CACvC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,KAAK,CACvC,uCAAuC,CACxC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,KAAK,CACvC,uCAAuC,CACxC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,KAAK,CACvC,uCAAuC,CACxC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jupyterlab/debugger",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0-alpha.1",
|
|
4
4
|
"description": "JupyterLab - Debugger Extension",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jupyter",
|
|
@@ -48,29 +48,29 @@
|
|
|
48
48
|
"watch": "tsc -b --watch"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@jupyterlab/application": "^
|
|
52
|
-
"@jupyterlab/apputils": "^
|
|
53
|
-
"@jupyterlab/cells": "^
|
|
54
|
-
"@jupyterlab/codeeditor": "^
|
|
55
|
-
"@jupyterlab/codemirror": "^
|
|
56
|
-
"@jupyterlab/console": "^
|
|
57
|
-
"@jupyterlab/coreutils": "^
|
|
58
|
-
"@jupyterlab/docregistry": "^
|
|
59
|
-
"@jupyterlab/fileeditor": "^
|
|
60
|
-
"@jupyterlab/notebook": "^
|
|
61
|
-
"@jupyterlab/observables": "^
|
|
62
|
-
"@jupyterlab/rendermime": "^
|
|
63
|
-
"@jupyterlab/services": "^
|
|
64
|
-
"@jupyterlab/translation": "^
|
|
65
|
-
"@jupyterlab/ui-components": "^
|
|
66
|
-
"@lumino/algorithm": "^1.
|
|
67
|
-
"@lumino/commands": "^1.
|
|
68
|
-
"@lumino/coreutils": "^1.
|
|
69
|
-
"@lumino/datagrid": "^0.
|
|
70
|
-
"@lumino/disposable": "^1.
|
|
71
|
-
"@lumino/messaging": "^1.
|
|
72
|
-
"@lumino/signaling": "^1.
|
|
73
|
-
"@lumino/widgets": "^1.
|
|
51
|
+
"@jupyterlab/application": "^4.0.0-alpha.1",
|
|
52
|
+
"@jupyterlab/apputils": "^4.0.0-alpha.1",
|
|
53
|
+
"@jupyterlab/cells": "^4.0.0-alpha.1",
|
|
54
|
+
"@jupyterlab/codeeditor": "^4.0.0-alpha.1",
|
|
55
|
+
"@jupyterlab/codemirror": "^4.0.0-alpha.1",
|
|
56
|
+
"@jupyterlab/console": "^4.0.0-alpha.1",
|
|
57
|
+
"@jupyterlab/coreutils": "^6.0.0-alpha.1",
|
|
58
|
+
"@jupyterlab/docregistry": "^4.0.0-alpha.1",
|
|
59
|
+
"@jupyterlab/fileeditor": "^4.0.0-alpha.1",
|
|
60
|
+
"@jupyterlab/notebook": "^4.0.0-alpha.1",
|
|
61
|
+
"@jupyterlab/observables": "^5.0.0-alpha.1",
|
|
62
|
+
"@jupyterlab/rendermime": "^4.0.0-alpha.1",
|
|
63
|
+
"@jupyterlab/services": "^7.0.0-alpha.1",
|
|
64
|
+
"@jupyterlab/translation": "^4.0.0-alpha.1",
|
|
65
|
+
"@jupyterlab/ui-components": "^4.0.0-alpha.16",
|
|
66
|
+
"@lumino/algorithm": "^1.9.1",
|
|
67
|
+
"@lumino/commands": "^1.19.0",
|
|
68
|
+
"@lumino/coreutils": "^1.11.1",
|
|
69
|
+
"@lumino/datagrid": "^0.34.0",
|
|
70
|
+
"@lumino/disposable": "^1.10.1",
|
|
71
|
+
"@lumino/messaging": "^1.10.1",
|
|
72
|
+
"@lumino/signaling": "^1.10.1",
|
|
73
|
+
"@lumino/widgets": "^1.30.0",
|
|
74
74
|
"codemirror": "~5.61.0",
|
|
75
75
|
"react": "^17.0.1",
|
|
76
76
|
"vscode-debugprotocol": "^1.37.0"
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"devDependencies": {
|
|
79
79
|
"@babel/core": "^7.10.2",
|
|
80
80
|
"@babel/preset-env": "^7.10.2",
|
|
81
|
-
"@jupyterlab/testutils": "^
|
|
81
|
+
"@jupyterlab/testutils": "^4.0.0-alpha.1",
|
|
82
82
|
"@types/codemirror": "^0.0.109",
|
|
83
83
|
"@types/jest": "^26.0.10",
|
|
84
84
|
"@types/react-dom": "^17.0.0",
|
package/style/breakpoints.css
CHANGED
package/style/callstack.css
CHANGED
package/style/icons.css
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
| Distributed under the terms of the Modified BSD License.
|
|
4
4
|
|----------------------------------------------------------------------------*/
|
|
5
5
|
|
|
6
|
-
button.jp-Button.
|
|
7
|
-
button.jp-Button.
|
|
6
|
+
button.jp-Button.jp-mod-minimal.jp-TreeView.jp-TreeView,
|
|
7
|
+
button.jp-Button.jp-mod-minimal.jp-TreeView.jp-TableView {
|
|
8
8
|
display: flex;
|
|
9
9
|
align-items: center;
|
|
10
10
|
-webkit-transition: 0.4s;
|
|
@@ -12,12 +12,12 @@ button.jp-Button.bp3-button.bp3-minimal.jp-TreeView.jp-TableView {
|
|
|
12
12
|
width: 35px;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
button.jp-Button.
|
|
15
|
+
button.jp-Button.jp-mod-minimal.jp-TreeView:hover {
|
|
16
16
|
cursor: pointer;
|
|
17
17
|
background-color: var(--jp-layout-color1);
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
button.jp-Button.
|
|
20
|
+
button.jp-Button.jp-mod-minimal.jp-TableView:hover {
|
|
21
21
|
cursor: pointer;
|
|
22
22
|
background-color: var(--jp-layout-color1);
|
|
23
23
|
}
|
package/style/sidebar.css
CHANGED
|
@@ -3,57 +3,10 @@
|
|
|
3
3
|
| Distributed under the terms of the Modified BSD License.
|
|
4
4
|
|----------------------------------------------------------------------------*/
|
|
5
5
|
|
|
6
|
-
.jp-
|
|
7
|
-
--jp-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
.jp-DebuggerSidebar {
|
|
11
|
-
color: var(--jp-ui-font-color1);
|
|
12
|
-
background: var(--jp-layout-color1);
|
|
13
|
-
font-size: var(--jp-ui-font-size1);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.jp-DebuggerSidebar .p-SplitPanel-child {
|
|
17
|
-
z-index: auto;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.jp-DebuggerSidebar .jp-DebuggerSidebar-body {
|
|
21
|
-
height: calc(100% - var(--jp-debugger-header-height));
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.jp-DebuggerSidebar .jp-stack-panel-header {
|
|
25
|
-
border-bottom: solid var(--jp-border-width) var(--jp-border-color1);
|
|
26
|
-
box-shadow: var(--jp-toolbar-box-shadow);
|
|
27
|
-
display: flex;
|
|
28
|
-
flex-direction: row;
|
|
29
|
-
align-items: center;
|
|
30
|
-
min-height: 24px;
|
|
31
|
-
height: var(--jp-debugger-header-height);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.jp-DebuggerSidebar > .jp-stack-panel-header {
|
|
35
|
-
background-color: var(--jp-layout-color1);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.jp-DebuggerSidebar .jp-stack-panel-header h2 {
|
|
39
|
-
text-transform: uppercase;
|
|
6
|
+
.jp-SidePanel-header > h2 {
|
|
7
|
+
/* Set font-size to override default h2 sizing but keeping default --jp-ui-font-size0 */
|
|
8
|
+
font-size: 100%;
|
|
40
9
|
font-weight: 600;
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
padding-left: 8px;
|
|
44
|
-
padding-right: 4px;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.jp-DebuggerSidebar-body .jp-stack-panel-header {
|
|
48
|
-
border-top: solid var(--jp-border-width) var(--jp-border-color1);
|
|
49
|
-
background-color: var(--jp-layout-color2);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.jp-DebuggerSidebar-body .jp-DebuggerVariables .jp-stack-panel-header {
|
|
53
|
-
border-top: none;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.jp-DebuggerSidebar-body .jp-Toolbar {
|
|
57
|
-
background: var(--jp-layout-color2);
|
|
58
|
-
box-shadow: none;
|
|
10
|
+
margin: 0px auto 0px 0px;
|
|
11
|
+
padding: 4px 10px;
|
|
59
12
|
}
|
package/style/sources.css
CHANGED
|
@@ -3,6 +3,11 @@
|
|
|
3
3
|
| Distributed under the terms of the Modified BSD License.
|
|
4
4
|
|----------------------------------------------------------------------------*/
|
|
5
5
|
|
|
6
|
+
.jp-DebuggerSources {
|
|
7
|
+
min-height: 50px;
|
|
8
|
+
margin-top: 3px;
|
|
9
|
+
}
|
|
10
|
+
|
|
6
11
|
[data-jp-debugger='true'].jp-Editor .jp-mod-readOnly {
|
|
7
12
|
background: var(--jp-layout-color2);
|
|
8
13
|
height: 100%;
|
|
@@ -13,7 +18,7 @@
|
|
|
13
18
|
}
|
|
14
19
|
|
|
15
20
|
.jp-DebuggerSources-body {
|
|
16
|
-
height:
|
|
21
|
+
height: 100%;
|
|
17
22
|
}
|
|
18
23
|
|
|
19
24
|
.jp-DebuggerSources-header > div > span {
|
package/style/variables.css
CHANGED
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|
.jp-DebuggerVariables {
|
|
7
7
|
display: flex;
|
|
8
8
|
flex-direction: column;
|
|
9
|
+
min-height: 50px;
|
|
10
|
+
padding-top: 3px;
|
|
9
11
|
}
|
|
10
12
|
|
|
11
13
|
.jp-DebuggerVariables-body {
|
|
@@ -68,10 +70,6 @@
|
|
|
68
70
|
margin-left: 12px;
|
|
69
71
|
}
|
|
70
72
|
|
|
71
|
-
.jp-DebuggerVariables .jp-stack-panel-header .jp-Toolbar {
|
|
72
|
-
margin-left: auto;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
73
|
.jp-DebuggerVariables-grid {
|
|
76
74
|
flex: 1 1 auto;
|
|
77
75
|
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ITranslator } from '@jupyterlab/translation';
|
|
2
|
-
import { Toolbar } from '@jupyterlab/ui-components';
|
|
3
|
-
import { Widget } from '@lumino/widgets';
|
|
4
|
-
/**
|
|
5
|
-
* The header for a Breakpoints Panel.
|
|
6
|
-
*/
|
|
7
|
-
export declare class BreakpointsHeader extends Widget {
|
|
8
|
-
/**
|
|
9
|
-
* Instantiate a new BreakpointsHeader.
|
|
10
|
-
*/
|
|
11
|
-
constructor(translator?: ITranslator);
|
|
12
|
-
/**
|
|
13
|
-
* The toolbar for the breakpoints header.
|
|
14
|
-
*/
|
|
15
|
-
readonly toolbar: Toolbar<Widget>;
|
|
16
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Jupyter Development Team.
|
|
2
|
-
// Distributed under the terms of the Modified BSD License.
|
|
3
|
-
import { nullTranslator } from '@jupyterlab/translation';
|
|
4
|
-
import { Toolbar } from '@jupyterlab/ui-components';
|
|
5
|
-
import { PanelLayout, Widget } from '@lumino/widgets';
|
|
6
|
-
/**
|
|
7
|
-
* The header for a Breakpoints Panel.
|
|
8
|
-
*/
|
|
9
|
-
export class BreakpointsHeader extends Widget {
|
|
10
|
-
/**
|
|
11
|
-
* Instantiate a new BreakpointsHeader.
|
|
12
|
-
*/
|
|
13
|
-
constructor(translator) {
|
|
14
|
-
super({ node: document.createElement('div') });
|
|
15
|
-
/**
|
|
16
|
-
* The toolbar for the breakpoints header.
|
|
17
|
-
*/
|
|
18
|
-
this.toolbar = new Toolbar();
|
|
19
|
-
this.node.classList.add('jp-stack-panel-header');
|
|
20
|
-
translator = translator || nullTranslator;
|
|
21
|
-
const trans = translator.load('jupyterlab');
|
|
22
|
-
const title = new Widget({ node: document.createElement('h2') });
|
|
23
|
-
title.node.textContent = trans.__('Breakpoints');
|
|
24
|
-
const layout = new PanelLayout();
|
|
25
|
-
layout.addWidget(title);
|
|
26
|
-
layout.addWidget(this.toolbar);
|
|
27
|
-
this.layout = layout;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
//# sourceMappingURL=header.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"header.js","sourceRoot":"","sources":["../../../src/panels/breakpoints/header.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAE3D,OAAO,EAAe,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACtE,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEtD;;GAEG;AACH,MAAM,OAAO,iBAAkB,SAAQ,MAAM;IAC3C;;OAEG;IACH,YAAY,UAAwB;QAClC,KAAK,CAAC,EAAE,IAAI,EAAE,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;QAejD;;WAEG;QACM,YAAO,GAAG,IAAI,OAAO,EAAE,CAAC;QAjB/B,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC;QAEjD,UAAU,GAAG,UAAU,IAAI,cAAc,CAAC;QAC1C,MAAM,KAAK,GAAG,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAE5C,MAAM,KAAK,GAAG,IAAI,MAAM,CAAC,EAAE,IAAI,EAAE,QAAQ,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACjE,KAAK,CAAC,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC,EAAE,CAAC,aAAa,CAAC,CAAC;QAEjD,MAAM,MAAM,GAAG,IAAI,WAAW,EAAE,CAAC;QACjC,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QACxB,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC/B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;CAMF"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ITranslator } from '@jupyterlab/translation';
|
|
2
|
-
import { Toolbar } from '@jupyterlab/ui-components';
|
|
3
|
-
import { Widget } from '@lumino/widgets';
|
|
4
|
-
/**
|
|
5
|
-
* The header for a Callstack Panel.
|
|
6
|
-
*/
|
|
7
|
-
export declare class CallstackHeader extends Widget {
|
|
8
|
-
/**
|
|
9
|
-
* Instantiate a new CallstackHeader.
|
|
10
|
-
*/
|
|
11
|
-
constructor(translator?: ITranslator);
|
|
12
|
-
/**
|
|
13
|
-
* The toolbar for the callstack header.
|
|
14
|
-
*/
|
|
15
|
-
readonly toolbar: Toolbar<Widget>;
|
|
16
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Jupyter Development Team.
|
|
2
|
-
// Distributed under the terms of the Modified BSD License.
|
|
3
|
-
import { nullTranslator } from '@jupyterlab/translation';
|
|
4
|
-
import { Toolbar } from '@jupyterlab/ui-components';
|
|
5
|
-
import { PanelLayout, Widget } from '@lumino/widgets';
|
|
6
|
-
/**
|
|
7
|
-
* The header for a Callstack Panel.
|
|
8
|
-
*/
|
|
9
|
-
export class CallstackHeader extends Widget {
|
|
10
|
-
/**
|
|
11
|
-
* Instantiate a new CallstackHeader.
|
|
12
|
-
*/
|
|
13
|
-
constructor(translator) {
|
|
14
|
-
super({ node: document.createElement('div') });
|
|
15
|
-
/**
|
|
16
|
-
* The toolbar for the callstack header.
|
|
17
|
-
*/
|
|
18
|
-
this.toolbar = new Toolbar();
|
|
19
|
-
this.node.classList.add('jp-stack-panel-header');
|
|
20
|
-
translator = translator || nullTranslator;
|
|
21
|
-
const trans = translator.load('jupyterlab');
|
|
22
|
-
const title = new Widget({ node: document.createElement('h2') });
|
|
23
|
-
title.node.textContent = trans.__('Callstack');
|
|
24
|
-
const layout = new PanelLayout();
|
|
25
|
-
layout.addWidget(title);
|
|
26
|
-
layout.addWidget(this.toolbar);
|
|
27
|
-
this.layout = layout;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
//# sourceMappingURL=header.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"header.js","sourceRoot":"","sources":["../../../src/panels/callstack/header.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAE3D,OAAO,EAAe,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACtE,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEtD;;GAEG;AACH,MAAM,OAAO,eAAgB,SAAQ,MAAM;IACzC;;OAEG;IACH,YAAY,UAAwB;QAClC,KAAK,CAAC,EAAE,IAAI,EAAE,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;QAejD;;WAEG;QACM,YAAO,GAAG,IAAI,OAAO,EAAE,CAAC;QAjB/B,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC;QAEjD,UAAU,GAAG,UAAU,IAAI,cAAc,CAAC;QAC1C,MAAM,KAAK,GAAG,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAE5C,MAAM,KAAK,GAAG,IAAI,MAAM,CAAC,EAAE,IAAI,EAAE,QAAQ,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACjE,KAAK,CAAC,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC;QAE/C,MAAM,MAAM,GAAG,IAAI,WAAW,EAAE,CAAC;QACjC,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QACxB,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC/B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;CAMF"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { ITranslator } from '@jupyterlab/translation';
|
|
2
|
-
import { Toolbar } from '@jupyterlab/ui-components';
|
|
3
|
-
import { Widget } from '@lumino/widgets';
|
|
4
|
-
import { IDebugger } from '../../tokens';
|
|
5
|
-
/**
|
|
6
|
-
* The header for a Source Panel.
|
|
7
|
-
*/
|
|
8
|
-
export declare class SourcesHeader extends Widget {
|
|
9
|
-
/**
|
|
10
|
-
* Instantiate a new SourcesHeader.
|
|
11
|
-
*
|
|
12
|
-
* @param model The model for the Sources.
|
|
13
|
-
*/
|
|
14
|
-
constructor(model: IDebugger.Model.ISources, translator?: ITranslator);
|
|
15
|
-
/**
|
|
16
|
-
* The toolbar for the sources header.
|
|
17
|
-
*/
|
|
18
|
-
readonly toolbar: Toolbar<Widget>;
|
|
19
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Jupyter Development Team.
|
|
2
|
-
// Distributed under the terms of the Modified BSD License.
|
|
3
|
-
import { nullTranslator } from '@jupyterlab/translation';
|
|
4
|
-
import { ReactWidget, Toolbar, UseSignal } from '@jupyterlab/ui-components';
|
|
5
|
-
import { PanelLayout, Widget } from '@lumino/widgets';
|
|
6
|
-
import React from 'react';
|
|
7
|
-
/**
|
|
8
|
-
* The header for a Source Panel.
|
|
9
|
-
*/
|
|
10
|
-
export class SourcesHeader extends Widget {
|
|
11
|
-
/**
|
|
12
|
-
* Instantiate a new SourcesHeader.
|
|
13
|
-
*
|
|
14
|
-
* @param model The model for the Sources.
|
|
15
|
-
*/
|
|
16
|
-
constructor(model, translator) {
|
|
17
|
-
super({ node: document.createElement('div') });
|
|
18
|
-
/**
|
|
19
|
-
* The toolbar for the sources header.
|
|
20
|
-
*/
|
|
21
|
-
this.toolbar = new Toolbar();
|
|
22
|
-
this.node.classList.add('jp-stack-panel-header');
|
|
23
|
-
translator = translator || nullTranslator;
|
|
24
|
-
const trans = translator.load('jupyterlab');
|
|
25
|
-
const layout = new PanelLayout();
|
|
26
|
-
this.layout = layout;
|
|
27
|
-
const title = new Widget({ node: document.createElement('h2') });
|
|
28
|
-
title.node.textContent = trans.__('Source');
|
|
29
|
-
const sourcePath = ReactWidget.create(React.createElement(SourcePathComponent, { model: model }));
|
|
30
|
-
layout.addWidget(title);
|
|
31
|
-
layout.addWidget(this.toolbar);
|
|
32
|
-
layout.addWidget(sourcePath);
|
|
33
|
-
this.addClass('jp-DebuggerSources-header');
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* A React component to display the path to a source.
|
|
38
|
-
*
|
|
39
|
-
* @param {object} props The component props.
|
|
40
|
-
* @param props.model The model for the sources.
|
|
41
|
-
*/
|
|
42
|
-
const SourcePathComponent = ({ model }) => {
|
|
43
|
-
return (React.createElement(UseSignal, { signal: model.currentSourceChanged, initialSender: model }, (model) => {
|
|
44
|
-
var _a, _b;
|
|
45
|
-
return (React.createElement("span", { onClick: () => model === null || model === void 0 ? void 0 : model.open() }, (_b = (_a = model === null || model === void 0 ? void 0 : model.currentSource) === null || _a === void 0 ? void 0 : _a.path) !== null && _b !== void 0 ? _b : ''));
|
|
46
|
-
}));
|
|
47
|
-
};
|
|
48
|
-
//# sourceMappingURL=header.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"header.js","sourceRoot":"","sources":["../../../src/panels/sources/header.tsx"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAE3D,OAAO,EAAe,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACtE,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAC5E,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B;;GAEG;AACH,MAAM,OAAO,aAAc,SAAQ,MAAM;IACvC;;;;OAIG;IACH,YAAY,KAA+B,EAAE,UAAwB;QACnE,KAAK,CAAC,EAAE,IAAI,EAAE,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;QAuBjD;;WAEG;QACM,YAAO,GAAG,IAAI,OAAO,EAAE,CAAC;QAzB/B,IAAI,CAAC,IAAI,CAAC,SAA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 -1,16 +0,0 @@
|
|
|
1
|
-
import { ITranslator } from '@jupyterlab/translation';
|
|
2
|
-
import { Toolbar } from '@jupyterlab/ui-components';
|
|
3
|
-
import { Widget } from '@lumino/widgets';
|
|
4
|
-
/**
|
|
5
|
-
* The header for a Variables Panel.
|
|
6
|
-
*/
|
|
7
|
-
export declare class VariablesHeader extends Widget {
|
|
8
|
-
/**
|
|
9
|
-
* Instantiate a new VariablesHeader.
|
|
10
|
-
*/
|
|
11
|
-
constructor(translator?: ITranslator);
|
|
12
|
-
/**
|
|
13
|
-
* The toolbar for the callstack header.
|
|
14
|
-
*/
|
|
15
|
-
readonly toolbar: Toolbar<Widget>;
|
|
16
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Jupyter Development Team.
|
|
2
|
-
// Distributed under the terms of the Modified BSD License.
|
|
3
|
-
import { nullTranslator } from '@jupyterlab/translation';
|
|
4
|
-
import { Toolbar } from '@jupyterlab/ui-components';
|
|
5
|
-
import { PanelLayout, Widget } from '@lumino/widgets';
|
|
6
|
-
/**
|
|
7
|
-
* The header for a Variables Panel.
|
|
8
|
-
*/
|
|
9
|
-
export class VariablesHeader extends Widget {
|
|
10
|
-
/**
|
|
11
|
-
* Instantiate a new VariablesHeader.
|
|
12
|
-
*/
|
|
13
|
-
constructor(translator) {
|
|
14
|
-
super({ node: document.createElement('div') });
|
|
15
|
-
/**
|
|
16
|
-
* The toolbar for the callstack header.
|
|
17
|
-
*/
|
|
18
|
-
this.toolbar = new Toolbar();
|
|
19
|
-
this.node.classList.add('jp-stack-panel-header');
|
|
20
|
-
translator = translator || nullTranslator;
|
|
21
|
-
const trans = translator.load('jupyterlab');
|
|
22
|
-
const title = new Widget({ node: document.createElement('h2') });
|
|
23
|
-
title.node.textContent = trans.__('Variables');
|
|
24
|
-
const layout = new PanelLayout();
|
|
25
|
-
layout.addWidget(title);
|
|
26
|
-
layout.addWidget(this.toolbar);
|
|
27
|
-
this.layout = layout;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
//# sourceMappingURL=header.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"header.js","sourceRoot":"","sources":["../../../src/panels/variables/header.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAE3D,OAAO,EAAe,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACtE,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEtD;;GAEG;AACH,MAAM,OAAO,eAAgB,SAAQ,MAAM;IACzC;;OAEG;IACH,YAAY,UAAwB;QAClC,KAAK,CAAC,EAAE,IAAI,EAAE,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;QAejD;;WAEG;QACM,YAAO,GAAG,IAAI,OAAO,EAAE,CAAC;QAjB/B,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC;QAEjD,UAAU,GAAG,UAAU,IAAI,cAAc,CAAC;QAC1C,MAAM,KAAK,GAAG,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAE5C,MAAM,KAAK,GAAG,IAAI,MAAM,CAAC,EAAE,IAAI,EAAE,QAAQ,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACjE,KAAK,CAAC,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC;QAE/C,MAAM,MAAM,GAAG,IAAI,WAAW,EAAE,CAAC;QACjC,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QACxB,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC/B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;CAMF"}
|