@jupyterlab/debugger 4.0.0-alpha.10 → 4.0.0-alpha.13

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 (39) hide show
  1. package/lib/dialogs/evaluate.js +4 -0
  2. package/lib/dialogs/evaluate.js.map +1 -1
  3. package/lib/handler.js +9 -3
  4. package/lib/handler.js.map +1 -1
  5. package/lib/handlers/console.js +3 -2
  6. package/lib/handlers/console.js.map +1 -1
  7. package/lib/handlers/editor.d.ts +10 -6
  8. package/lib/handlers/editor.js +144 -75
  9. package/lib/handlers/editor.js.map +1 -1
  10. package/lib/model.js +1 -0
  11. package/lib/model.js.map +1 -1
  12. package/lib/panels/breakpoints/index.js +1 -1
  13. package/lib/panels/breakpoints/index.js.map +1 -1
  14. package/lib/panels/kernelSources/body.d.ts +5 -7
  15. package/lib/panels/kernelSources/body.js +37 -47
  16. package/lib/panels/kernelSources/body.js.map +1 -1
  17. package/lib/panels/kernelSources/filter.d.ts +1 -2
  18. package/lib/panels/kernelSources/filter.js +2 -2
  19. package/lib/panels/kernelSources/filter.js.map +1 -1
  20. package/lib/panels/kernelSources/index.js +1 -1
  21. package/lib/panels/kernelSources/index.js.map +1 -1
  22. package/lib/panels/kernelSources/model.d.ts +10 -1
  23. package/lib/panels/kernelSources/model.js +19 -1
  24. package/lib/panels/kernelSources/model.js.map +1 -1
  25. package/lib/panels/variables/grid.js +2 -0
  26. package/lib/panels/variables/grid.js.map +1 -1
  27. package/lib/panels/variables/mimerenderer.js +8 -0
  28. package/lib/panels/variables/mimerenderer.js.map +1 -1
  29. package/lib/panels/variables/scope.js +4 -0
  30. package/lib/panels/variables/scope.js.map +1 -1
  31. package/lib/service.js +11 -1
  32. package/lib/service.js.map +1 -1
  33. package/lib/sources.js +4 -5
  34. package/lib/sources.js.map +1 -1
  35. package/lib/tokens.d.ts +2 -2
  36. package/package.json +29 -29
  37. package/style/breakpoints.css +21 -12
  38. package/style/kernelSources.css +3 -0
  39. package/style/variables.css +10 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jupyterlab/debugger",
3
- "version": "4.0.0-alpha.10",
3
+ "version": "4.0.0-alpha.13",
4
4
  "description": "JupyterLab - Debugger Extension",
5
5
  "keywords": [
6
6
  "jupyter",
@@ -48,39 +48,39 @@
48
48
  "watch": "tsc -b --watch"
49
49
  },
50
50
  "dependencies": {
51
- "@jupyterlab/application": "^4.0.0-alpha.10",
52
- "@jupyterlab/apputils": "^4.0.0-alpha.10",
53
- "@jupyterlab/cells": "^4.0.0-alpha.10",
54
- "@jupyterlab/codeeditor": "^4.0.0-alpha.10",
55
- "@jupyterlab/codemirror": "^4.0.0-alpha.10",
56
- "@jupyterlab/console": "^4.0.0-alpha.10",
57
- "@jupyterlab/coreutils": "^6.0.0-alpha.10",
58
- "@jupyterlab/docregistry": "^4.0.0-alpha.10",
59
- "@jupyterlab/fileeditor": "^4.0.0-alpha.10",
60
- "@jupyterlab/notebook": "^4.0.0-alpha.10",
61
- "@jupyterlab/observables": "^5.0.0-alpha.10",
62
- "@jupyterlab/rendermime": "^4.0.0-alpha.10",
63
- "@jupyterlab/services": "^7.0.0-alpha.10",
64
- "@jupyterlab/translation": "^4.0.0-alpha.10",
65
- "@jupyterlab/ui-components": "^4.0.0-alpha.25",
66
- "@lumino/algorithm": "^1.9.1",
67
- "@lumino/commands": "^1.20.0",
68
- "@lumino/coreutils": "^1.12.0",
69
- "@lumino/datagrid": "^0.36.0",
70
- "@lumino/disposable": "^1.10.1",
71
- "@lumino/messaging": "^1.10.1",
72
- "@lumino/polling": "^1.10.0",
73
- "@lumino/signaling": "^1.10.1",
74
- "@lumino/widgets": "^1.32.0",
51
+ "@codemirror/state": "^6.0.0",
52
+ "@codemirror/view": "^6.0.0",
53
+ "@jupyterlab/application": "^4.0.0-alpha.13",
54
+ "@jupyterlab/apputils": "^4.0.0-alpha.13",
55
+ "@jupyterlab/cells": "^4.0.0-alpha.13",
56
+ "@jupyterlab/codeeditor": "^4.0.0-alpha.13",
57
+ "@jupyterlab/codemirror": "^4.0.0-alpha.13",
58
+ "@jupyterlab/console": "^4.0.0-alpha.13",
59
+ "@jupyterlab/coreutils": "^6.0.0-alpha.13",
60
+ "@jupyterlab/docregistry": "^4.0.0-alpha.13",
61
+ "@jupyterlab/fileeditor": "^4.0.0-alpha.13",
62
+ "@jupyterlab/notebook": "^4.0.0-alpha.13",
63
+ "@jupyterlab/observables": "^5.0.0-alpha.13",
64
+ "@jupyterlab/rendermime": "^4.0.0-alpha.13",
65
+ "@jupyterlab/services": "^7.0.0-alpha.13",
66
+ "@jupyterlab/translation": "^4.0.0-alpha.13",
67
+ "@jupyterlab/ui-components": "^4.0.0-alpha.28",
68
+ "@lumino/algorithm": "^2.0.0-alpha.1",
69
+ "@lumino/commands": "^2.0.0-alpha.1",
70
+ "@lumino/coreutils": "^2.0.0-alpha.1",
71
+ "@lumino/datagrid": "^1.0.0-alpha.1",
72
+ "@lumino/disposable": "^2.0.0-alpha.1",
73
+ "@lumino/messaging": "^2.0.0-alpha.1",
74
+ "@lumino/polling": "^2.0.0-alpha.1",
75
+ "@lumino/signaling": "^2.0.0-alpha.1",
76
+ "@lumino/widgets": "^2.0.0-alpha.1",
75
77
  "@vscode/debugprotocol": "^1.51.0",
76
- "codemirror": "~5.61.0",
77
78
  "react": "^17.0.1"
78
79
  },
79
80
  "devDependencies": {
80
81
  "@babel/core": "^7.10.2",
81
82
  "@babel/preset-env": "^7.10.2",
82
- "@jupyterlab/testutils": "^4.0.0-alpha.10",
83
- "@types/codemirror": "^0.0.109",
83
+ "@jupyterlab/testutils": "^4.0.0-alpha.13",
84
84
  "@types/jest": "^26.0.10",
85
85
  "@types/react-dom": "^17.0.0",
86
86
  "@types/text-encoding": "^0.0.35",
@@ -94,7 +94,7 @@
94
94
  "text-encoding": "^0.7.0",
95
95
  "ts-jest": "^26.3.0",
96
96
  "typedoc": "~0.22.10",
97
- "typescript": "~4.6.3"
97
+ "typescript": "~4.7.3"
98
98
  },
99
99
  "publishConfig": {
100
100
  "access": "public"
@@ -55,25 +55,34 @@
55
55
  margin-left: auto;
56
56
  }
57
57
 
58
- [data-jp-debugger='true'] .CodeMirror-gutter-wrapper::after {
58
+ [data-jp-debugger='true'] .cm-breakpoint-gutter .cm-gutterElement:empty::after {
59
59
  content: '●';
60
60
  color: var(--jp-error-color1);
61
61
  opacity: 0;
62
- position: absolute;
63
- left: 3px;
64
- top: -1px;
65
62
  }
66
63
 
67
- [data-jp-debugger='true'].jp-Editor .CodeMirror-gutter-wrapper:hover::after,
64
+ .cm-gutter {
65
+ cursor: default;
66
+ }
67
+
68
+ .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;
74
+ }
75
+
76
+ [data-jp-debugger='true'].jp-Editor
77
+ .cm-breakpoint-gutter
78
+ .cm-gutterElement:empty:hover::after,
68
79
  [data-jp-debugger='true']
69
80
  .jp-Notebook
70
81
  .jp-CodeCell.jp-mod-selected
71
- .CodeMirror-gutter-wrapper:hover::after,
72
- [data-jp-debugger='true'] .jp-Editor .CodeMirror-gutter-wrapper:hover::after {
73
- opacity: 0.5;
74
- }
75
-
76
- [data-jp-debugger='true'].jp-DebuggerEditors
77
- .CodeMirror-gutter-wrapper:hover::after {
82
+ .cm-breakpoint-gutter:empty:hover::after,
83
+ [data-jp-debugger='true']
84
+ .jp-Editor
85
+ .cm-breakpoint-gutter
86
+ .cm-gutterElement:empty:hover::after {
78
87
  opacity: 0.5;
79
88
  }
@@ -35,6 +35,9 @@
35
35
  padding: 0;
36
36
  flex: 0 0 auto;
37
37
  margin: 0;
38
+ position: sticky;
39
+ top: 0;
40
+ background-color: var(--jp-layout-color1);
38
41
  }
39
42
 
40
43
  .jp-DebuggerKernelSource-filterBox-hidden {
@@ -32,12 +32,11 @@
32
32
  padding: 5px 0 0;
33
33
  cursor: pointer;
34
34
  color: var(--jp-content-font-color1);
35
- display: flex;
36
35
  align-items: center;
37
36
  }
38
37
 
39
38
  .jp-DebuggerVariables-body ul li:hover .jp-DebuggerVariables-renderVariable {
40
- display: block;
39
+ display: inline-block;
41
40
  }
42
41
 
43
42
  .jp-DebuggerVariables-body .jp-DebuggerVariables-hspacer {
@@ -115,6 +114,15 @@
115
114
  color: var(--jp-content-font-color0);
116
115
  }
117
116
 
117
+ .jp-VariableRendererPanel {
118
+ overflow: auto;
119
+ }
120
+
121
+ .jp-VariableRendererPanel-renderer {
122
+ overflow: auto;
123
+ height: 100%;
124
+ }
125
+
118
126
  .jp-VariableRenderer-TrustButton[aria-pressed='true'] {
119
127
  box-shadow: inset 0 var(--jp-border-width) 4px
120
128
  rgba(