@jupyterlab/debugger 3.3.0-beta.0 → 3.3.0-rc.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/panels/kernelSources/filter.d.ts +0 -1
- package/lib/panels/kernelSources/filter.js +6 -4
- package/lib/panels/kernelSources/filter.js.map +1 -1
- package/lib/panels/kernelSources/model.d.ts +8 -0
- package/lib/panels/kernelSources/model.js +17 -1
- package/lib/panels/kernelSources/model.js.map +1 -1
- package/lib/tokens.d.ts +4 -0
- package/lib/tokens.js.map +1 -1
- package/package.json +18 -17
|
@@ -4,14 +4,16 @@ import { ReactWidget, UseSignal } from '@jupyterlab/apputils';
|
|
|
4
4
|
import { InputGroup } from '@jupyterlab/ui-components';
|
|
5
5
|
import React from 'react';
|
|
6
6
|
const FilterBox = (props) => {
|
|
7
|
-
|
|
7
|
+
const onFilterChange = (e) => {
|
|
8
|
+
const filter = e.target.value;
|
|
9
|
+
props.model.filter = filter;
|
|
10
|
+
};
|
|
11
|
+
return (React.createElement(InputGroup, { type: "text", onChange: onFilterChange, placeholder: "Filter the kernel sources", value: props.model.filter }));
|
|
8
12
|
};
|
|
9
13
|
/**
|
|
10
14
|
* A widget which hosts a input textbox to filter on file names.
|
|
11
15
|
*/
|
|
12
16
|
export const KernelSourcesFilter = (props) => {
|
|
13
|
-
return ReactWidget.create(React.createElement(UseSignal, { signal: props.model.
|
|
14
|
-
props.model.filter = e.target.value;
|
|
15
|
-
} }))));
|
|
17
|
+
return ReactWidget.create(React.createElement(UseSignal, { signal: props.model.filterChanged, initialArgs: props.model.filter }, model => React.createElement(FilterBox, { model: props.model })));
|
|
16
18
|
};
|
|
17
19
|
//# sourceMappingURL=filter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter.js","sourceRoot":"","sources":["../../../src/panels/kernelSources/filter.tsx"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAE3D,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAE9D,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAEvD,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"filter.js","sourceRoot":"","sources":["../../../src/panels/kernelSources/filter.tsx"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAE3D,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAE9D,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAEvD,OAAO,KAAK,MAAM,OAAO,CAAC;AAW1B,MAAM,SAAS,GAAG,CAAC,KAAsB,EAAE,EAAE;IAC3C,MAAM,cAAc,GAAG,CAAC,CAAM,EAAE,EAAE;QAChC,MAAM,MAAM,GAAI,CAAC,CAAC,MAA2B,CAAC,KAAK,CAAC;QACpD,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC;IAC9B,CAAC,CAAC;IACF,OAAO,CACL,oBAAC,UAAU,IACT,IAAI,EAAC,MAAM,EACX,QAAQ,EAAE,cAAc,EACxB,WAAW,EAAC,2BAA2B,EACvC,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,MAAM,GACzB,CACH,CAAC;AACJ,CAAC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,KAAsB,EAAe,EAAE;IACzE,OAAO,WAAW,CAAC,MAAM,CACvB,oBAAC,SAAS,IACR,MAAM,EAAE,KAAK,CAAC,KAAK,CAAC,aAAa,EACjC,WAAW,EAAE,KAAK,CAAC,KAAK,CAAC,MAAM,IAE9B,KAAK,CAAC,EAAE,CAAC,oBAAC,SAAS,IAAC,KAAK,EAAE,KAAK,CAAC,KAAK,GAAI,CACjC,CACb,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -4,12 +4,14 @@ import { IDebugger } from '../../tokens';
|
|
|
4
4
|
* The model to keep track of the current source being displayed.
|
|
5
5
|
*/
|
|
6
6
|
export declare class KernelSourcesModel implements IDebugger.Model.IKernelSources {
|
|
7
|
+
constructor();
|
|
7
8
|
/**
|
|
8
9
|
* Get the filter.
|
|
9
10
|
*/
|
|
10
11
|
get filter(): string;
|
|
11
12
|
/**
|
|
12
13
|
* Set the filter.
|
|
14
|
+
* The update
|
|
13
15
|
*/
|
|
14
16
|
set filter(filter: string);
|
|
15
17
|
/**
|
|
@@ -24,6 +26,10 @@ export declare class KernelSourcesModel implements IDebugger.Model.IKernelSource
|
|
|
24
26
|
* Signal emitted when the current source changes.
|
|
25
27
|
*/
|
|
26
28
|
get changed(): ISignal<this, IDebugger.KernelSource[] | null>;
|
|
29
|
+
/**
|
|
30
|
+
* Signal emitted when the current source changes.
|
|
31
|
+
*/
|
|
32
|
+
get filterChanged(): ISignal<this, string>;
|
|
27
33
|
/**
|
|
28
34
|
* Signal emitted when a kernel source should be open in the main area.
|
|
29
35
|
*/
|
|
@@ -37,7 +43,9 @@ export declare class KernelSourcesModel implements IDebugger.Model.IKernelSource
|
|
|
37
43
|
private _kernelSources;
|
|
38
44
|
private _filteredKernelSources;
|
|
39
45
|
private _filter;
|
|
46
|
+
private _refreshDebouncer;
|
|
40
47
|
private _changed;
|
|
48
|
+
private _filterChanged;
|
|
41
49
|
private _kernelSourceOpened;
|
|
42
50
|
}
|
|
43
51
|
/**
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
// Copyright (c) Jupyter Development Team.
|
|
2
2
|
// Distributed under the terms of the Modified BSD License.
|
|
3
3
|
import { Signal } from '@lumino/signaling';
|
|
4
|
+
import { Debouncer } from '@lumino/polling';
|
|
5
|
+
/**
|
|
6
|
+
* The rate limit for the filter debouncer
|
|
7
|
+
*/
|
|
8
|
+
const DEBOUNCER_RATE_LIMIT_MS = 500;
|
|
4
9
|
const compare = (a, b) => {
|
|
5
10
|
if (a.name < b.name) {
|
|
6
11
|
return -1;
|
|
@@ -19,7 +24,10 @@ export class KernelSourcesModel {
|
|
|
19
24
|
this._filteredKernelSources = null;
|
|
20
25
|
this._filter = '';
|
|
21
26
|
this._changed = new Signal(this);
|
|
27
|
+
this._filterChanged = new Signal(this);
|
|
22
28
|
this._kernelSourceOpened = new Signal(this);
|
|
29
|
+
this.refresh = this.refresh.bind(this);
|
|
30
|
+
this._refreshDebouncer = new Debouncer(this.refresh, DEBOUNCER_RATE_LIMIT_MS);
|
|
23
31
|
}
|
|
24
32
|
/**
|
|
25
33
|
* Get the filter.
|
|
@@ -29,10 +37,12 @@ export class KernelSourcesModel {
|
|
|
29
37
|
}
|
|
30
38
|
/**
|
|
31
39
|
* Set the filter.
|
|
40
|
+
* The update
|
|
32
41
|
*/
|
|
33
42
|
set filter(filter) {
|
|
34
43
|
this._filter = filter;
|
|
35
|
-
this.
|
|
44
|
+
this._filterChanged.emit(filter);
|
|
45
|
+
void this._refreshDebouncer.invoke();
|
|
36
46
|
}
|
|
37
47
|
/**
|
|
38
48
|
* Get the kernel sources.
|
|
@@ -53,6 +63,12 @@ export class KernelSourcesModel {
|
|
|
53
63
|
get changed() {
|
|
54
64
|
return this._changed;
|
|
55
65
|
}
|
|
66
|
+
/**
|
|
67
|
+
* Signal emitted when the current source changes.
|
|
68
|
+
*/
|
|
69
|
+
get filterChanged() {
|
|
70
|
+
return this._filterChanged;
|
|
71
|
+
}
|
|
56
72
|
/**
|
|
57
73
|
* Signal emitted when a kernel source should be open in the main area.
|
|
58
74
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model.js","sourceRoot":"","sources":["../../../src/panels/kernelSources/model.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAE3D,OAAO,EAAW,MAAM,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"model.js","sourceRoot":"","sources":["../../../src/panels/kernelSources/model.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAE3D,OAAO,EAAW,M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;IAClD,CAAC;CASF"}
|
package/lib/tokens.d.ts
CHANGED
|
@@ -782,6 +782,10 @@ export declare namespace IDebugger {
|
|
|
782
782
|
* Signal emitted when the kernel sources have changed.
|
|
783
783
|
*/
|
|
784
784
|
readonly changed: ISignal<IDebugger.Model.IKernelSources, IDebugger.KernelSource[] | null>;
|
|
785
|
+
/**
|
|
786
|
+
* Signal emitted when the kernel sources filter has changed.
|
|
787
|
+
*/
|
|
788
|
+
readonly filterChanged: ISignal<IDebugger.Model.IKernelSources, string>;
|
|
785
789
|
/**
|
|
786
790
|
* Signal emitted when a kernel source has be opened in the main area.
|
|
787
791
|
*/
|
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;AAo+B9D;;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.3.0-
|
|
3
|
+
"version": "3.3.0-rc.0",
|
|
4
4
|
"description": "JupyterLab - Debugger Extension",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jupyter",
|
|
@@ -48,27 +48,28 @@
|
|
|
48
48
|
"watch": "tsc -b --watch"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@jupyterlab/application": "^3.3.0-
|
|
52
|
-
"@jupyterlab/apputils": "^3.3.0-
|
|
53
|
-
"@jupyterlab/cells": "^3.3.0-
|
|
54
|
-
"@jupyterlab/codeeditor": "^3.3.0-
|
|
55
|
-
"@jupyterlab/codemirror": "^3.3.0-
|
|
56
|
-
"@jupyterlab/console": "^3.3.0-
|
|
57
|
-
"@jupyterlab/coreutils": "^5.3.0-
|
|
58
|
-
"@jupyterlab/docregistry": "^3.3.0-
|
|
59
|
-
"@jupyterlab/fileeditor": "^3.3.0-
|
|
60
|
-
"@jupyterlab/notebook": "^3.3.0-
|
|
61
|
-
"@jupyterlab/observables": "^4.3.0-
|
|
62
|
-
"@jupyterlab/rendermime": "^3.3.0-
|
|
63
|
-
"@jupyterlab/services": "^6.3.0-
|
|
64
|
-
"@jupyterlab/translation": "^3.3.0-
|
|
65
|
-
"@jupyterlab/ui-components": "^3.3.0-
|
|
51
|
+
"@jupyterlab/application": "^3.3.0-rc.0",
|
|
52
|
+
"@jupyterlab/apputils": "^3.3.0-rc.0",
|
|
53
|
+
"@jupyterlab/cells": "^3.3.0-rc.0",
|
|
54
|
+
"@jupyterlab/codeeditor": "^3.3.0-rc.0",
|
|
55
|
+
"@jupyterlab/codemirror": "^3.3.0-rc.0",
|
|
56
|
+
"@jupyterlab/console": "^3.3.0-rc.0",
|
|
57
|
+
"@jupyterlab/coreutils": "^5.3.0-rc.0",
|
|
58
|
+
"@jupyterlab/docregistry": "^3.3.0-rc.0",
|
|
59
|
+
"@jupyterlab/fileeditor": "^3.3.0-rc.0",
|
|
60
|
+
"@jupyterlab/notebook": "^3.3.0-rc.0",
|
|
61
|
+
"@jupyterlab/observables": "^4.3.0-rc.0",
|
|
62
|
+
"@jupyterlab/rendermime": "^3.3.0-rc.0",
|
|
63
|
+
"@jupyterlab/services": "^6.3.0-rc.0",
|
|
64
|
+
"@jupyterlab/translation": "^3.3.0-rc.0",
|
|
65
|
+
"@jupyterlab/ui-components": "^3.3.0-rc.0",
|
|
66
66
|
"@lumino/algorithm": "^1.3.3",
|
|
67
67
|
"@lumino/commands": "^1.12.0",
|
|
68
68
|
"@lumino/coreutils": "^1.5.3",
|
|
69
69
|
"@lumino/datagrid": "^0.20.0",
|
|
70
70
|
"@lumino/disposable": "^1.4.3",
|
|
71
71
|
"@lumino/messaging": "^1.4.3",
|
|
72
|
+
"@lumino/polling": "^1.3.3",
|
|
72
73
|
"@lumino/signaling": "^1.4.3",
|
|
73
74
|
"@lumino/widgets": "^1.19.0",
|
|
74
75
|
"@vscode/debugprotocol": "^1.51.0",
|
|
@@ -78,7 +79,7 @@
|
|
|
78
79
|
"devDependencies": {
|
|
79
80
|
"@babel/core": "^7.10.2",
|
|
80
81
|
"@babel/preset-env": "^7.10.2",
|
|
81
|
-
"@jupyterlab/testutils": "^3.3.0-
|
|
82
|
+
"@jupyterlab/testutils": "^3.3.0-rc.0",
|
|
82
83
|
"@types/codemirror": "^0.0.109",
|
|
83
84
|
"@types/jest": "^26.0.10",
|
|
84
85
|
"@types/react-dom": "^17.0.0",
|