@theia/debug 1.53.0-next.55 → 1.53.0-next.64

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 (86) hide show
  1. package/README.md +62 -62
  2. package/lib/browser/debug-configuration-manager.js +6 -6
  3. package/lib/common/inline-debug-adapter.d.ts +0 -1
  4. package/lib/common/inline-debug-adapter.d.ts.map +1 -1
  5. package/package.json +15 -15
  6. package/src/browser/breakpoint/breakpoint-manager.ts +369 -369
  7. package/src/browser/breakpoint/breakpoint-marker.ts +104 -104
  8. package/src/browser/console/debug-console-contribution.tsx +240 -240
  9. package/src/browser/console/debug-console-items.tsx +384 -384
  10. package/src/browser/console/debug-console-session.ts +205 -205
  11. package/src/browser/debug-call-stack-item-type-key.ts +20 -20
  12. package/src/browser/debug-configuration-manager.ts +591 -591
  13. package/src/browser/debug-configuration-model.ts +100 -100
  14. package/src/browser/debug-contribution.ts +43 -43
  15. package/src/browser/debug-frontend-application-contribution.ts +1551 -1551
  16. package/src/browser/debug-frontend-module.ts +133 -133
  17. package/src/browser/debug-package.spec.ts +20 -20
  18. package/src/browser/debug-preferences.ts +98 -98
  19. package/src/browser/debug-prefix-configuration.ts +195 -195
  20. package/src/browser/debug-resource.ts +59 -59
  21. package/src/browser/debug-schema-updater.ts +149 -149
  22. package/src/browser/debug-session-connection.ts +357 -357
  23. package/src/browser/debug-session-contribution.ts +157 -157
  24. package/src/browser/debug-session-manager.ts +683 -683
  25. package/src/browser/debug-session-options.ts +120 -120
  26. package/src/browser/debug-session.tsx +974 -974
  27. package/src/browser/debug-tab-bar-decorator.ts +57 -57
  28. package/src/browser/debug-watch-manager.ts +93 -93
  29. package/src/browser/disassembly-view/disassembly-view-accessibility-provider.ts +43 -43
  30. package/src/browser/disassembly-view/disassembly-view-breakpoint-renderer.ts +119 -119
  31. package/src/browser/disassembly-view/disassembly-view-contribution.ts +109 -109
  32. package/src/browser/disassembly-view/disassembly-view-instruction-renderer.ts +245 -245
  33. package/src/browser/disassembly-view/disassembly-view-table-delegate.ts +39 -39
  34. package/src/browser/disassembly-view/disassembly-view-utilities.ts +55 -55
  35. package/src/browser/disassembly-view/disassembly-view-widget.ts +463 -463
  36. package/src/browser/editor/debug-breakpoint-widget.tsx +293 -293
  37. package/src/browser/editor/debug-editor-model.ts +529 -529
  38. package/src/browser/editor/debug-editor-service.ts +192 -192
  39. package/src/browser/editor/debug-editor.ts +20 -20
  40. package/src/browser/editor/debug-exception-widget.tsx +122 -122
  41. package/src/browser/editor/debug-expression-provider.ts +78 -78
  42. package/src/browser/editor/debug-hover-source.tsx +105 -105
  43. package/src/browser/editor/debug-hover-widget.ts +298 -298
  44. package/src/browser/editor/debug-inline-value-decorator.ts +373 -373
  45. package/src/browser/model/debug-breakpoint.tsx +151 -151
  46. package/src/browser/model/debug-function-breakpoint.tsx +101 -101
  47. package/src/browser/model/debug-instruction-breakpoint.tsx +68 -68
  48. package/src/browser/model/debug-source-breakpoint.tsx +237 -237
  49. package/src/browser/model/debug-source.ts +93 -93
  50. package/src/browser/model/debug-stack-frame.tsx +177 -177
  51. package/src/browser/model/debug-thread.tsx +292 -292
  52. package/src/browser/preferences/launch-preferences.ts +38 -38
  53. package/src/browser/style/index.css +453 -453
  54. package/src/browser/view/debug-action.tsx +57 -57
  55. package/src/browser/view/debug-breakpoints-source.tsx +53 -53
  56. package/src/browser/view/debug-breakpoints-widget.ts +71 -71
  57. package/src/browser/view/debug-configuration-select.tsx +269 -269
  58. package/src/browser/view/debug-configuration-widget.tsx +121 -121
  59. package/src/browser/view/debug-exception-breakpoint.tsx +68 -68
  60. package/src/browser/view/debug-session-widget.ts +124 -124
  61. package/src/browser/view/debug-stack-frames-source.tsx +75 -75
  62. package/src/browser/view/debug-stack-frames-widget.ts +135 -135
  63. package/src/browser/view/debug-threads-source.tsx +48 -48
  64. package/src/browser/view/debug-threads-widget.ts +126 -126
  65. package/src/browser/view/debug-toolbar-widget.tsx +145 -145
  66. package/src/browser/view/debug-variables-source.ts +43 -43
  67. package/src/browser/view/debug-variables-widget.ts +61 -61
  68. package/src/browser/view/debug-view-model.ts +230 -230
  69. package/src/browser/view/debug-watch-expression.tsx +88 -88
  70. package/src/browser/view/debug-watch-source.ts +41 -41
  71. package/src/browser/view/debug-watch-widget.ts +61 -61
  72. package/src/browser/view/debug-widget.ts +97 -97
  73. package/src/common/debug-adapter-contribution-registry.ts +206 -206
  74. package/src/common/debug-adapter-session.ts +102 -102
  75. package/src/common/debug-common.ts +19 -19
  76. package/src/common/debug-compound.ts +33 -33
  77. package/src/common/debug-configuration.ts +112 -112
  78. package/src/common/debug-model.ts +200 -200
  79. package/src/common/debug-service.ts +184 -184
  80. package/src/common/debug-uri-utils.ts +24 -24
  81. package/src/common/inline-debug-adapter.ts +47 -47
  82. package/src/node/debug-adapter-factory.ts +107 -107
  83. package/src/node/debug-adapter-session-manager.ts +106 -106
  84. package/src/node/debug-backend-module.ts +57 -57
  85. package/src/node/debug-service-impl.ts +119 -119
  86. package/src/node/stream-debug-adapter.ts +126 -126
package/README.md CHANGED
@@ -1,62 +1,62 @@
1
- <div align='center'>
2
-
3
- <br />
4
-
5
- <img src='https://raw.githubusercontent.com/eclipse-theia/theia/master/logo/theia.svg?sanitize=true' alt='theia-ext-logo' width='100px' />
6
-
7
- <h2>ECLIPSE THEIA - DEBUG EXTENSION</h2>
8
-
9
- <hr />
10
-
11
- </div>
12
-
13
- ## Architecture
14
-
15
- `DebugService` is used to initialize a new `DebugSession`. This service provides functionality to configure and to start a new debug session. The workflow is the following. If user wants to debug an application and there is no debug configuration associated with the application then the list of available debuggers is requested to create a suitable debug configuration. When configuration is chosen it is possible to alter the configuration by filling in missing values or by adding/changing/removing attributes.
16
-
17
- In most cases the default behavior of the `DebugSession` is enough. But it is possible to provide its own implementation. The `DebugSessionFactory` is used for this purpose via `DebugSessionContribution`. Documented model objects are located [here](https://github.com/eclipse-theia/theia/tree/master/packages/debug/src/browser/debug-model.ts)
18
-
19
- ### Debug Session life-cycle API
20
-
21
- `DebugSession` life-cycle is controlled and can be tracked as follows:
22
- * An `onDidPreCreateDebugSession` event indicates that a debug session is going to be created.
23
- * An `onDidCreateDebugSession` event indicates that a debug session has been created.
24
- * An `onDidDestroyDebugSession` event indicates that a debug session has terminated.
25
- * An `onDidChangeActiveDebugSession` event indicates that an active debug session has been changed
26
-
27
- ### Breakpoints API
28
-
29
- `ExtDebugProtocol.AggregatedBreakpoint` is used to handle breakpoints on the client side. It covers all three breakpoint types: `DebugProtocol.SourceBreakpoint`, `DebugProtocol.FunctionBreakpoint` and `ExtDebugProtocol.ExceptionBreakpoint`. It is possible to identify a breakpoint type with help of `DebugUtils`. Notification about added, removed, or changed breakpoints is received via `onDidChangeBreakpoints`.
30
-
31
- ### Server side
32
-
33
- At the back-end we start a debug adapter using `DebugAdapterFactory` and then a `DebugAdapterSession` is instantiated which works as a proxy between client and debug adapter. If a default implementation of the debug adapter session does not fit needs, it is possible to provide its own implementation using `DebugAdapterSessionFactory`. If so, it is recommended to extend the default implementation of the `DebugAdapterSession`. Documented model objects are located [here](https://github.com/eclipse-theia/theia/tree/master/packages/debug/src/node/debug-model.ts)
34
-
35
- `DebugSessionState` accumulates debug adapter events and is used to restore debug session on the client side when page is refreshed.
36
-
37
- ## How to contribute a new debugger
38
-
39
- `DebugAdapterContribution` is a contribution point for all debug adapters to provide and resolve debug configuration.
40
-
41
- ## Additional Information
42
-
43
- - [API documentation for `@theia/debug`](https://eclipse-theia.github.io/theia/docs/next/modules/debug.html)
44
- - [Theia - GitHub](https://github.com/eclipse-theia/theia)
45
- - [Theia - Website](https://theia-ide.org/)
46
- - [Debug Adapter Protocol](https://github.com/Microsoft/vscode-debugadapter-node/blob/master/protocol/src/debugProtocol.ts)
47
- - [VS Code debug API](https://code.visualstudio.com/docs/extensionAPI/api-debugging)
48
- - [Debug adapter example for VS Code](https://code.visualstudio.com/docs/extensions/example-debuggers)
49
-
50
- ## Debug adapter implementations for VS Code
51
- * [Node Debugger](https://github.com/microsoft/vscode-node-debug)
52
- * [Node Debugger 2](https://github.com/microsoft/vscode-node-debug2)
53
- * [Java Debugger](https://github.com/Microsoft/vscode-java-debug)
54
-
55
- ## License
56
-
57
- - [Eclipse Public License 2.0](http://www.eclipse.org/legal/epl-2.0/)
58
- - [一 (Secondary) GNU General Public License, version 2 with the GNU Classpath Exception](https://projects.eclipse.org/license/secondary-gpl-2.0-cp)
59
-
60
- ## Trademark
61
- "Theia" is a trademark of the Eclipse Foundation
62
- https://www.eclipse.org/theia
1
+ <div align='center'>
2
+
3
+ <br />
4
+
5
+ <img src='https://raw.githubusercontent.com/eclipse-theia/theia/master/logo/theia.svg?sanitize=true' alt='theia-ext-logo' width='100px' />
6
+
7
+ <h2>ECLIPSE THEIA - DEBUG EXTENSION</h2>
8
+
9
+ <hr />
10
+
11
+ </div>
12
+
13
+ ## Architecture
14
+
15
+ `DebugService` is used to initialize a new `DebugSession`. This service provides functionality to configure and to start a new debug session. The workflow is the following. If user wants to debug an application and there is no debug configuration associated with the application then the list of available debuggers is requested to create a suitable debug configuration. When configuration is chosen it is possible to alter the configuration by filling in missing values or by adding/changing/removing attributes.
16
+
17
+ In most cases the default behavior of the `DebugSession` is enough. But it is possible to provide its own implementation. The `DebugSessionFactory` is used for this purpose via `DebugSessionContribution`. Documented model objects are located [here](https://github.com/eclipse-theia/theia/tree/master/packages/debug/src/browser/debug-model.ts)
18
+
19
+ ### Debug Session life-cycle API
20
+
21
+ `DebugSession` life-cycle is controlled and can be tracked as follows:
22
+ * An `onDidPreCreateDebugSession` event indicates that a debug session is going to be created.
23
+ * An `onDidCreateDebugSession` event indicates that a debug session has been created.
24
+ * An `onDidDestroyDebugSession` event indicates that a debug session has terminated.
25
+ * An `onDidChangeActiveDebugSession` event indicates that an active debug session has been changed
26
+
27
+ ### Breakpoints API
28
+
29
+ `ExtDebugProtocol.AggregatedBreakpoint` is used to handle breakpoints on the client side. It covers all three breakpoint types: `DebugProtocol.SourceBreakpoint`, `DebugProtocol.FunctionBreakpoint` and `ExtDebugProtocol.ExceptionBreakpoint`. It is possible to identify a breakpoint type with help of `DebugUtils`. Notification about added, removed, or changed breakpoints is received via `onDidChangeBreakpoints`.
30
+
31
+ ### Server side
32
+
33
+ At the back-end we start a debug adapter using `DebugAdapterFactory` and then a `DebugAdapterSession` is instantiated which works as a proxy between client and debug adapter. If a default implementation of the debug adapter session does not fit needs, it is possible to provide its own implementation using `DebugAdapterSessionFactory`. If so, it is recommended to extend the default implementation of the `DebugAdapterSession`. Documented model objects are located [here](https://github.com/eclipse-theia/theia/tree/master/packages/debug/src/node/debug-model.ts)
34
+
35
+ `DebugSessionState` accumulates debug adapter events and is used to restore debug session on the client side when page is refreshed.
36
+
37
+ ## How to contribute a new debugger
38
+
39
+ `DebugAdapterContribution` is a contribution point for all debug adapters to provide and resolve debug configuration.
40
+
41
+ ## Additional Information
42
+
43
+ - [API documentation for `@theia/debug`](https://eclipse-theia.github.io/theia/docs/next/modules/debug.html)
44
+ - [Theia - GitHub](https://github.com/eclipse-theia/theia)
45
+ - [Theia - Website](https://theia-ide.org/)
46
+ - [Debug Adapter Protocol](https://github.com/Microsoft/vscode-debugadapter-node/blob/master/protocol/src/debugProtocol.ts)
47
+ - [VS Code debug API](https://code.visualstudio.com/docs/extensionAPI/api-debugging)
48
+ - [Debug adapter example for VS Code](https://code.visualstudio.com/docs/extensions/example-debuggers)
49
+
50
+ ## Debug adapter implementations for VS Code
51
+ * [Node Debugger](https://github.com/microsoft/vscode-node-debug)
52
+ * [Node Debugger 2](https://github.com/microsoft/vscode-node-debug2)
53
+ * [Java Debugger](https://github.com/Microsoft/vscode-java-debug)
54
+
55
+ ## License
56
+
57
+ - [Eclipse Public License 2.0](http://www.eclipse.org/legal/epl-2.0/)
58
+ - [一 (Secondary) GNU General Public License, version 2 with the GNU Classpath Exception](https://projects.eclipse.org/license/secondary-gpl-2.0-cp)
59
+
60
+ ## Trademark
61
+ "Theia" is a trademark of the Eclipse Foundation
62
+ https://www.eclipse.org/theia
@@ -424,12 +424,12 @@ let DebugConfigurationManager = class DebugConfigurationManager {
424
424
  await event_1.WaitUntilEvent.fire(this.onWillProvideDynamicDebugConfigurationEmitter, {});
425
425
  }
426
426
  getInitialConfigurationContent(initialConfigurations) {
427
- return `{
428
- // Use IntelliSense to learn about possible attributes.
429
- // Hover to view descriptions of existing attributes.
430
- "version": "0.2.0",
431
- "configurations": ${JSON.stringify(initialConfigurations, undefined, ' ').split('\n').map(line => ' ' + line).join('\n').trim()}
432
- }
427
+ return `{
428
+ // Use IntelliSense to learn about possible attributes.
429
+ // Hover to view descriptions of existing attributes.
430
+ "version": "0.2.0",
431
+ "configurations": ${JSON.stringify(initialConfigurations, undefined, ' ').split('\n').map(line => ' ' + line).join('\n').trim()}
432
+ }
433
433
  `;
434
434
  }
435
435
  async selectDebugType() {
@@ -4,7 +4,6 @@
4
4
  /// <reference types="@theia/plugin/src/theia.proposed.notebookKernelSource" />
5
5
  /// <reference types="@theia/plugin/src/theia.proposed.notebookMessaging" />
6
6
  /// <reference types="@theia/plugin/src/theia.proposed.portsAttributes" />
7
- /// <reference types="@theia/plugin/src/theia.proposed.terminalShellIntegration" />
8
7
  /// <reference types="@theia/plugin/src/theia-extra" />
9
8
  /// <reference types="@theia/plugin/src/theia.proposed.canonicalUriProvider" />
10
9
  /// <reference types="@theia/plugin/src/theia.proposed.customEditorMove" />
@@ -1 +1 @@
1
- {"version":3,"file":"inline-debug-adapter.d.ts","sourceRoot":"","sources":["../../src/common/inline-debug-adapter.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAgBA,OAAO,EAAW,KAAK,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,KAAK,KAAK,MAAM,eAAe,CAAC;AAEvC;;GAEG;AACH,qBAAa,kBAAmB,YAAW,YAAY;IAOvC,OAAO,CAAC,YAAY;IANhC,OAAO,CAAC,sBAAsB,CAAyB;IACvD,iBAAiB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAqC;IACrE,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,CAAc;IACnC,OAAO,CAAC,YAAY,CAAuB;IAC3C,OAAO,EAAE,KAAK,CAAC,IAAI,CAAC,CAA2B;gBAE3B,YAAY,EAAE,KAAK,CAAC,YAAY;IAM9C,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAG5B,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAIrB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAG9B"}
1
+ {"version":3,"file":"inline-debug-adapter.d.ts","sourceRoot":"","sources":["../../src/common/inline-debug-adapter.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAgBA,OAAO,EAAW,KAAK,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,KAAK,KAAK,MAAM,eAAe,CAAC;AAEvC;;GAEG;AACH,qBAAa,kBAAmB,YAAW,YAAY;IAOvC,OAAO,CAAC,YAAY;IANhC,OAAO,CAAC,sBAAsB,CAAyB;IACvD,iBAAiB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAqC;IACrE,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,CAAc;IACnC,OAAO,CAAC,YAAY,CAAuB;IAC3C,OAAO,EAAE,KAAK,CAAC,IAAI,CAAC,CAA2B;gBAE3B,YAAY,EAAE,KAAK,CAAC,YAAY;IAM9C,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAG5B,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAIrB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAG9B"}
package/package.json CHANGED
@@ -1,22 +1,22 @@
1
1
  {
2
2
  "name": "@theia/debug",
3
- "version": "1.53.0-next.55+d1a989a68c",
3
+ "version": "1.53.0-next.64+23b351d26",
4
4
  "description": "Theia - Debug Extension",
5
5
  "dependencies": {
6
- "@theia/console": "1.53.0-next.55+d1a989a68c",
7
- "@theia/core": "1.53.0-next.55+d1a989a68c",
8
- "@theia/editor": "1.53.0-next.55+d1a989a68c",
9
- "@theia/filesystem": "1.53.0-next.55+d1a989a68c",
10
- "@theia/markers": "1.53.0-next.55+d1a989a68c",
11
- "@theia/monaco": "1.53.0-next.55+d1a989a68c",
6
+ "@theia/console": "1.53.0-next.64+23b351d26",
7
+ "@theia/core": "1.53.0-next.64+23b351d26",
8
+ "@theia/editor": "1.53.0-next.64+23b351d26",
9
+ "@theia/filesystem": "1.53.0-next.64+23b351d26",
10
+ "@theia/markers": "1.53.0-next.64+23b351d26",
11
+ "@theia/monaco": "1.53.0-next.64+23b351d26",
12
12
  "@theia/monaco-editor-core": "1.83.101",
13
- "@theia/output": "1.53.0-next.55+d1a989a68c",
14
- "@theia/process": "1.53.0-next.55+d1a989a68c",
15
- "@theia/task": "1.53.0-next.55+d1a989a68c",
16
- "@theia/terminal": "1.53.0-next.55+d1a989a68c",
17
- "@theia/test": "1.53.0-next.55+d1a989a68c",
18
- "@theia/variable-resolver": "1.53.0-next.55+d1a989a68c",
19
- "@theia/workspace": "1.53.0-next.55+d1a989a68c",
13
+ "@theia/output": "1.53.0-next.64+23b351d26",
14
+ "@theia/process": "1.53.0-next.64+23b351d26",
15
+ "@theia/task": "1.53.0-next.64+23b351d26",
16
+ "@theia/terminal": "1.53.0-next.64+23b351d26",
17
+ "@theia/test": "1.53.0-next.64+23b351d26",
18
+ "@theia/variable-resolver": "1.53.0-next.64+23b351d26",
19
+ "@theia/workspace": "1.53.0-next.64+23b351d26",
20
20
  "@vscode/debugprotocol": "^1.51.0",
21
21
  "fast-deep-equal": "^3.1.3",
22
22
  "jsonc-parser": "^2.2.0",
@@ -64,5 +64,5 @@
64
64
  "nyc": {
65
65
  "extends": "../../configs/nyc.json"
66
66
  },
67
- "gitHead": "d1a989a68c1b5ec1f9098e9126653c6346844769"
67
+ "gitHead": "23b351d26346a2b5d6aca3ee81fba59c056132f7"
68
68
  }