@jupyterlab/debugger 4.0.0-alpha.2 → 4.0.0-alpha.5
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/debugger.d.ts +2 -0
- package/lib/debugger.js +3 -1
- package/lib/debugger.js.map +1 -1
- package/lib/handler.js +9 -2
- package/lib/handler.js.map +1 -1
- package/lib/handlers/editor.d.ts +8 -0
- package/lib/handlers/editor.js +12 -0
- package/lib/handlers/editor.js.map +1 -1
- package/lib/handlers/file.d.ts +1 -0
- package/lib/handlers/file.js +6 -1
- package/lib/handlers/file.js.map +1 -1
- package/lib/handlers/notebook.js +12 -2
- package/lib/handlers/notebook.js.map +1 -1
- package/lib/icons.d.ts +2 -0
- package/lib/icons.js +10 -0
- package/lib/icons.js.map +1 -1
- package/lib/model.d.ts +5 -0
- package/lib/model.js +3 -0
- package/lib/model.js.map +1 -1
- package/lib/panels/breakpoints/index.d.ts +18 -0
- package/lib/panels/breakpoints/index.js +7 -2
- package/lib/panels/breakpoints/index.js.map +1 -1
- package/lib/panels/kernelSources/body.d.ts +47 -0
- package/lib/panels/kernelSources/body.js +86 -0
- package/lib/panels/kernelSources/body.js.map +1 -0
- package/lib/panels/kernelSources/filter.d.ts +12 -0
- package/lib/panels/kernelSources/filter.js +18 -0
- package/lib/panels/kernelSources/filter.js.map +1 -0
- package/lib/panels/kernelSources/index.d.ts +39 -0
- package/lib/panels/kernelSources/index.js +54 -0
- package/lib/panels/kernelSources/index.js.map +1 -0
- package/lib/panels/kernelSources/model.d.ts +64 -0
- package/lib/panels/kernelSources/model.js +102 -0
- package/lib/panels/kernelSources/model.js.map +1 -0
- package/lib/panels/variables/grid.d.ts +0 -4
- package/lib/panels/variables/grid.js +4 -16
- package/lib/panels/variables/grid.js.map +1 -1
- package/lib/panels/variables/index.d.ts +1 -9
- package/lib/panels/variables/index.js +1 -15
- package/lib/panels/variables/index.js.map +1 -1
- package/lib/panels/variables/mimerenderer.d.ts +15 -2
- package/lib/panels/variables/mimerenderer.js +48 -17
- package/lib/panels/variables/mimerenderer.js.map +1 -1
- package/lib/panels/variables/model.d.ts +3 -0
- package/lib/panels/variables/model.js +7 -0
- package/lib/panels/variables/model.js.map +1 -1
- package/lib/panels/variables/tree.d.ts +1 -5
- package/lib/panels/variables/tree.js +11 -10
- package/lib/panels/variables/tree.js.map +1 -1
- package/lib/service.d.ts +17 -1
- package/lib/service.js +89 -1
- package/lib/service.js.map +1 -1
- package/lib/session.d.ts +23 -1
- package/lib/session.js +40 -5
- package/lib/session.js.map +1 -1
- package/lib/sidebar.d.ts +7 -1
- package/lib/sidebar.js +9 -1
- package/lib/sidebar.js.map +1 -1
- package/lib/tokens.d.ts +92 -21
- package/lib/tokens.js.map +1 -1
- package/package.json +25 -24
- package/style/base.css +2 -1
- package/style/icons/open-kernel-source.svg +6 -0
- package/style/icons/pause.svg +6 -0
- package/style/icons.css +9 -8
- package/style/kernelSources.css +42 -0
- package/style/sidebar.css +1 -1
- package/style/variables.css +16 -2
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,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,MAA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"}
|
package/lib/tokens.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { ReadonlyJSONObject, Token } from '@lumino/coreutils';
|
|
|
4
4
|
import { IObservableDisposable } from '@lumino/disposable';
|
|
5
5
|
import { ISignal, Signal } from '@lumino/signaling';
|
|
6
6
|
import { Panel } from '@lumino/widgets';
|
|
7
|
-
import { DebugProtocol } from 'vscode
|
|
7
|
+
import { DebugProtocol } from '@vscode/debugprotocol';
|
|
8
8
|
import { DebuggerHandler } from './handler';
|
|
9
9
|
/**
|
|
10
10
|
* An interface describing an application's visual debugger.
|
|
@@ -18,6 +18,10 @@ export interface IDebugger {
|
|
|
18
18
|
* Whether the current debugger is started.
|
|
19
19
|
*/
|
|
20
20
|
readonly isStarted: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Whether the session is pausing for exceptions.
|
|
23
|
+
*/
|
|
24
|
+
readonly isPausingOnExceptions: boolean;
|
|
21
25
|
/**
|
|
22
26
|
* The debugger service's model.
|
|
23
27
|
*/
|
|
@@ -34,6 +38,14 @@ export interface IDebugger {
|
|
|
34
38
|
* Removes all the breakpoints from the current notebook or console
|
|
35
39
|
*/
|
|
36
40
|
clearBreakpoints(): Promise<void>;
|
|
41
|
+
/**
|
|
42
|
+
* Used to determine if kernel has pause on exception capabilities
|
|
43
|
+
*/
|
|
44
|
+
pauseOnExceptionsIsValid(): boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Handles enabling and disabling of Pause on Exception
|
|
47
|
+
*/
|
|
48
|
+
pauseOnExceptions(enable: boolean): Promise<void>;
|
|
37
49
|
/**
|
|
38
50
|
* Continues the execution of the current thread.
|
|
39
51
|
*/
|
|
@@ -66,15 +78,19 @@ export interface IDebugger {
|
|
|
66
78
|
* Request rich representation of a variable.
|
|
67
79
|
*
|
|
68
80
|
* @param variableName The variable name to request
|
|
69
|
-
* @param
|
|
81
|
+
* @param frameId The current frame id in which to request the variable
|
|
70
82
|
* @returns The mime renderer data model
|
|
71
83
|
*/
|
|
72
|
-
inspectRichVariable(variableName: string,
|
|
84
|
+
inspectRichVariable(variableName: string, frameId?: number): Promise<IDebugger.IRichVariable>;
|
|
73
85
|
/**
|
|
74
86
|
* Requests all the defined variables and display them in the
|
|
75
87
|
* table view.
|
|
76
88
|
*/
|
|
77
89
|
displayDefinedVariables(): Promise<void>;
|
|
90
|
+
/**
|
|
91
|
+
* Requests all the loaded modules and display them.
|
|
92
|
+
*/
|
|
93
|
+
displayModules(): Promise<void>;
|
|
78
94
|
/**
|
|
79
95
|
* Request whether debugging is available for the given session connection.
|
|
80
96
|
*
|
|
@@ -158,6 +174,19 @@ export declare namespace IDebugger {
|
|
|
158
174
|
*/
|
|
159
175
|
path: string;
|
|
160
176
|
};
|
|
177
|
+
/**
|
|
178
|
+
* The type for a kernel source file.
|
|
179
|
+
*/
|
|
180
|
+
type KernelSource = {
|
|
181
|
+
/**
|
|
182
|
+
* The name of the source.
|
|
183
|
+
*/
|
|
184
|
+
name: string;
|
|
185
|
+
/**
|
|
186
|
+
* The path of the source.
|
|
187
|
+
*/
|
|
188
|
+
path: string;
|
|
189
|
+
};
|
|
161
190
|
/**
|
|
162
191
|
* Single breakpoint in an editor.
|
|
163
192
|
*/
|
|
@@ -229,10 +258,26 @@ export declare namespace IDebugger {
|
|
|
229
258
|
* The API session connection to connect to a debugger.
|
|
230
259
|
*/
|
|
231
260
|
connection: Session.ISessionConnection | null;
|
|
261
|
+
/**
|
|
262
|
+
* Returns the initialize response .
|
|
263
|
+
*/
|
|
264
|
+
readonly capabilities: DebugProtocol.Capabilities | undefined;
|
|
232
265
|
/**
|
|
233
266
|
* Whether the debug session is started
|
|
234
267
|
*/
|
|
235
268
|
readonly isStarted: boolean;
|
|
269
|
+
/**
|
|
270
|
+
* Whether the debug session is pausing on exceptions.
|
|
271
|
+
*/
|
|
272
|
+
pausingOnExceptions: string[];
|
|
273
|
+
/**
|
|
274
|
+
* Whether the debug session is pausing on exceptions.
|
|
275
|
+
*/
|
|
276
|
+
exceptionPaths: string[];
|
|
277
|
+
/**
|
|
278
|
+
* Get exception filters and default values.
|
|
279
|
+
*/
|
|
280
|
+
exceptionBreakpointFilters: DebugProtocol.ExceptionBreakpointsFilter[] | undefined;
|
|
236
281
|
/**
|
|
237
282
|
* Signal emitted for debug event messages.
|
|
238
283
|
*/
|
|
@@ -452,9 +497,10 @@ export declare namespace IDebugger {
|
|
|
452
497
|
* Whether the kernel supports variable rich rendering or not.
|
|
453
498
|
*/
|
|
454
499
|
richRendering?: boolean;
|
|
455
|
-
stoppedThreads: number[];
|
|
456
500
|
tmpFilePrefix: string;
|
|
457
501
|
tmpFileSuffix: string;
|
|
502
|
+
stoppedThreads: number[];
|
|
503
|
+
exceptionPaths: string[];
|
|
458
504
|
};
|
|
459
505
|
}
|
|
460
506
|
/**
|
|
@@ -520,30 +566,18 @@ export declare namespace IDebugger {
|
|
|
520
566
|
}
|
|
521
567
|
/**
|
|
522
568
|
* Select variable in the variables explorer.
|
|
569
|
+
*
|
|
570
|
+
* @hidden
|
|
571
|
+
*
|
|
572
|
+
* #### Notes
|
|
573
|
+
* This is experimental API
|
|
523
574
|
*/
|
|
524
575
|
interface IVariableSelection extends Pick<DebugProtocol.Variable, 'name' | 'type' | 'variablesReference' | 'value'> {
|
|
525
576
|
}
|
|
526
|
-
/**
|
|
527
|
-
* Debugger variables explorer interface.
|
|
528
|
-
*/
|
|
529
|
-
interface IVariablesPanel {
|
|
530
|
-
/**
|
|
531
|
-
* Select variable in the variables explorer.
|
|
532
|
-
*/
|
|
533
|
-
latestSelection: IVariableSelection | null;
|
|
534
|
-
/**
|
|
535
|
-
* Variable view mode.
|
|
536
|
-
*/
|
|
537
|
-
viewMode: 'tree' | 'table';
|
|
538
|
-
}
|
|
539
577
|
/**
|
|
540
578
|
* Debugger sidebar interface.
|
|
541
579
|
*/
|
|
542
580
|
interface ISidebar extends Panel {
|
|
543
|
-
/**
|
|
544
|
-
* Debugger variables explorer.
|
|
545
|
-
*/
|
|
546
|
-
variables: IVariablesPanel;
|
|
547
581
|
}
|
|
548
582
|
/**
|
|
549
583
|
* A utility to find text editors used by the debugger.
|
|
@@ -677,6 +711,10 @@ export declare namespace IDebugger {
|
|
|
677
711
|
* The sources UI model.
|
|
678
712
|
*/
|
|
679
713
|
readonly sources: ISources;
|
|
714
|
+
/**
|
|
715
|
+
* The kernel sources UI model.
|
|
716
|
+
*/
|
|
717
|
+
readonly kernelSources: IKernelSources;
|
|
680
718
|
/**
|
|
681
719
|
* The set of threads in stopped state.
|
|
682
720
|
*/
|
|
@@ -719,6 +757,35 @@ export declare namespace IDebugger {
|
|
|
719
757
|
*/
|
|
720
758
|
open(): void;
|
|
721
759
|
}
|
|
760
|
+
/**
|
|
761
|
+
* The kernel sources UI model.
|
|
762
|
+
*/
|
|
763
|
+
interface IKernelSources {
|
|
764
|
+
/**
|
|
765
|
+
* The kernel source.
|
|
766
|
+
*/
|
|
767
|
+
kernelSources: IDebugger.KernelSource[] | null;
|
|
768
|
+
/**
|
|
769
|
+
* The filter to apply.
|
|
770
|
+
*/
|
|
771
|
+
filter: string;
|
|
772
|
+
/**
|
|
773
|
+
* Signal emitted when the kernel sources have changed.
|
|
774
|
+
*/
|
|
775
|
+
readonly changed: ISignal<IDebugger.Model.IKernelSources, IDebugger.KernelSource[] | null>;
|
|
776
|
+
/**
|
|
777
|
+
* Signal emitted when the kernel sources filter has changed.
|
|
778
|
+
*/
|
|
779
|
+
readonly filterChanged: ISignal<IDebugger.Model.IKernelSources, string>;
|
|
780
|
+
/**
|
|
781
|
+
* Signal emitted when a kernel source has be opened in the main area.
|
|
782
|
+
*/
|
|
783
|
+
readonly kernelSourceOpened: ISignal<IDebugger.Model.IKernelSources, IDebugger.Source | null>;
|
|
784
|
+
/**
|
|
785
|
+
* Open a source in the main area.
|
|
786
|
+
*/
|
|
787
|
+
open(source: IDebugger.Source): void;
|
|
788
|
+
}
|
|
722
789
|
/**
|
|
723
790
|
* The variables UI model.
|
|
724
791
|
*/
|
|
@@ -735,6 +802,10 @@ export declare namespace IDebugger {
|
|
|
735
802
|
* Signal emitted when the current variable has been expanded.
|
|
736
803
|
*/
|
|
737
804
|
readonly variableExpanded: ISignal<this, IDebugger.IVariable>;
|
|
805
|
+
/**
|
|
806
|
+
* Selected variable in the variables explorer.
|
|
807
|
+
*/
|
|
808
|
+
selectedVariable: IVariableSelection | null;
|
|
738
809
|
/**
|
|
739
810
|
* Expand a variable.
|
|
740
811
|
*
|
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;AAq9B9D;;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": "4.0.0-alpha.
|
|
3
|
+
"version": "4.0.0-alpha.5",
|
|
4
4
|
"description": "JupyterLab - Debugger Extension",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jupyter",
|
|
@@ -48,37 +48,38 @@
|
|
|
48
48
|
"watch": "tsc -b --watch"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@jupyterlab/application": "^4.0.0-alpha.
|
|
52
|
-
"@jupyterlab/apputils": "^4.0.0-alpha.
|
|
53
|
-
"@jupyterlab/cells": "^4.0.0-alpha.
|
|
54
|
-
"@jupyterlab/codeeditor": "^4.0.0-alpha.
|
|
55
|
-
"@jupyterlab/codemirror": "^4.0.0-alpha.
|
|
56
|
-
"@jupyterlab/console": "^4.0.0-alpha.
|
|
57
|
-
"@jupyterlab/coreutils": "^6.0.0-alpha.
|
|
58
|
-
"@jupyterlab/docregistry": "^4.0.0-alpha.
|
|
59
|
-
"@jupyterlab/fileeditor": "^4.0.0-alpha.
|
|
60
|
-
"@jupyterlab/notebook": "^4.0.0-alpha.
|
|
61
|
-
"@jupyterlab/observables": "^5.0.0-alpha.
|
|
62
|
-
"@jupyterlab/rendermime": "^4.0.0-alpha.
|
|
63
|
-
"@jupyterlab/services": "^7.0.0-alpha.
|
|
64
|
-
"@jupyterlab/translation": "^4.0.0-alpha.
|
|
65
|
-
"@jupyterlab/ui-components": "^4.0.0-alpha.
|
|
51
|
+
"@jupyterlab/application": "^4.0.0-alpha.5",
|
|
52
|
+
"@jupyterlab/apputils": "^4.0.0-alpha.5",
|
|
53
|
+
"@jupyterlab/cells": "^4.0.0-alpha.5",
|
|
54
|
+
"@jupyterlab/codeeditor": "^4.0.0-alpha.5",
|
|
55
|
+
"@jupyterlab/codemirror": "^4.0.0-alpha.5",
|
|
56
|
+
"@jupyterlab/console": "^4.0.0-alpha.5",
|
|
57
|
+
"@jupyterlab/coreutils": "^6.0.0-alpha.5",
|
|
58
|
+
"@jupyterlab/docregistry": "^4.0.0-alpha.5",
|
|
59
|
+
"@jupyterlab/fileeditor": "^4.0.0-alpha.5",
|
|
60
|
+
"@jupyterlab/notebook": "^4.0.0-alpha.5",
|
|
61
|
+
"@jupyterlab/observables": "^5.0.0-alpha.5",
|
|
62
|
+
"@jupyterlab/rendermime": "^4.0.0-alpha.5",
|
|
63
|
+
"@jupyterlab/services": "^7.0.0-alpha.5",
|
|
64
|
+
"@jupyterlab/translation": "^4.0.0-alpha.5",
|
|
65
|
+
"@jupyterlab/ui-components": "^4.0.0-alpha.20",
|
|
66
66
|
"@lumino/algorithm": "^1.9.1",
|
|
67
|
-
"@lumino/commands": "^1.
|
|
68
|
-
"@lumino/coreutils": "^1.
|
|
69
|
-
"@lumino/datagrid": "^0.
|
|
67
|
+
"@lumino/commands": "^1.20.0",
|
|
68
|
+
"@lumino/coreutils": "^1.12.0",
|
|
69
|
+
"@lumino/datagrid": "^0.35.1",
|
|
70
70
|
"@lumino/disposable": "^1.10.1",
|
|
71
71
|
"@lumino/messaging": "^1.10.1",
|
|
72
|
+
"@lumino/polling": "^1.10.0",
|
|
72
73
|
"@lumino/signaling": "^1.10.1",
|
|
73
|
-
"@lumino/widgets": "^1.
|
|
74
|
+
"@lumino/widgets": "^1.31.1",
|
|
75
|
+
"@vscode/debugprotocol": "^1.51.0",
|
|
74
76
|
"codemirror": "~5.61.0",
|
|
75
|
-
"react": "^17.0.1"
|
|
76
|
-
"vscode-debugprotocol": "^1.37.0"
|
|
77
|
+
"react": "^17.0.1"
|
|
77
78
|
},
|
|
78
79
|
"devDependencies": {
|
|
79
80
|
"@babel/core": "^7.10.2",
|
|
80
81
|
"@babel/preset-env": "^7.10.2",
|
|
81
|
-
"@jupyterlab/testutils": "^4.0.0-alpha.
|
|
82
|
+
"@jupyterlab/testutils": "^4.0.0-alpha.5",
|
|
82
83
|
"@types/codemirror": "^0.0.109",
|
|
83
84
|
"@types/jest": "^26.0.10",
|
|
84
85
|
"@types/react-dom": "^17.0.0",
|
|
@@ -92,7 +93,7 @@
|
|
|
92
93
|
"shell-quote": "^1.7.2",
|
|
93
94
|
"text-encoding": "^0.7.0",
|
|
94
95
|
"ts-jest": "^26.3.0",
|
|
95
|
-
"typedoc": "~0.
|
|
96
|
+
"typedoc": "~0.22.10",
|
|
96
97
|
"typescript": "~4.5.2"
|
|
97
98
|
},
|
|
98
99
|
"publishConfig": {
|
package/style/base.css
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
@import './callstack.css';
|
|
7
7
|
@import './editor.css';
|
|
8
8
|
@import './icons.css';
|
|
9
|
+
@import './kernelSources.css';
|
|
9
10
|
@import './sidebar.css';
|
|
10
11
|
@import './sources.css';
|
|
11
12
|
@import './variables.css';
|
|
@@ -17,7 +18,7 @@
|
|
|
17
18
|
}
|
|
18
19
|
|
|
19
20
|
#jp-debugger .jp-switch-label {
|
|
20
|
-
margin-right:
|
|
21
|
+
margin-right: 0;
|
|
21
22
|
}
|
|
22
23
|
|
|
23
24
|
.jp-DebuggerBugButton[aria-pressed='true'] path {
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g class="jp-icon3" fill="#616161">
|
|
3
|
+
<path d="M5 2H15L20 7V20C20 20.5304 19.7893 21.0391 19.4142 21.4142C19.0391 21.7893 18.5304 22 18 22H5C4.46957 22 3.96086 21.7893 3.58579 21.4142C3.21071 21.0391 3 20.5304 3 20V14H4V16L8 13L4 10V12H3V4C3 3.46957 3.21071 2.96086 3.58579 2.58579C3.96086 2.21071 4.46957 2 5 2ZM12 18H16V16H12V18ZM12 14H18V12H12V14ZM12 10H18V8H12V10ZM10 14C10.5523 14 11 13.5523 11 13C11 12.4477 10.5523 12 10 12C9.44771 12 9 12.4477 9 13C9 13.5523 9.44771 14 10 14Z"/>
|
|
4
|
+
<path d="M3 12V14H1V13V12H3Z"/>
|
|
5
|
+
</g>
|
|
6
|
+
</svg>
|
package/style/icons.css
CHANGED
|
@@ -12,16 +12,17 @@ button.jp-Button.jp-mod-minimal.jp-TreeView.jp-TableView {
|
|
|
12
12
|
width: 35px;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
background-color: var(--jp-layout-
|
|
15
|
+
.jp-ViewModeSelected .jp-Button,
|
|
16
|
+
.jp-PauseOnExceptions.lm-mod-toggled {
|
|
17
|
+
background-color: var(--jp-inverse-layout-color3);
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
background-color: var(--jp-layout-
|
|
20
|
+
.jp-ViewModeSelected .jp-Button:hover,
|
|
21
|
+
.jp-PauseOnExceptions.lm-mod-toggled:hover {
|
|
22
|
+
background-color: var(--jp-inverse-layout-color4);
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
.jp-ViewModeSelected
|
|
26
|
-
|
|
25
|
+
.jp-ViewModeSelected .jp-Button .jp-icon3[fill],
|
|
26
|
+
.jp-PauseOnExceptions.lm-mod-toggled .jp-icon3[fill] {
|
|
27
|
+
fill: var(--jp-layout-color1);
|
|
27
28
|
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/*-----------------------------------------------------------------------------
|
|
2
|
+
| Copyright (c) Jupyter Development Team.
|
|
3
|
+
| Distributed under the terms of the Modified BSD License.
|
|
4
|
+
|----------------------------------------------------------------------------*/
|
|
5
|
+
|
|
6
|
+
.jp-DebuggerKernelSources {
|
|
7
|
+
min-height: 50px;
|
|
8
|
+
margin-top: 3px;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
[data-jp-debugger='true'].jp-Editor .jp-mod-readOnly {
|
|
12
|
+
background: var(--jp-layout-color2);
|
|
13
|
+
height: 100%;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.jp-DebuggerKernelSources-body [data-jp-debugger='true'].jp-Editor {
|
|
17
|
+
height: 100%;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.jp-DebuggerKernelSources-body {
|
|
21
|
+
height: 100%;
|
|
22
|
+
overflow-y: auto;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.jp-DebuggerKernelSources-header > div > span {
|
|
26
|
+
overflow: hidden;
|
|
27
|
+
cursor: pointer;
|
|
28
|
+
text-overflow: ellipsis;
|
|
29
|
+
white-space: nowrap;
|
|
30
|
+
font-size: var(--jp-ui-font-size0);
|
|
31
|
+
color: var(--jp-ui-font-color1);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.jp-DebuggerKernelSource-filterBox {
|
|
35
|
+
padding: 0;
|
|
36
|
+
flex: 0 0 auto;
|
|
37
|
+
margin: 0;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.jp-DebuggerKernelSource-filterBox-hidden {
|
|
41
|
+
display: none;
|
|
42
|
+
}
|
package/style/sidebar.css
CHANGED
package/style/variables.css
CHANGED
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
.jp-DebuggerVariables-body ul li {
|
|
32
|
-
padding: 5px 0 0
|
|
32
|
+
padding: 5px 0 0;
|
|
33
33
|
cursor: pointer;
|
|
34
34
|
color: var(--jp-content-font-color1);
|
|
35
35
|
display: flex;
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
background: none;
|
|
51
51
|
cursor: pointer;
|
|
52
52
|
display: none;
|
|
53
|
-
padding:
|
|
53
|
+
padding: 0 8px;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
.jp-DebuggerVariables-body .jp-DebuggerVariables-renderVariable:active {
|
|
@@ -114,3 +114,17 @@
|
|
|
114
114
|
.jp-DebuggerVariables-colorPalette .jp-mod-text {
|
|
115
115
|
color: var(--jp-content-font-color0);
|
|
116
116
|
}
|
|
117
|
+
|
|
118
|
+
.jp-VariableRenderer-TrustButton[aria-pressed='true'] {
|
|
119
|
+
box-shadow: inset 0 var(--jp-border-width) 4px
|
|
120
|
+
rgba(
|
|
121
|
+
var(--jp-shadow-base-lightness),
|
|
122
|
+
var(--jp-shadow-base-lightness),
|
|
123
|
+
var(--jp-shadow-base-lightness),
|
|
124
|
+
0.6
|
|
125
|
+
);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.jp-DebuggerRichVariable div[data-mime-type='text/plain'] > pre {
|
|
129
|
+
white-space: normal;
|
|
130
|
+
}
|