@jupyterlab/debugger 3.3.0-alpha.6 → 3.3.0-beta.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.
Files changed (102) hide show
  1. package/lib/debugger.d.ts +10 -2
  2. package/lib/debugger.js +12 -3
  3. package/lib/debugger.js.map +1 -1
  4. package/lib/handler.d.ts +32 -3
  5. package/lib/handler.js +70 -66
  6. package/lib/handler.js.map +1 -1
  7. package/lib/handlers/editor.d.ts +8 -0
  8. package/lib/handlers/editor.js +12 -0
  9. package/lib/handlers/editor.js.map +1 -1
  10. package/lib/handlers/file.d.ts +1 -0
  11. package/lib/handlers/file.js +6 -1
  12. package/lib/handlers/file.js.map +1 -1
  13. package/lib/handlers/notebook.js +12 -2
  14. package/lib/handlers/notebook.js.map +1 -1
  15. package/lib/icons.d.ts +2 -0
  16. package/lib/icons.js +10 -0
  17. package/lib/icons.js.map +1 -1
  18. package/lib/index.d.ts +1 -1
  19. package/lib/index.js +1 -1
  20. package/lib/index.js.map +1 -1
  21. package/lib/model.d.ts +13 -1
  22. package/lib/model.js +13 -0
  23. package/lib/model.js.map +1 -1
  24. package/lib/panels/breakpoints/body.d.ts +1 -1
  25. package/lib/panels/breakpoints/body.js +1 -1
  26. package/lib/panels/breakpoints/body.js.map +1 -1
  27. package/lib/panels/breakpoints/header.d.ts +1 -1
  28. package/lib/panels/breakpoints/header.js +1 -1
  29. package/lib/panels/breakpoints/header.js.map +1 -1
  30. package/lib/panels/breakpoints/index.d.ts +18 -0
  31. package/lib/panels/breakpoints/index.js +11 -5
  32. package/lib/panels/breakpoints/index.js.map +1 -1
  33. package/lib/panels/callstack/body.d.ts +1 -1
  34. package/lib/panels/callstack/body.js +2 -2
  35. package/lib/panels/callstack/body.js.map +1 -1
  36. package/lib/panels/callstack/header.d.ts +1 -1
  37. package/lib/panels/callstack/header.js +1 -1
  38. package/lib/panels/callstack/header.js.map +1 -1
  39. package/lib/panels/callstack/index.js +1 -1
  40. package/lib/panels/callstack/index.js.map +1 -1
  41. package/lib/panels/callstack/model.d.ts +3 -3
  42. package/lib/panels/callstack/model.js +3 -1
  43. package/lib/panels/callstack/model.js.map +1 -1
  44. package/lib/panels/kernelSources/body.d.ts +47 -0
  45. package/lib/panels/kernelSources/body.js +86 -0
  46. package/lib/panels/kernelSources/body.js.map +1 -0
  47. package/lib/panels/kernelSources/filter.d.ts +13 -0
  48. package/lib/panels/kernelSources/filter.js +17 -0
  49. package/lib/panels/kernelSources/filter.js.map +1 -0
  50. package/lib/panels/kernelSources/header.d.ts +19 -0
  51. package/lib/panels/kernelSources/header.js +33 -0
  52. package/lib/panels/kernelSources/header.js.map +1 -0
  53. package/lib/panels/kernelSources/index.d.ts +39 -0
  54. package/lib/panels/kernelSources/index.js +59 -0
  55. package/lib/panels/kernelSources/index.js.map +1 -0
  56. package/lib/panels/kernelSources/model.d.ts +56 -0
  57. package/lib/panels/kernelSources/model.js +86 -0
  58. package/lib/panels/kernelSources/model.js.map +1 -0
  59. package/lib/panels/sources/header.d.ts +1 -1
  60. package/lib/panels/sources/header.js +1 -1
  61. package/lib/panels/sources/header.js.map +1 -1
  62. package/lib/panels/sources/index.js +1 -1
  63. package/lib/panels/sources/index.js.map +1 -1
  64. package/lib/panels/sources/model.d.ts +2 -2
  65. package/lib/panels/variables/grid.js +58 -3
  66. package/lib/panels/variables/grid.js.map +1 -1
  67. package/lib/panels/variables/header.d.ts +1 -1
  68. package/lib/panels/variables/header.js +1 -1
  69. package/lib/panels/variables/header.js.map +1 -1
  70. package/lib/panels/variables/index.js +8 -2
  71. package/lib/panels/variables/index.js.map +1 -1
  72. package/lib/panels/variables/mimerenderer.d.ts +44 -0
  73. package/lib/panels/variables/mimerenderer.js +75 -0
  74. package/lib/panels/variables/mimerenderer.js.map +1 -0
  75. package/lib/panels/variables/model.d.ts +3 -0
  76. package/lib/panels/variables/model.js +7 -0
  77. package/lib/panels/variables/model.js.map +1 -1
  78. package/lib/panels/variables/scope.d.ts +1 -1
  79. package/lib/panels/variables/scope.js +2 -1
  80. package/lib/panels/variables/scope.js.map +1 -1
  81. package/lib/panels/variables/tree.d.ts +14 -1
  82. package/lib/panels/variables/tree.js +47 -9
  83. package/lib/panels/variables/tree.js.map +1 -1
  84. package/lib/service.d.ts +25 -1
  85. package/lib/service.js +122 -6
  86. package/lib/service.js.map +1 -1
  87. package/lib/session.d.ts +23 -1
  88. package/lib/session.js +39 -5
  89. package/lib/session.js.map +1 -1
  90. package/lib/sidebar.d.ts +9 -0
  91. package/lib/sidebar.js +9 -1
  92. package/lib/sidebar.js.map +1 -1
  93. package/lib/tokens.d.ts +166 -11
  94. package/lib/tokens.js +4 -0
  95. package/lib/tokens.js.map +1 -1
  96. package/package.json +21 -21
  97. package/style/base.css +5 -0
  98. package/style/icons/open-kernel-source.svg +6 -0
  99. package/style/icons/pause.svg +6 -0
  100. package/style/icons.css +10 -0
  101. package/style/kernelSources.css +42 -0
  102. package/style/variables.css +46 -0
package/lib/tokens.d.ts CHANGED
@@ -1,10 +1,11 @@
1
1
  import { CodeEditor, CodeEditorWrapper } from '@jupyterlab/codeeditor';
2
2
  import { KernelMessage, Session } from '@jupyterlab/services';
3
- import { Token } from '@lumino/coreutils';
3
+ import { ReadonlyJSONObject, Token } from '@lumino/coreutils';
4
4
  import { IObservableDisposable } from '@lumino/disposable';
5
5
  import { ISignal, Signal } from '@lumino/signaling';
6
6
  import { Widget } from '@lumino/widgets';
7
- import { DebugProtocol } from 'vscode-debugprotocol';
7
+ import { DebugProtocol } from '@vscode/debugprotocol';
8
+ import { DebuggerHandler } from './handler';
8
9
  /**
9
10
  * An interface describing an application's visual debugger.
10
11
  */
@@ -17,6 +18,10 @@ export interface IDebugger {
17
18
  * Whether the current debugger is started.
18
19
  */
19
20
  readonly isStarted: boolean;
21
+ /**
22
+ * Whether the session is pausing for exceptions.
23
+ */
24
+ readonly isPausingOnExceptions: boolean;
20
25
  /**
21
26
  * The debugger service's model.
22
27
  */
@@ -33,6 +38,14 @@ export interface IDebugger {
33
38
  * Removes all the breakpoints from the current notebook or console
34
39
  */
35
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>;
36
49
  /**
37
50
  * Continues the execution of the current thread.
38
51
  */
@@ -61,6 +74,14 @@ export interface IDebugger {
61
74
  * @param variablesReference The variable reference to request.
62
75
  */
63
76
  inspectVariable(variablesReference: number): Promise<DebugProtocol.Variable[]>;
77
+ /**
78
+ * Request rich representation of a variable.
79
+ *
80
+ * @param variableName The variable name to request
81
+ * @param frameId The current frame id in which to request the variable
82
+ * @returns The mime renderer data model
83
+ */
84
+ inspectRichVariable(variableName: string, frameId?: number): Promise<IDebugger.IRichVariable>;
64
85
  /**
65
86
  * Requests all the defined variables and display them in the
66
87
  * table view.
@@ -76,6 +97,10 @@ export interface IDebugger {
76
97
  * Makes the current thread run again for one step.
77
98
  */
78
99
  next(): Promise<void>;
100
+ /**
101
+ * Requests all the loaded modules and display them.
102
+ */
103
+ displayModules(): Promise<void>;
79
104
  /**
80
105
  * Restart the debugger.
81
106
  * Precondition: isStarted
@@ -164,6 +189,19 @@ export declare namespace IDebugger {
164
189
  */
165
190
  breakpoints: Map<string, IDebugger.IBreakpoint[]>;
166
191
  };
192
+ /**
193
+ * The type for a kernel source file.
194
+ */
195
+ type KernelSource = {
196
+ /**
197
+ * The name of the source.
198
+ */
199
+ name: string;
200
+ /**
201
+ * The path of the source.
202
+ */
203
+ path: string;
204
+ };
167
205
  /**
168
206
  * Debugger file and hashing configuration.
169
207
  */
@@ -194,6 +232,11 @@ export declare namespace IDebugger {
194
232
  */
195
233
  getTmpFileParams(kernel: string): IConfig.FileParams;
196
234
  }
235
+ /**
236
+ * An interface for debugger handler.
237
+ */
238
+ interface IHandler extends DebuggerHandler.IHandler {
239
+ }
197
240
  /**
198
241
  * An interface for a scope.
199
242
  */
@@ -215,10 +258,23 @@ export declare namespace IDebugger {
215
258
  * The API session connection to connect to a debugger.
216
259
  */
217
260
  connection: Session.ISessionConnection | null;
261
+ readonly capabilities: DebugProtocol.Capabilities | undefined;
218
262
  /**
219
- * Whether the debug session is started
263
+ * Whether the debug session is started.
220
264
  */
221
265
  readonly isStarted: boolean;
266
+ /**
267
+ * Whether the debug session is pausing on exceptions.
268
+ */
269
+ pausingOnExceptions: string[];
270
+ /**
271
+ * Whether the debug session is pausing on exceptions.
272
+ */
273
+ exceptionPaths: string[];
274
+ /**
275
+ * Get exception filters and default values.
276
+ */
277
+ exceptionBreakpointFilters: DebugProtocol.ExceptionBreakpointsFilter[] | undefined;
222
278
  /**
223
279
  * Signal emitted for debug event messages.
224
280
  */
@@ -264,6 +320,19 @@ export declare namespace IDebugger {
264
320
  */
265
321
  interface IStackFrame extends DebugProtocol.StackFrame {
266
322
  }
323
+ /**
324
+ * A reply to an rich inspection request.
325
+ */
326
+ interface IRichVariable {
327
+ /**
328
+ * The MIME bundle data returned from an rich inspection request.
329
+ */
330
+ data: ReadonlyJSONObject;
331
+ /**
332
+ * Any metadata that accompanies the MIME bundle returning from a rich inspection request.
333
+ */
334
+ metadata: ReadonlyJSONObject;
335
+ }
267
336
  /**
268
337
  * An interface for a variable.
269
338
  */
@@ -325,7 +394,7 @@ export declare namespace IDebugger {
325
394
  completions: DebugProtocol.CompletionsArguments;
326
395
  configurationDone: DebugProtocol.ConfigurationDoneArguments;
327
396
  continue: DebugProtocol.ContinueArguments;
328
- debugInfo: Record<string, never>;
397
+ debugInfo: {};
329
398
  disconnect: DebugProtocol.DisconnectArguments;
330
399
  dumpCell: IDumpCellArguments;
331
400
  evaluate: DebugProtocol.EvaluateArguments;
@@ -333,7 +402,7 @@ export declare namespace IDebugger {
333
402
  goto: DebugProtocol.GotoArguments;
334
403
  gotoTargets: DebugProtocol.GotoTargetsArguments;
335
404
  initialize: DebugProtocol.InitializeRequestArguments;
336
- inspectVariables: Record<string, never>;
405
+ inspectVariables: {};
337
406
  launch: DebugProtocol.LaunchRequestArguments;
338
407
  loadedSources: DebugProtocol.LoadedSourcesArguments;
339
408
  modules: DebugProtocol.ModulesArguments;
@@ -342,6 +411,7 @@ export declare namespace IDebugger {
342
411
  restart: DebugProtocol.RestartArguments;
343
412
  restartFrame: DebugProtocol.RestartFrameArguments;
344
413
  reverseContinue: DebugProtocol.ReverseContinueArguments;
414
+ richInspectVariables: IRichVariablesArguments;
345
415
  scopes: DebugProtocol.ScopesArguments;
346
416
  setBreakpoints: DebugProtocol.SetBreakpointsArguments;
347
417
  setExceptionBreakpoints: DebugProtocol.SetExceptionBreakpointsArguments;
@@ -356,7 +426,7 @@ export declare namespace IDebugger {
356
426
  stepOut: DebugProtocol.StepOutArguments;
357
427
  terminate: DebugProtocol.TerminateArguments;
358
428
  terminateThreads: DebugProtocol.TerminateThreadsArguments;
359
- threads: Record<string, never>;
429
+ threads: {};
360
430
  variables: DebugProtocol.VariablesArguments;
361
431
  };
362
432
  /**
@@ -384,6 +454,7 @@ export declare namespace IDebugger {
384
454
  restart: DebugProtocol.RestartResponse;
385
455
  restartFrame: DebugProtocol.RestartFrameResponse;
386
456
  reverseContinue: DebugProtocol.ReverseContinueResponse;
457
+ richInspectVariables: IRichVariablesResponse;
387
458
  scopes: DebugProtocol.ScopesResponse;
388
459
  setBreakpoints: DebugProtocol.SetBreakpointsResponse;
389
460
  setExceptionBreakpoints: DebugProtocol.SetExceptionBreakpointsResponse;
@@ -415,13 +486,18 @@ export declare namespace IDebugger {
415
486
  */
416
487
  interface IDebugInfoResponse extends DebugProtocol.Response {
417
488
  body: {
418
- isStarted: boolean;
489
+ breakpoints: IDebugInfoBreakpoints[];
419
490
  hashMethod: string;
420
491
  hashSeed: number;
421
- breakpoints: IDebugInfoBreakpoints[];
492
+ isStarted: boolean;
493
+ /**
494
+ * Whether the kernel supports variable rich rendering or not.
495
+ */
496
+ richRendering?: boolean;
422
497
  tmpFilePrefix: string;
423
498
  tmpFileSuffix: string;
424
499
  stoppedThreads: number[];
500
+ exceptionPaths: string[];
425
501
  };
426
502
  }
427
503
  /**
@@ -447,6 +523,34 @@ export declare namespace IDebugger {
447
523
  variables: DebugProtocol.Variable[];
448
524
  };
449
525
  }
526
+ /**
527
+ * Arguments for 'richVariables' request
528
+ *
529
+ * This is an addition to the Debug Adapter Protocol to support
530
+ * render rich variable representation.
531
+ */
532
+ interface IRichVariablesArguments {
533
+ /**
534
+ * Variable name
535
+ */
536
+ variableName: string;
537
+ /**
538
+ * Frame Id
539
+ */
540
+ frameId?: number;
541
+ }
542
+ /**
543
+ * Arguments for 'richVariables' request
544
+ *
545
+ * This is an addition to the Debug Adapter Protocol to support
546
+ * rich rendering of variables.
547
+ */
548
+ interface IRichVariablesResponse extends DebugProtocol.Response {
549
+ /**
550
+ * Variable mime type data
551
+ */
552
+ body: IRichVariable;
553
+ }
450
554
  /**
451
555
  * Response to the 'kernel_info_request' request.
452
556
  * This interface extends the IInfoReply by adding the `debugger` key
@@ -457,6 +561,16 @@ export declare namespace IDebugger {
457
561
  debugger: boolean;
458
562
  }
459
563
  }
564
+ /**
565
+ * Select variable in the variables explorer.
566
+ *
567
+ * @hidden
568
+ *
569
+ * #### Notes
570
+ * This is experimental API
571
+ */
572
+ interface IVariableSelection extends Pick<DebugProtocol.Variable, 'name' | 'type' | 'variablesReference' | 'value'> {
573
+ }
460
574
  /**
461
575
  * Debugger sidebar interface.
462
576
  */
@@ -568,11 +682,11 @@ export declare namespace IDebugger {
568
682
  /**
569
683
  * Signal emitted when the current frame has changed.
570
684
  */
571
- readonly currentFrameChanged: ISignal<this, IDebugger.IStackFrame>;
685
+ readonly currentFrameChanged: ISignal<this, IDebugger.IStackFrame | null>;
572
686
  /**
573
687
  * The current frame.
574
688
  */
575
- frame: IDebugger.IStackFrame;
689
+ frame: IDebugger.IStackFrame | null;
576
690
  /**
577
691
  * The frames for the callstack.
578
692
  */
@@ -594,6 +708,10 @@ export declare namespace IDebugger {
594
708
  * The callstack UI model.
595
709
  */
596
710
  readonly callstack: ICallstack;
711
+ /**
712
+ * Whether the kernel support rich variable rendering based on mime type.
713
+ */
714
+ hasRichVariableRendering: boolean;
597
715
  /**
598
716
  * The variables UI model.
599
717
  */
@@ -602,6 +720,10 @@ export declare namespace IDebugger {
602
720
  * The sources UI model.
603
721
  */
604
722
  readonly sources: ISources;
723
+ /**
724
+ * The kernel sources UI model.
725
+ */
726
+ readonly kernelSources: IKernelSources;
605
727
  /**
606
728
  * The set of threads in stopped state.
607
729
  */
@@ -626,7 +748,7 @@ export declare namespace IDebugger {
626
748
  /**
627
749
  * Signal emitted when the current frame changes.
628
750
  */
629
- readonly currentFrameChanged: ISignal<IDebugger.Model.ICallstack, IDebugger.IStackFrame>;
751
+ readonly currentFrameChanged: ISignal<IDebugger.Model.ICallstack, IDebugger.IStackFrame | null>;
630
752
  /**
631
753
  * Return the current source.
632
754
  */
@@ -644,6 +766,31 @@ export declare namespace IDebugger {
644
766
  */
645
767
  open(): void;
646
768
  }
769
+ /**
770
+ * The kernel sources UI model.
771
+ */
772
+ interface IKernelSources {
773
+ /**
774
+ * The kernel source.
775
+ */
776
+ kernelSources: IDebugger.KernelSource[] | null;
777
+ /**
778
+ * The filter to apply.
779
+ */
780
+ filter: string;
781
+ /**
782
+ * Signal emitted when the kernel sources have changed.
783
+ */
784
+ readonly changed: ISignal<IDebugger.Model.IKernelSources, IDebugger.KernelSource[] | null>;
785
+ /**
786
+ * Signal emitted when a kernel source has be opened in the main area.
787
+ */
788
+ readonly kernelSourceOpened: ISignal<IDebugger.Model.IKernelSources, IDebugger.Source | null>;
789
+ /**
790
+ * Open a source in the main area.
791
+ */
792
+ open(source: IDebugger.Source): void;
793
+ }
647
794
  /**
648
795
  * The variables UI model.
649
796
  */
@@ -660,6 +807,10 @@ export declare namespace IDebugger {
660
807
  * Signal emitted when the current variable has been expanded.
661
808
  */
662
809
  readonly variableExpanded: ISignal<this, IDebugger.IVariable>;
810
+ /**
811
+ * Selected variable in the variables explorer.
812
+ */
813
+ selectedVariable: IVariableSelection | null;
663
814
  /**
664
815
  * Expand a variable.
665
816
  *
@@ -685,3 +836,7 @@ export declare const IDebuggerSources: Token<IDebugger.ISources>;
685
836
  * The debugger configuration token.
686
837
  */
687
838
  export declare const IDebuggerSidebar: Token<IDebugger.ISidebar>;
839
+ /**
840
+ * The debugger handler token.
841
+ */
842
+ export declare const IDebuggerHandler: Token<IDebugger.IHandler>;
package/lib/tokens.js CHANGED
@@ -17,4 +17,8 @@ export const IDebuggerSources = new Token('@jupyterlab/debugger:IDebuggerSources
17
17
  * The debugger configuration token.
18
18
  */
19
19
  export const IDebuggerSidebar = new Token('@jupyterlab/debugger:IDebuggerSidebar');
20
+ /**
21
+ * The debugger handler token.
22
+ */
23
+ export const IDebuggerHandler = new Token('@jupyterlab/debugger:IDebuggerHandler');
20
24
  //# sourceMappingURL=tokens.js.map
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,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AA8xB1C;;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"}
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;AA+9B9D;;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-alpha.6",
3
+ "version": "3.3.0-beta.0",
4
4
  "description": "JupyterLab - Debugger Extension",
5
5
  "keywords": [
6
6
  "jupyter",
@@ -48,37 +48,37 @@
48
48
  "watch": "tsc -b --watch"
49
49
  },
50
50
  "dependencies": {
51
- "@jupyterlab/application": "^3.3.0-alpha.6",
52
- "@jupyterlab/apputils": "^3.3.0-alpha.6",
53
- "@jupyterlab/cells": "^3.3.0-alpha.6",
54
- "@jupyterlab/codeeditor": "^3.3.0-alpha.6",
55
- "@jupyterlab/codemirror": "^3.3.0-alpha.6",
56
- "@jupyterlab/console": "^3.3.0-alpha.6",
57
- "@jupyterlab/coreutils": "^5.3.0-alpha.6",
58
- "@jupyterlab/docregistry": "^3.3.0-alpha.6",
59
- "@jupyterlab/fileeditor": "^3.3.0-alpha.6",
60
- "@jupyterlab/notebook": "^3.3.0-alpha.6",
61
- "@jupyterlab/observables": "^4.3.0-alpha.6",
62
- "@jupyterlab/rendermime": "^3.3.0-alpha.6",
63
- "@jupyterlab/services": "^6.3.0-alpha.6",
64
- "@jupyterlab/translation": "^3.3.0-alpha.6",
65
- "@jupyterlab/ui-components": "^3.3.0-alpha.6",
51
+ "@jupyterlab/application": "^3.3.0-beta.0",
52
+ "@jupyterlab/apputils": "^3.3.0-beta.0",
53
+ "@jupyterlab/cells": "^3.3.0-beta.0",
54
+ "@jupyterlab/codeeditor": "^3.3.0-beta.0",
55
+ "@jupyterlab/codemirror": "^3.3.0-beta.0",
56
+ "@jupyterlab/console": "^3.3.0-beta.0",
57
+ "@jupyterlab/coreutils": "^5.3.0-beta.0",
58
+ "@jupyterlab/docregistry": "^3.3.0-beta.0",
59
+ "@jupyterlab/fileeditor": "^3.3.0-beta.0",
60
+ "@jupyterlab/notebook": "^3.3.0-beta.0",
61
+ "@jupyterlab/observables": "^4.3.0-beta.0",
62
+ "@jupyterlab/rendermime": "^3.3.0-beta.0",
63
+ "@jupyterlab/services": "^6.3.0-beta.0",
64
+ "@jupyterlab/translation": "^3.3.0-beta.0",
65
+ "@jupyterlab/ui-components": "^3.3.0-beta.0",
66
66
  "@lumino/algorithm": "^1.3.3",
67
67
  "@lumino/commands": "^1.12.0",
68
68
  "@lumino/coreutils": "^1.5.3",
69
- "@lumino/datagrid": "^0.28.0",
69
+ "@lumino/datagrid": "^0.20.0",
70
70
  "@lumino/disposable": "^1.4.3",
71
71
  "@lumino/messaging": "^1.4.3",
72
72
  "@lumino/signaling": "^1.4.3",
73
- "@lumino/widgets": "^1.26.0",
73
+ "@lumino/widgets": "^1.19.0",
74
+ "@vscode/debugprotocol": "^1.51.0",
74
75
  "codemirror": "~5.61.0",
75
- "react": "^17.0.1",
76
- "vscode-debugprotocol": "^1.37.0"
76
+ "react": "^17.0.1"
77
77
  },
78
78
  "devDependencies": {
79
79
  "@babel/core": "^7.10.2",
80
80
  "@babel/preset-env": "^7.10.2",
81
- "@jupyterlab/testutils": "^3.3.0-alpha.6",
81
+ "@jupyterlab/testutils": "^3.3.0-beta.0",
82
82
  "@types/codemirror": "^0.0.109",
83
83
  "@types/jest": "^26.0.10",
84
84
  "@types/react-dom": "^17.0.0",
package/style/base.css CHANGED
@@ -8,6 +8,7 @@
8
8
  @import './icons.css';
9
9
  @import './sidebar.css';
10
10
  @import './sources.css';
11
+ @import './kernelSources.css';
11
12
  @import './variables.css';
12
13
 
13
14
  .jp-left-truncated {
@@ -19,3 +20,7 @@
19
20
  #jp-debugger .jp-switch-label {
20
21
  margin-right: 0px;
21
22
  }
23
+
24
+ .jp-DebuggerBugButton[aria-pressed='true'] path {
25
+ fill: var(--jp-warn-color0);
26
+ }
@@ -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>
@@ -0,0 +1,6 @@
1
+ <svg height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
2
+ <g class="jp-icon3" fill="#616161">
3
+ <path d="m 7,6 h 4 V 18 H 7 Z" />
4
+ <path d="m 13,6 h 4 v 12 h -4 z" />
5
+ </g>
6
+ </svg>
package/style/icons.css CHANGED
@@ -25,3 +25,13 @@ button.jp-Button.bp3-button.bp3-minimal.jp-TableView:hover {
25
25
  .jp-ViewModeSelected {
26
26
  background-color: var(--jp-layout-color1);
27
27
  }
28
+
29
+ /* Pause on exceptions */
30
+ button.jp-Button.jp-mod-minimal.jp-PauseOnExceptions:hover {
31
+ cursor: pointer;
32
+ background-color: var(--jp-layout-color1);
33
+ }
34
+
35
+ button.jp-Button.jp-PauseOnExceptions.lm-mod-toggled {
36
+ background-color: var(--jp-layout-color1);
37
+ }
@@ -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: 0px;
36
+ flex: 0 0 auto;
37
+ margin: 0px 0px 0px 0px;
38
+ }
39
+
40
+ .jp-DebuggerKernelSource-filterBox-hidden {
41
+ display: none;
42
+ }
@@ -30,6 +30,38 @@
30
30
  padding: 5px 0 0 0;
31
31
  cursor: pointer;
32
32
  color: var(--jp-content-font-color1);
33
+ display: flex;
34
+ align-items: center;
35
+ }
36
+
37
+ .jp-DebuggerVariables-body ul li:hover .jp-DebuggerVariables-renderVariable {
38
+ display: block;
39
+ }
40
+
41
+ .jp-DebuggerVariables-body .jp-DebuggerVariables-hspacer {
42
+ flex: 1 1 auto;
43
+ }
44
+
45
+ .jp-DebuggerVariables-body .jp-DebuggerVariables-renderVariable {
46
+ flex: 0 0 auto;
47
+ border: none;
48
+ background: none;
49
+ cursor: pointer;
50
+ display: none;
51
+ padding: 0px 8px;
52
+ }
53
+
54
+ .jp-DebuggerVariables-body .jp-DebuggerVariables-renderVariable:active {
55
+ transform: scale(1.272) translateX(-4px);
56
+ overflow: hidden;
57
+ }
58
+
59
+ .jp-DebuggerVariables-body .jp-DebuggerVariables-renderVariable:hover {
60
+ background-color: var(--jp-layout-color2);
61
+ }
62
+
63
+ .jp-DebuggerVariables-body .jp-DebuggerVariables-renderVariable:disabled {
64
+ cursor: default;
33
65
  }
34
66
 
35
67
  .jp-DebuggerVariables-body ul li > ul {
@@ -84,3 +116,17 @@
84
116
  .jp-DebuggerVariables-colorPalette .jp-mod-text {
85
117
  color: var(--jp-content-font-color0);
86
118
  }
119
+
120
+ .jp-VariableRenderer-TrustButton[aria-pressed='true'] {
121
+ box-shadow: inset 0 var(--jp-border-width) 4px
122
+ rgba(
123
+ var(--jp-shadow-base-lightness),
124
+ var(--jp-shadow-base-lightness),
125
+ var(--jp-shadow-base-lightness),
126
+ 0.6
127
+ );
128
+ }
129
+
130
+ .jp-DebuggerRichVariable div[data-mime-type='text/plain'] > pre {
131
+ white-space: normal;
132
+ }