@jupyterlab/debugger 4.6.0-alpha.2 → 4.6.0-alpha.3

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 (110) hide show
  1. package/lib/config.d.ts +1 -1
  2. package/lib/dialogs/evaluate.d.ts +2 -2
  3. package/lib/dialogs/evaluate.js.map +1 -1
  4. package/lib/displayregistry.d.ts +1 -1
  5. package/lib/factory.d.ts +3 -2
  6. package/lib/factory.js.map +1 -1
  7. package/lib/handler.d.ts +9 -9
  8. package/lib/handler.js.map +1 -1
  9. package/lib/handlers/console.d.ts +4 -4
  10. package/lib/handlers/console.js.map +1 -1
  11. package/lib/handlers/editor.d.ts +5 -5
  12. package/lib/handlers/editor.js.map +1 -1
  13. package/lib/handlers/file.d.ts +5 -5
  14. package/lib/handlers/file.js.map +1 -1
  15. package/lib/handlers/notebook.d.ts +4 -4
  16. package/lib/handlers/notebook.js.map +1 -1
  17. package/lib/handlers/pausedoverlay.d.ts +3 -3
  18. package/lib/handlers/pausedoverlay.js.map +1 -1
  19. package/lib/model.d.ts +3 -3
  20. package/lib/model.js.map +1 -1
  21. package/lib/panels/breakpoints/body.d.ts +2 -2
  22. package/lib/panels/breakpoints/body.js.map +1 -1
  23. package/lib/panels/breakpoints/index.d.ts +4 -4
  24. package/lib/panels/breakpoints/index.js.map +1 -1
  25. package/lib/panels/breakpoints/model.d.ts +3 -2
  26. package/lib/panels/breakpoints/model.js.map +1 -1
  27. package/lib/panels/breakpoints/pauseonexceptions.d.ts +2 -2
  28. package/lib/panels/callstack/body.d.ts +1 -1
  29. package/lib/panels/callstack/index.d.ts +4 -4
  30. package/lib/panels/callstack/index.js.map +1 -1
  31. package/lib/panels/callstack/model.d.ts +4 -4
  32. package/lib/panels/callstack/model.js.map +1 -1
  33. package/lib/panels/kernelSources/body.d.ts +2 -2
  34. package/lib/panels/kernelSources/body.js.map +1 -1
  35. package/lib/panels/kernelSources/filter.d.ts +2 -2
  36. package/lib/panels/kernelSources/index.d.ts +2 -2
  37. package/lib/panels/kernelSources/index.js.map +1 -1
  38. package/lib/panels/kernelSources/model.d.ts +2 -2
  39. package/lib/panels/kernelSources/model.js.map +1 -1
  40. package/lib/panels/sources/body.d.ts +2 -2
  41. package/lib/panels/sources/body.js.map +1 -1
  42. package/lib/panels/sources/index.d.ts +3 -3
  43. package/lib/panels/sources/index.js.map +1 -1
  44. package/lib/panels/sources/model.d.ts +3 -3
  45. package/lib/panels/sources/model.js.map +1 -1
  46. package/lib/panels/sources/sourcepath.d.ts +2 -2
  47. package/lib/panels/variables/grid.d.ts +5 -5
  48. package/lib/panels/variables/gridpanel.d.ts +4 -4
  49. package/lib/panels/variables/gridpanel.js.map +1 -1
  50. package/lib/panels/variables/index.d.ts +5 -5
  51. package/lib/panels/variables/index.js.map +1 -1
  52. package/lib/panels/variables/mimerenderer.d.ts +3 -3
  53. package/lib/panels/variables/mimerenderer.js.map +1 -1
  54. package/lib/panels/variables/model.d.ts +2 -2
  55. package/lib/panels/variables/model.js.map +1 -1
  56. package/lib/panels/variables/scope.d.ts +4 -4
  57. package/lib/panels/variables/scope.js.map +1 -1
  58. package/lib/panels/variables/tree.d.ts +3 -3
  59. package/lib/panels/variables/tree.js +1 -1
  60. package/lib/panels/variables/tree.js.map +1 -1
  61. package/lib/service.d.ts +9 -8
  62. package/lib/service.js +4 -5
  63. package/lib/service.js.map +1 -1
  64. package/lib/session.d.ts +5 -5
  65. package/lib/session.js.map +1 -1
  66. package/lib/sidebar.d.ts +4 -4
  67. package/lib/sidebar.js.map +1 -1
  68. package/lib/sources.d.ts +6 -6
  69. package/lib/sources.js.map +1 -1
  70. package/lib/tokens.d.ts +11 -10
  71. package/lib/tokens.js.map +1 -1
  72. package/package.json +22 -22
  73. package/src/config.ts +1 -1
  74. package/src/dialogs/evaluate.ts +4 -3
  75. package/src/displayregistry.ts +1 -1
  76. package/src/factory.ts +3 -6
  77. package/src/handler.ts +12 -11
  78. package/src/handlers/console.ts +8 -6
  79. package/src/handlers/editor.ts +10 -18
  80. package/src/handlers/file.ts +6 -5
  81. package/src/handlers/notebook.ts +8 -10
  82. package/src/handlers/pausedoverlay.ts +4 -7
  83. package/src/model.ts +4 -3
  84. package/src/panels/breakpoints/body.tsx +3 -6
  85. package/src/panels/breakpoints/index.ts +5 -4
  86. package/src/panels/breakpoints/model.ts +3 -2
  87. package/src/panels/breakpoints/pauseonexceptions.tsx +2 -2
  88. package/src/panels/callstack/body.tsx +1 -1
  89. package/src/panels/callstack/index.ts +5 -4
  90. package/src/panels/callstack/model.ts +5 -4
  91. package/src/panels/kernelSources/body.tsx +4 -3
  92. package/src/panels/kernelSources/filter.tsx +2 -2
  93. package/src/panels/kernelSources/index.tsx +3 -2
  94. package/src/panels/kernelSources/model.ts +3 -2
  95. package/src/panels/sources/body.ts +5 -2
  96. package/src/panels/sources/index.tsx +4 -3
  97. package/src/panels/sources/model.ts +4 -3
  98. package/src/panels/sources/sourcepath.tsx +2 -2
  99. package/src/panels/variables/grid.ts +5 -5
  100. package/src/panels/variables/gridpanel.ts +7 -9
  101. package/src/panels/variables/index.ts +6 -5
  102. package/src/panels/variables/mimerenderer.ts +5 -7
  103. package/src/panels/variables/model.ts +3 -2
  104. package/src/panels/variables/scope.tsx +5 -8
  105. package/src/panels/variables/tree.tsx +7 -6
  106. package/src/service.ts +15 -17
  107. package/src/session.ts +7 -5
  108. package/src/sidebar.ts +5 -4
  109. package/src/sources.ts +9 -6
  110. package/src/tokens.ts +15 -15
package/lib/sources.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- import { JupyterFrontEnd } from '@jupyterlab/application';
2
- import { IEditorServices } from '@jupyterlab/codeeditor';
3
- import { IConsoleTracker } from '@jupyterlab/console';
4
- import { IEditorTracker } from '@jupyterlab/fileeditor';
5
- import { INotebookTracker } from '@jupyterlab/notebook';
6
- import { IDebugger } from './tokens';
1
+ import type { JupyterFrontEnd } from '@jupyterlab/application';
2
+ import type { IEditorServices } from '@jupyterlab/codeeditor';
3
+ import type { IConsoleTracker } from '@jupyterlab/console';
4
+ import type { IEditorTracker } from '@jupyterlab/fileeditor';
5
+ import type { INotebookTracker } from '@jupyterlab/notebook';
6
+ import type { IDebugger } from './tokens';
7
7
  /**
8
8
  * The source and editor manager for a debugger instance.
9
9
  */
@@ -1 +1 @@
1
- {"version":3,"file":"sources.js","sourceRoot":"","sources":["../src/sources.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAG3D,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAK/E,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAG3D;;GAEG;AACH,MAAM,OAAO,eAAe;IAC1B;;;;OAIG;IACH,YAAY,OAAiC;;QAC3C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC;QAC9B,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC,KAAK,CAAC;QAC5B,IAAI,CAAC,gBAAgB,GAAG,MAAA,OAAO,CAAC,eAAe,mCAAI,IAAI,CAAC;QACxD,IAAI,CAAC,eAAe,GAAG,MAAA,OAAO,CAAC,cAAc,mCAAI,IAAI,CAAC;QACtD,IAAI,CAAC,cAAc,GAAG,MAAA,OAAO,CAAC,aAAa,mCAAI,IAAI,CAAC;QACpD,IAAI,CAAC,sBAAsB,GAAG,IAAI,aAAa,CAE7C,EAAE,SAAS,EAAE,sBAAsB,EAAE,CAAC,CAAC;IAC3C,CAAC;IAED;;;;;;OAMG;IACH,IAAI,CAAC,MAAqC;QACxC,OAAO;YACL,GAAG,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC;YAC/B,GAAG,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC;YAC9B,GAAG,IAAI,CAAC,gBAAgB,CAAC,MAAM,CAAC;YAChC,GAAG,IAAI,CAAC,sBAAsB,CAAC,MAAM,CAAC;SACvC,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACH,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AC;IACjB,CAAC;IAED;;;;;;OAMG;IACK,UAAU,CAAC,IAAY,EAAE,MAAc;QAC7C,IAAI,CAAC;YACH,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QAC9C,CAAC;QAAC,WAAM,CAAC;YACP,OAAO,EAAE,CAAC;QACZ,CAAC;IACH,CAAC;CAWF"}
package/lib/tokens.d.ts CHANGED
@@ -1,13 +1,14 @@
1
- import { CodeEditor, CodeEditorWrapper } from '@jupyterlab/codeeditor';
2
- import { KernelMessage, Session } from '@jupyterlab/services';
3
- import { ISharedText } from '@jupyter/ydoc';
4
- import { ReadonlyJSONObject, Token } from '@lumino/coreutils';
5
- import { IDisposable, IObservableDisposable } from '@lumino/disposable';
6
- import { ISignal, Signal } from '@lumino/signaling';
7
- import { Panel } from '@lumino/widgets';
8
- import { DebugProtocol } from '@vscode/debugprotocol';
9
- import { DebuggerHandler } from './handler';
10
- import { IDebuggerSourceDisplayProvider } from './displayregistry';
1
+ import type { CodeEditor, CodeEditorWrapper } from '@jupyterlab/codeeditor';
2
+ import type { KernelMessage, Session } from '@jupyterlab/services';
3
+ import type { ISharedText } from '@jupyter/ydoc';
4
+ import type { ReadonlyJSONObject } from '@lumino/coreutils';
5
+ import { Token } from '@lumino/coreutils';
6
+ import type { IDisposable, IObservableDisposable } from '@lumino/disposable';
7
+ import type { ISignal, Signal } from '@lumino/signaling';
8
+ import type { Panel } from '@lumino/widgets';
9
+ import type { DebugProtocol } from '@vscode/debugprotocol';
10
+ import type { DebuggerHandler } from './handler';
11
+ import type { IDebuggerSourceDisplayProvider } from './displayregistry';
11
12
  /**
12
13
  * An interface describing an application's visual debugger.
13
14
  */
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;AAQ3D,OAAO,EAAsB,KAAK,EAAE,MA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MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,KAAK,CACvC,uCAAuC,EACvC,qCAAqC,CACtC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,KAAK,CACvC,uCAAuC,EACvC,2CAA2C,CAC5C,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,IAAI,KAAK,CAC5C,4CAA4C,EAC5C,2BAA2B,CAC5B,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,IAAI,KAAK,CAC/C,+CAA+C,EAC/C,2EAA2E,CAC5E,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jupyterlab/debugger",
3
- "version": "4.6.0-alpha.2",
3
+ "version": "4.6.0-alpha.3",
4
4
  "description": "JupyterLab - Debugger Extension",
5
5
  "keywords": [
6
6
  "jupyter",
@@ -48,44 +48,44 @@
48
48
  },
49
49
  "dependencies": {
50
50
  "@codemirror/state": "^6.5.4",
51
- "@codemirror/view": "^6.39.11",
51
+ "@codemirror/view": "^6.39.14",
52
52
  "@jupyter/react-components": "^0.16.6",
53
53
  "@jupyter/ydoc": "^3.1.0",
54
- "@jupyterlab/application": "^4.6.0-alpha.2",
55
- "@jupyterlab/apputils": "^4.7.0-alpha.2",
56
- "@jupyterlab/cells": "^4.6.0-alpha.2",
57
- "@jupyterlab/codeeditor": "^4.6.0-alpha.2",
58
- "@jupyterlab/codemirror": "^4.6.0-alpha.2",
59
- "@jupyterlab/console": "^4.6.0-alpha.2",
60
- "@jupyterlab/coreutils": "^6.6.0-alpha.2",
61
- "@jupyterlab/docregistry": "^4.6.0-alpha.2",
62
- "@jupyterlab/fileeditor": "^4.6.0-alpha.2",
63
- "@jupyterlab/notebook": "^4.6.0-alpha.2",
64
- "@jupyterlab/observables": "^5.6.0-alpha.2",
65
- "@jupyterlab/rendermime": "^4.6.0-alpha.2",
66
- "@jupyterlab/services": "^7.6.0-alpha.2",
67
- "@jupyterlab/settingregistry": "^4.6.0-alpha.2",
68
- "@jupyterlab/translation": "^4.6.0-alpha.2",
69
- "@jupyterlab/ui-components": "^4.6.0-alpha.2",
54
+ "@jupyterlab/application": "^4.6.0-alpha.3",
55
+ "@jupyterlab/apputils": "^4.7.0-alpha.3",
56
+ "@jupyterlab/cells": "^4.6.0-alpha.3",
57
+ "@jupyterlab/codeeditor": "^4.6.0-alpha.3",
58
+ "@jupyterlab/codemirror": "^4.6.0-alpha.3",
59
+ "@jupyterlab/console": "^4.6.0-alpha.3",
60
+ "@jupyterlab/coreutils": "^6.6.0-alpha.3",
61
+ "@jupyterlab/docregistry": "^4.6.0-alpha.3",
62
+ "@jupyterlab/fileeditor": "^4.6.0-alpha.3",
63
+ "@jupyterlab/notebook": "^4.6.0-alpha.3",
64
+ "@jupyterlab/observables": "^5.6.0-alpha.3",
65
+ "@jupyterlab/rendermime": "^4.6.0-alpha.3",
66
+ "@jupyterlab/services": "^7.6.0-alpha.3",
67
+ "@jupyterlab/settingregistry": "^4.6.0-alpha.3",
68
+ "@jupyterlab/translation": "^4.6.0-alpha.3",
69
+ "@jupyterlab/ui-components": "^4.6.0-alpha.3",
70
70
  "@lumino/algorithm": "^2.0.4",
71
71
  "@lumino/commands": "^2.3.3",
72
72
  "@lumino/coreutils": "^2.2.2",
73
- "@lumino/datagrid": "^2.5.4",
73
+ "@lumino/datagrid": "^2.5.6",
74
74
  "@lumino/disposable": "^2.1.5",
75
75
  "@lumino/messaging": "^2.0.4",
76
76
  "@lumino/polling": "^2.1.5",
77
77
  "@lumino/signaling": "^2.1.5",
78
- "@lumino/widgets": "^2.7.3",
78
+ "@lumino/widgets": "^2.7.5",
79
79
  "@vscode/debugprotocol": "^1.51.0",
80
80
  "react": "^18.2.0"
81
81
  },
82
82
  "devDependencies": {
83
- "@jupyterlab/testing": "^4.6.0-alpha.2",
83
+ "@jupyterlab/testing": "^4.6.0-alpha.3",
84
84
  "@types/jest": "^29.2.0",
85
85
  "jest": "^29.2.0",
86
86
  "jest-canvas-mock": "^2.5.2",
87
87
  "rimraf": "~5.0.5",
88
- "typescript": "~5.5.4"
88
+ "typescript": "~5.9.3"
89
89
  },
90
90
  "publishConfig": {
91
91
  "access": "public"
package/src/config.ts CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  import { murmur2 } from './hash';
5
5
 
6
- import { IDebugger } from './tokens';
6
+ import type { IDebugger } from './tokens';
7
7
 
8
8
  /**
9
9
  * A class that holds debugger configuration for all kernels.
@@ -5,11 +5,12 @@
5
5
 
6
6
  import { Dialog } from '@jupyterlab/apputils';
7
7
 
8
- import { Cell, CodeCell, CodeCellModel } from '@jupyterlab/cells';
8
+ import type { Cell } from '@jupyterlab/cells';
9
+ import { CodeCell, CodeCellModel } from '@jupyterlab/cells';
9
10
 
10
- import { IRenderMimeRegistry } from '@jupyterlab/rendermime';
11
+ import type { IRenderMimeRegistry } from '@jupyterlab/rendermime';
11
12
 
12
- import { Message } from '@lumino/messaging';
13
+ import type { Message } from '@lumino/messaging';
13
14
 
14
15
  import { Widget } from '@lumino/widgets';
15
16
 
@@ -1,7 +1,7 @@
1
1
  // Copyright (c) Jupyter Development Team.
2
2
  // Distributed under the terms of the Modified BSD License.
3
3
 
4
- import { IDebugger, IDebuggerDisplayRegistry } from './tokens';
4
+ import type { IDebugger, IDebuggerDisplayRegistry } from './tokens';
5
5
 
6
6
  /**
7
7
  * Interface for display providers that can format debugger source paths.
package/src/factory.ts CHANGED
@@ -1,12 +1,9 @@
1
1
  // Copyright (c) Jupyter Development Team.
2
2
  // Distributed under the terms of the Modified BSD License.
3
3
 
4
- import {
5
- CodeEditor,
6
- CodeEditorWrapper,
7
- IEditorServices
8
- } from '@jupyterlab/codeeditor';
9
- import { IDebugger } from './tokens';
4
+ import type { IEditorServices } from '@jupyterlab/codeeditor';
5
+ import { CodeEditor, CodeEditorWrapper } from '@jupyterlab/codeeditor';
6
+ import type { IDebugger } from './tokens';
10
7
 
11
8
  /**
12
9
  * A widget factory for read only editors.
package/src/handler.ts CHANGED
@@ -1,22 +1,23 @@
1
1
  // Copyright (c) Jupyter Development Team.
2
2
  // Distributed under the terms of the Modified BSD License.
3
3
 
4
- import { JupyterFrontEnd } from '@jupyterlab/application';
5
- import { ISessionContext, SessionContext } from '@jupyterlab/apputils';
6
- import { ConsolePanel } from '@jupyterlab/console';
7
- import { IChangedArgs } from '@jupyterlab/coreutils';
8
- import { DocumentWidget } from '@jupyterlab/docregistry';
9
- import { FileEditor } from '@jupyterlab/fileeditor';
10
- import { NotebookPanel } from '@jupyterlab/notebook';
11
- import { Kernel, KernelMessage, Session } from '@jupyterlab/services';
12
- import { ITranslator, nullTranslator } from '@jupyterlab/translation';
4
+ import type { JupyterFrontEnd } from '@jupyterlab/application';
5
+ import type { ISessionContext, SessionContext } from '@jupyterlab/apputils';
6
+ import type { ConsolePanel } from '@jupyterlab/console';
7
+ import type { IChangedArgs } from '@jupyterlab/coreutils';
8
+ import type { DocumentWidget } from '@jupyterlab/docregistry';
9
+ import type { FileEditor } from '@jupyterlab/fileeditor';
10
+ import type { NotebookPanel } from '@jupyterlab/notebook';
11
+ import type { Kernel, KernelMessage, Session } from '@jupyterlab/services';
12
+ import type { ITranslator } from '@jupyterlab/translation';
13
+ import { nullTranslator } from '@jupyterlab/translation';
13
14
  import { bugDotIcon, bugIcon, ToolbarButton } from '@jupyterlab/ui-components';
14
15
  import { Debugger } from './debugger';
15
16
  import { ConsoleHandler } from './handlers/console';
16
17
  import { FileHandler } from './handlers/file';
17
18
  import { NotebookHandler } from './handlers/notebook';
18
- import { IDebugger } from './tokens';
19
- import { ISettingRegistry } from '@jupyterlab/settingregistry';
19
+ import type { IDebugger } from './tokens';
20
+ import type { ISettingRegistry } from '@jupyterlab/settingregistry';
20
21
 
21
22
  const TOOLBAR_DEBUGGER_ITEM = 'debugger-icon';
22
23
 
@@ -1,20 +1,22 @@
1
1
  // Copyright (c) Jupyter Development Team.
2
2
  // Distributed under the terms of the Modified BSD License.
3
3
 
4
- import { CodeConsole, ConsolePanel } from '@jupyterlab/console';
4
+ import type { CodeConsole, ConsolePanel } from '@jupyterlab/console';
5
5
 
6
- import { Cell, CodeCell } from '@jupyterlab/cells';
6
+ import type { Cell, CodeCell } from '@jupyterlab/cells';
7
7
 
8
- import { IObservableMap, ObservableMap } from '@jupyterlab/observables';
8
+ import type { IObservableMap } from '@jupyterlab/observables';
9
+ import { ObservableMap } from '@jupyterlab/observables';
9
10
 
10
- import { IDisposable } from '@lumino/disposable';
11
+ import type { IDisposable } from '@lumino/disposable';
11
12
 
12
13
  import { Signal } from '@lumino/signaling';
13
14
 
14
15
  import { EditorHandler } from '../handlers/editor';
15
16
 
16
- import { IDebugger } from '../tokens';
17
- import { ITranslator, nullTranslator } from '@jupyterlab/translation';
17
+ import type { IDebugger } from '../tokens';
18
+ import type { ITranslator } from '@jupyterlab/translation';
19
+ import { nullTranslator } from '@jupyterlab/translation';
18
20
  import { DebuggerPausedOverlay } from './pausedoverlay';
19
21
 
20
22
  /**
@@ -1,38 +1,31 @@
1
1
  // Copyright (c) Jupyter Development Team.
2
2
  // Distributed under the terms of the Modified BSD License.
3
3
 
4
- import { CodeEditor } from '@jupyterlab/codeeditor';
4
+ import type { CodeEditor } from '@jupyterlab/codeeditor';
5
5
 
6
- import { CodeMirrorEditor } from '@jupyterlab/codemirror';
6
+ import type { CodeMirrorEditor } from '@jupyterlab/codemirror';
7
7
 
8
8
  import { ActivityMonitor } from '@jupyterlab/coreutils';
9
9
 
10
- import { IDisposable } from '@lumino/disposable';
10
+ import type { IDisposable } from '@lumino/disposable';
11
11
 
12
12
  import { Signal } from '@lumino/signaling';
13
13
 
14
- import { ISharedText, SourceChange } from '@jupyter/ydoc';
14
+ import type { ISharedText, SourceChange } from '@jupyter/ydoc';
15
15
 
16
+ import type { Line, Range, StateEffectType } from '@codemirror/state';
16
17
  import {
17
18
  Compartment,
18
- Line,
19
19
  Prec,
20
- Range,
21
20
  RangeSet,
22
21
  StateEffect,
23
- StateEffectType,
24
22
  StateField
25
23
  } from '@codemirror/state';
26
24
 
27
- import {
28
- Decoration,
29
- DecorationSet,
30
- EditorView,
31
- gutter,
32
- GutterMarker
33
- } from '@codemirror/view';
34
-
35
- import { IDebugger } from '../tokens';
25
+ import type { DecorationSet } from '@codemirror/view';
26
+ import { Decoration, EditorView, gutter, GutterMarker } from '@codemirror/view';
27
+
28
+ import type { IDebugger } from '../tokens';
36
29
  import {
37
30
  breakpointIcon,
38
31
  selectedBreakpointIcon
@@ -306,8 +299,7 @@ export class EditorHandler implements IDisposable {
306
299
  let clickedLine = editor.state.doc.lineAt(position);
307
300
  let clickedLineNumber = clickedLine.number;
308
301
  let targetLine: Line | undefined = undefined;
309
- let isLineEmpty: boolean =
310
- false; /* is true is the clicked line of code is empty */
302
+ let isLineEmpty: boolean = false; /* is true is the clicked line of code is empty */
311
303
  if (clickedLine.text.trim() === '') {
312
304
  isLineEmpty = true;
313
305
  while (clickedLineNumber > 1) {
@@ -1,18 +1,19 @@
1
1
  // Copyright (c) Jupyter Development Team.
2
2
  // Distributed under the terms of the Modified BSD License.
3
3
 
4
- import { DocumentWidget } from '@jupyterlab/docregistry';
4
+ import type { DocumentWidget } from '@jupyterlab/docregistry';
5
5
 
6
- import { FileEditor } from '@jupyterlab/fileeditor';
6
+ import type { FileEditor } from '@jupyterlab/fileeditor';
7
7
 
8
- import { IDisposable } from '@lumino/disposable';
8
+ import type { IDisposable } from '@lumino/disposable';
9
9
 
10
10
  import { Signal } from '@lumino/signaling';
11
11
 
12
12
  import { EditorHandler } from '../handlers/editor';
13
13
 
14
- import { IDebugger } from '../tokens';
15
- import { ITranslator, nullTranslator } from '@jupyterlab/translation';
14
+ import type { IDebugger } from '../tokens';
15
+ import type { ITranslator } from '@jupyterlab/translation';
16
+ import { nullTranslator } from '@jupyterlab/translation';
16
17
  import { DebuggerPausedOverlay } from './pausedoverlay';
17
18
 
18
19
  /**
@@ -1,18 +1,16 @@
1
1
  // Copyright (c) Jupyter Development Team.
2
2
  // Distributed under the terms of the Modified BSD License.
3
3
 
4
- import { Cell, CodeCell, ICellModel } from '@jupyterlab/cells';
5
- import { NotebookPanel } from '@jupyterlab/notebook';
6
- import {
7
- IObservableList,
8
- IObservableMap,
9
- ObservableMap
10
- } from '@jupyterlab/observables';
11
- import { IDisposable } from '@lumino/disposable';
4
+ import type { Cell, CodeCell, ICellModel } from '@jupyterlab/cells';
5
+ import type { NotebookPanel } from '@jupyterlab/notebook';
6
+ import type { IObservableList, IObservableMap } from '@jupyterlab/observables';
7
+ import { ObservableMap } from '@jupyterlab/observables';
8
+ import type { IDisposable } from '@lumino/disposable';
12
9
  import { Signal } from '@lumino/signaling';
13
- import { IDebugger } from '../tokens';
10
+ import type { IDebugger } from '../tokens';
14
11
  import { EditorHandler } from './editor';
15
- import { ITranslator, nullTranslator } from '@jupyterlab/translation';
12
+ import type { ITranslator } from '@jupyterlab/translation';
13
+ import { nullTranslator } from '@jupyterlab/translation';
16
14
  import { DebuggerPausedOverlay } from './pausedoverlay';
17
15
 
18
16
  /**
@@ -1,13 +1,10 @@
1
1
  // Copyright (c) Jupyter Development Team.
2
2
  // Distributed under the terms of the Modified BSD License.
3
3
 
4
- import { IDisposable } from '@lumino/disposable';
5
- import { IDebugger } from '../tokens';
6
- import {
7
- ITranslator,
8
- nullTranslator,
9
- TranslationBundle
10
- } from '@jupyterlab/translation';
4
+ import type { IDisposable } from '@lumino/disposable';
5
+ import type { IDebugger } from '../tokens';
6
+ import type { ITranslator, TranslationBundle } from '@jupyterlab/translation';
7
+ import { nullTranslator } from '@jupyterlab/translation';
11
8
  import { runIcon, stepOverIcon, stopIcon } from '@jupyterlab/ui-components';
12
9
 
13
10
  /**
package/src/model.ts CHANGED
@@ -1,9 +1,10 @@
1
1
  // Copyright (c) Jupyter Development Team.
2
2
  // Distributed under the terms of the Modified BSD License.
3
3
 
4
- import { IEditorMimeTypeService } from '@jupyterlab/codeeditor';
4
+ import type { IEditorMimeTypeService } from '@jupyterlab/codeeditor';
5
5
 
6
- import { ISignal, Signal } from '@lumino/signaling';
6
+ import type { ISignal } from '@lumino/signaling';
7
+ import { Signal } from '@lumino/signaling';
7
8
 
8
9
  import { DebuggerDisplayRegistry } from './displayregistry';
9
10
 
@@ -17,7 +18,7 @@ import { SourcesModel } from './panels/sources/model';
17
18
 
18
19
  import { VariablesModel } from './panels/variables/model';
19
20
 
20
- import { IDebugger, IDebuggerDisplayRegistry } from './tokens';
21
+ import type { IDebugger, IDebuggerDisplayRegistry } from './tokens';
21
22
 
22
23
  /**
23
24
  * A model for a debugger.
@@ -3,12 +3,9 @@
3
3
 
4
4
  import { ReactWidget } from '@jupyterlab/ui-components';
5
5
  import React, { useEffect, useState } from 'react';
6
- import { IDebugger } from '../../tokens';
7
- import {
8
- ITranslator,
9
- nullTranslator,
10
- TranslationBundle
11
- } from '@jupyterlab/translation';
6
+ import type { IDebugger } from '../../tokens';
7
+ import type { ITranslator, TranslationBundle } from '@jupyterlab/translation';
8
+ import { nullTranslator } from '@jupyterlab/translation';
12
9
  import {
13
10
  breakpointIcon,
14
11
  selectedBreakpointIcon
@@ -2,17 +2,18 @@
2
2
  // Distributed under the terms of the Modified BSD License.
3
3
 
4
4
  import { Dialog, showDialog } from '@jupyterlab/apputils';
5
- import { ITranslator, nullTranslator } from '@jupyterlab/translation';
5
+ import type { ITranslator } from '@jupyterlab/translation';
6
+ import { nullTranslator } from '@jupyterlab/translation';
6
7
  import {
7
8
  closeAllIcon,
8
9
  exceptionsIcon,
9
10
  PanelWithToolbar,
10
11
  ToolbarButton
11
12
  } from '@jupyterlab/ui-components';
12
- import { CommandRegistry } from '@lumino/commands';
13
+ import type { CommandRegistry } from '@lumino/commands';
13
14
  import { Signal } from '@lumino/signaling';
14
- import { Panel } from '@lumino/widgets';
15
- import { IDebugger } from '../../tokens';
15
+ import type { Panel } from '@lumino/widgets';
16
+ import type { IDebugger } from '../../tokens';
16
17
  import { BreakpointsBody } from './body';
17
18
  import { PauseOnExceptionsWidget } from './pauseonexceptions';
18
19
 
@@ -1,8 +1,9 @@
1
1
  // Copyright (c) Jupyter Development Team.
2
2
  // Distributed under the terms of the Modified BSD License.
3
3
 
4
- import { ISignal, Signal } from '@lumino/signaling';
5
- import { IDebugger, IDebuggerDisplayRegistry } from '../../tokens';
4
+ import type { ISignal } from '@lumino/signaling';
5
+ import { Signal } from '@lumino/signaling';
6
+ import type { IDebugger, IDebuggerDisplayRegistry } from '../../tokens';
6
7
  import { DebuggerDisplayRegistry } from '../../displayregistry';
7
8
 
8
9
  /**
@@ -7,8 +7,8 @@ import {
7
7
  ToolbarButton,
8
8
  ToolbarButtonComponent
9
9
  } from '@jupyterlab/ui-components';
10
- import { IDebugger } from '../../tokens';
11
- import { Breakpoints } from './index';
10
+ import type { IDebugger } from '../../tokens';
11
+ import type { Breakpoints } from './index';
12
12
 
13
13
  const PAUSE_ON_EXCEPTION_CLASS = 'jp-debugger-pauseOnExceptions';
14
14
  const PAUSE_ON_EXCEPTION_BUTTON_CLASS = 'jp-PauseOnExceptions';
@@ -3,7 +3,7 @@
3
3
 
4
4
  import { ReactWidget } from '@jupyterlab/ui-components';
5
5
  import React, { useEffect, useState } from 'react';
6
- import { IDebugger } from '../../tokens';
6
+ import type { IDebugger } from '../../tokens';
7
7
 
8
8
  /**
9
9
  * The body for a Callstack Panel.
@@ -1,14 +1,15 @@
1
1
  // Copyright (c) Jupyter Development Team.
2
2
  // Distributed under the terms of the Modified BSD License.
3
3
 
4
- import { ITranslator, nullTranslator } from '@jupyterlab/translation';
4
+ import type { ITranslator } from '@jupyterlab/translation';
5
+ import { nullTranslator } from '@jupyterlab/translation';
5
6
  import {
6
7
  CommandToolbarButton,
7
8
  PanelWithToolbar
8
9
  } from '@jupyterlab/ui-components';
9
- import { CommandRegistry } from '@lumino/commands';
10
- import { Panel } from '@lumino/widgets';
11
- import { IDebugger } from '../../tokens';
10
+ import type { CommandRegistry } from '@lumino/commands';
11
+ import type { Panel } from '@lumino/widgets';
12
+ import type { IDebugger } from '../../tokens';
12
13
  import { CallstackBody } from './body';
13
14
 
14
15
  /**
@@ -1,12 +1,13 @@
1
1
  // Copyright (c) Jupyter Development Team.
2
2
  // Distributed under the terms of the Modified BSD License.
3
3
 
4
- import { ISignal, Signal } from '@lumino/signaling';
4
+ import type { ISignal } from '@lumino/signaling';
5
+ import { Signal } from '@lumino/signaling';
5
6
 
6
7
  import { DebuggerDisplayRegistry } from '../../displayregistry';
7
- import { IDebugger, IDebuggerDisplayRegistry } from '../../tokens';
8
- import { INotebookTracker } from '@jupyterlab/notebook';
9
- import { IConsoleTracker } from '@jupyterlab/console';
8
+ import type { IDebugger, IDebuggerDisplayRegistry } from '../../tokens';
9
+ import type { INotebookTracker } from '@jupyterlab/notebook';
10
+ import type { IConsoleTracker } from '@jupyterlab/console';
10
11
  /**
11
12
  * A model for a callstack.
12
13
  */
@@ -13,10 +13,11 @@ import {
13
13
 
14
14
  import { showErrorMessage } from '@jupyterlab/apputils';
15
15
 
16
- import { ITranslator, nullTranslator } from '@jupyterlab/translation';
16
+ import type { ITranslator } from '@jupyterlab/translation';
17
+ import { nullTranslator } from '@jupyterlab/translation';
17
18
 
18
- import { IDebugger } from '../../tokens';
19
- import { IRenderMime } from '@jupyterlab/rendermime';
19
+ import type { IDebugger } from '../../tokens';
20
+ import type { IRenderMime } from '@jupyterlab/rendermime';
20
21
 
21
22
  /**
22
23
  * The class for each source row.
@@ -5,10 +5,10 @@ import { UseSignal } from '@jupyterlab/ui-components';
5
5
 
6
6
  import React from 'react';
7
7
 
8
- import { IDebugger } from '../../tokens';
8
+ import type { IDebugger } from '../../tokens';
9
9
 
10
10
  import { Search } from '@jupyter/react-components';
11
- import { TranslationBundle } from '@jupyterlab/translation';
11
+ import type { TranslationBundle } from '@jupyterlab/translation';
12
12
 
13
13
  /**
14
14
  * The class name added to the filebrowser crumbs node.
@@ -3,7 +3,8 @@
3
3
  import * as React from 'react';
4
4
  import { ReactWidget } from '@jupyterlab/apputils';
5
5
 
6
- import { ITranslator, nullTranslator } from '@jupyterlab/translation';
6
+ import type { ITranslator } from '@jupyterlab/translation';
7
+ import { nullTranslator } from '@jupyterlab/translation';
7
8
 
8
9
  import { showErrorMessage } from '@jupyterlab/apputils';
9
10
 
@@ -13,7 +14,7 @@ import {
13
14
  ToolbarButton
14
15
  } from '@jupyterlab/ui-components';
15
16
 
16
- import { IDebugger } from '../../tokens';
17
+ import type { IDebugger } from '../../tokens';
17
18
 
18
19
  import { KernelSourcesBody } from './body';
19
20
  import { KernelSourcesFilter } from './filter';
@@ -1,11 +1,12 @@
1
1
  // Copyright (c) Jupyter Development Team.
2
2
  // Distributed under the terms of the Modified BSD License.
3
3
 
4
- import { ISignal, Signal } from '@lumino/signaling';
4
+ import type { ISignal } from '@lumino/signaling';
5
+ import { Signal } from '@lumino/signaling';
5
6
 
6
7
  import { Debouncer } from '@lumino/polling';
7
8
 
8
- import { IDebugger } from '../../tokens';
9
+ import type { IDebugger } from '../../tokens';
9
10
 
10
11
  /**
11
12
  * The rate limit for the filter debouncer