@jupyterlab/debugger 4.5.0-alpha.4 → 4.5.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.
@@ -30,6 +30,28 @@ export class BreakpointsModel implements IDebugger.Model.IBreakpoints {
30
30
  return this._clicked;
31
31
  }
32
32
 
33
+ /**
34
+ * Signal emitted when the selected breakpoint changes.
35
+ */
36
+ get selectedChanged(): Signal<this, IDebugger.IBreakpoint> {
37
+ return this._selectedChanged;
38
+ }
39
+
40
+ /**
41
+ * Get selected breakpoint
42
+ */
43
+ get selectedBreakpoint(): IDebugger.IBreakpoint {
44
+ return this._selectedBreakpoint;
45
+ }
46
+
47
+ /**
48
+ * Set selected breakpoint
49
+ */
50
+ set selectedBreakpoint(selected: IDebugger.IBreakpoint) {
51
+ this._selectedBreakpoint = selected;
52
+ this._selectedChanged.emit(selected);
53
+ }
54
+
33
55
  /**
34
56
  * Get all the breakpoints.
35
57
  */
@@ -71,4 +93,6 @@ export class BreakpointsModel implements IDebugger.Model.IBreakpoints {
71
93
  private _changed = new Signal<this, IDebugger.IBreakpoint[]>(this);
72
94
  private _restored = new Signal<this, void>(this);
73
95
  private _clicked = new Signal<this, IDebugger.IBreakpoint>(this);
96
+ private _selectedBreakpoint: IDebugger.IBreakpoint;
97
+ private _selectedChanged = new Signal<this, IDebugger.IBreakpoint>(this);
74
98
  }
package/src/service.ts CHANGED
@@ -256,11 +256,15 @@ export class DebuggerService implements IDebugger, IDisposable {
256
256
  expression,
257
257
  frameId
258
258
  });
259
+
259
260
  if (!reply.success) {
260
261
  return null;
261
262
  }
263
+
264
+ // TODO - Should this be here?
265
+ this._model.variables.scopes = [];
266
+
262
267
  // get the frames to retrieve the latest state of the variables
263
- this._clearModel();
264
268
  await this._getAllFrames();
265
269
 
266
270
  return reply.body;
@@ -593,7 +597,6 @@ export class DebuggerService implements IDebugger, IDisposable {
593
597
 
594
598
  // Update the local model and finish kernel configuration.
595
599
  this._model.breakpoints.setBreakpoints(path, updatedBreakpoints);
596
- await this.session.sendRequest('configurationDone', {});
597
600
  }
598
601
 
599
602
  /**
package/src/tokens.ts CHANGED
@@ -855,6 +855,16 @@ export namespace IDebugger {
855
855
  */
856
856
  readonly restored: ISignal<this, void>;
857
857
 
858
+ /**
859
+ * Signal emitted when the breakpoints are restored.
860
+ */
861
+ readonly selectedChanged: Signal<this, IDebugger.IBreakpoint>;
862
+
863
+ /**
864
+ * Selected breakpoint
865
+ */
866
+ selectedBreakpoint: IDebugger.IBreakpoint | null;
867
+
858
868
  /**
859
869
  * Get the breakpoints for a given id (path).
860
870
  *
@@ -18,6 +18,7 @@
18
18
  .jp-DebuggerBreakpoint {
19
19
  display: flex;
20
20
  align-items: center;
21
+ height: 24px;
21
22
  }
22
23
 
23
24
  .jp-DebuggerBreakpoint:hover {
@@ -25,11 +26,12 @@
25
26
  cursor: pointer;
26
27
  }
27
28
 
28
- .jp-DebuggerBreakpoint-marker {
29
- font-size: 20px;
30
- padding-right: 5px;
31
- content: '●';
32
- color: var(--jp-error-color1);
29
+ .jp-DebuggerBreakpoint-container {
30
+ height: 24px;
31
+ display: flex;
32
+ align-items: center;
33
+ justify-content: center;
34
+ margin-right: 10px;
33
35
  }
34
36
 
35
37
  .jp-DebuggerBreakpoint-source {
@@ -56,7 +58,6 @@
56
58
  }
57
59
 
58
60
  [data-jp-debugger='true'] .cm-breakpoint-gutter .cm-gutterElement:empty::after {
59
- content: '●';
60
61
  color: var(--jp-error-color1);
61
62
  opacity: 0;
62
63
  }
@@ -66,11 +67,8 @@
66
67
  }
67
68
 
68
69
  .cm-breakpoint-gutter .cm-gutterElement {
69
- color: var(--jp-error-color1);
70
- padding-left: 5px;
71
- font-size: 20px;
72
- position: relative;
73
- top: -5px;
70
+ padding-top: 1.1px;
71
+ height: 18.2px;
74
72
  }
75
73
 
76
74
  [data-jp-debugger='true'].jp-Editor