@theia/debug 1.73.0-next.9 → 1.74.0-next.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 (59) hide show
  1. package/lib/browser/console/debug-console-items.d.ts +2 -2
  2. package/lib/browser/console/debug-console-items.d.ts.map +1 -1
  3. package/lib/browser/console/debug-console-items.js +2 -2
  4. package/lib/browser/console/debug-console-items.js.map +1 -1
  5. package/lib/browser/console/debug-console-session.d.ts +2 -0
  6. package/lib/browser/console/debug-console-session.d.ts.map +1 -1
  7. package/lib/browser/console/debug-console-session.js +7 -1
  8. package/lib/browser/console/debug-console-session.js.map +1 -1
  9. package/lib/browser/debug-frontend-application-contribution.d.ts +2 -0
  10. package/lib/browser/debug-frontend-application-contribution.d.ts.map +1 -1
  11. package/lib/browser/debug-frontend-application-contribution.js +7 -1
  12. package/lib/browser/debug-frontend-application-contribution.js.map +1 -1
  13. package/lib/browser/debug-frontend-module.js +1 -1
  14. package/lib/browser/debug-frontend-module.js.map +1 -1
  15. package/lib/browser/debug-session-contribution.d.ts +6 -28
  16. package/lib/browser/debug-session-contribution.d.ts.map +1 -1
  17. package/lib/browser/debug-session-contribution.js +19 -72
  18. package/lib/browser/debug-session-contribution.js.map +1 -1
  19. package/lib/browser/debug-session-manager.d.ts +2 -1
  20. package/lib/browser/debug-session-manager.d.ts.map +1 -1
  21. package/lib/browser/debug-session-manager.js +8 -3
  22. package/lib/browser/debug-session-manager.js.map +1 -1
  23. package/lib/browser/debug-session.d.ts +17 -9
  24. package/lib/browser/debug-session.d.ts.map +1 -1
  25. package/lib/browser/debug-session.js +123 -40
  26. package/lib/browser/debug-session.js.map +1 -1
  27. package/lib/browser/view/debug-action.d.ts +1 -1
  28. package/lib/browser/view/debug-action.d.ts.map +1 -1
  29. package/lib/browser/view/debug-action.js +1 -1
  30. package/lib/browser/view/debug-action.js.map +1 -1
  31. package/lib/browser/view/debug-toolbar-widget.d.ts +2 -1
  32. package/lib/browser/view/debug-toolbar-widget.d.ts.map +1 -1
  33. package/lib/browser/view/debug-toolbar-widget.js +6 -1
  34. package/lib/browser/view/debug-toolbar-widget.js.map +1 -1
  35. package/lib/browser/view/debug-watch-expression.d.ts +1 -1
  36. package/lib/browser/view/debug-watch-expression.d.ts.map +1 -1
  37. package/lib/browser/view/debug-watch-expression.js +1 -1
  38. package/lib/browser/view/debug-watch-expression.js.map +1 -1
  39. package/lib/common/debug-adapter-contribution-registry.d.ts +2 -1
  40. package/lib/common/debug-adapter-contribution-registry.d.ts.map +1 -1
  41. package/lib/common/debug-adapter-contribution-registry.js +10 -5
  42. package/lib/common/debug-adapter-contribution-registry.js.map +1 -1
  43. package/lib/node/debug-service-impl.d.ts +2 -1
  44. package/lib/node/debug-service-impl.d.ts.map +1 -1
  45. package/lib/node/debug-service-impl.js +6 -1
  46. package/lib/node/debug-service-impl.js.map +1 -1
  47. package/package.json +16 -16
  48. package/src/browser/console/debug-console-items.tsx +2 -2
  49. package/src/browser/console/debug-console-session.ts +6 -3
  50. package/src/browser/debug-frontend-application-contribution.ts +6 -2
  51. package/src/browser/debug-frontend-module.ts +1 -1
  52. package/src/browser/debug-session-contribution.ts +20 -61
  53. package/src/browser/debug-session-manager.ts +8 -5
  54. package/src/browser/debug-session.tsx +91 -32
  55. package/src/browser/view/debug-action.tsx +1 -1
  56. package/src/browser/view/debug-toolbar-widget.tsx +5 -3
  57. package/src/browser/view/debug-watch-expression.tsx +1 -1
  58. package/src/common/debug-adapter-contribution-registry.ts +9 -6
  59. package/src/node/debug-service-impl.ts +6 -3
@@ -15,7 +15,7 @@
15
15
  // *****************************************************************************
16
16
 
17
17
  import { injectable, inject, named } from '@theia/core/shared/inversify';
18
- import { ContributionProvider } from '@theia/core';
18
+ import { ContributionProvider, ILogger } from '@theia/core';
19
19
  import { DebugConfiguration } from './debug-configuration';
20
20
  import { DebuggerDescription, DebugError } from './debug-service';
21
21
 
@@ -28,6 +28,9 @@ import { IJSONSchema, IJSONSchemaSnippet } from '@theia/core/lib/common/json-sch
28
28
  @injectable()
29
29
  export class DebugAdapterContributionRegistry {
30
30
 
31
+ @inject(ILogger) @named('debug:DebugAdapterContributionRegistry')
32
+ protected readonly logger: ILogger;
33
+
31
34
  @inject(ContributionProvider) @named(DebugAdapterContribution)
32
35
  protected readonly contributions: ContributionProvider<DebugAdapterContribution>;
33
36
  protected *getContributions(debugType: string): IterableIterator<DebugAdapterContribution> {
@@ -83,7 +86,7 @@ export class DebugAdapterContributionRegistry {
83
86
  const result = await contribution.provideDebugConfigurations(workspaceFolderUri);
84
87
  configurations.push(...result);
85
88
  } catch (e) {
86
- console.error('provideDebugConfigurations failed:', e);
89
+ this.logger.error('provideDebugConfigurations failed:', e);
87
90
  }
88
91
  }
89
92
  }
@@ -108,7 +111,7 @@ export class DebugAdapterContributionRegistry {
108
111
  return current;
109
112
  }
110
113
  } catch (e) {
111
- console.error('resolveDebugConfiguration failed:', e);
114
+ this.logger.error('resolveDebugConfiguration failed:', e);
112
115
  }
113
116
  }
114
117
  }
@@ -133,7 +136,7 @@ export class DebugAdapterContributionRegistry {
133
136
  return current;
134
137
  }
135
138
  } catch (e) {
136
- console.error('resolveDebugConfigurationWithSubstitutedVariables failed:', e);
139
+ this.logger.error('resolveDebugConfigurationWithSubstitutedVariables failed:', e);
137
140
  }
138
141
  }
139
142
  }
@@ -152,7 +155,7 @@ export class DebugAdapterContributionRegistry {
152
155
  try {
153
156
  schemas.push(...await contribution.getSchemaAttributes());
154
157
  } catch (e) {
155
- console.error('getSchemaAttributes failed:', e);
158
+ this.logger.error('getSchemaAttributes failed:', e);
156
159
  }
157
160
  }
158
161
  }
@@ -165,7 +168,7 @@ export class DebugAdapterContributionRegistry {
165
168
  try {
166
169
  schemas.push(...await contribution.getConfigurationSnippets());
167
170
  } catch (e) {
168
- console.error('getConfigurationSnippets failed:', e);
171
+ this.logger.error('getConfigurationSnippets failed:', e);
169
172
  }
170
173
  }
171
174
  }
@@ -14,14 +14,14 @@
14
14
  // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
15
15
  // *****************************************************************************
16
16
 
17
- import { injectable, inject } from '@theia/core/shared/inversify';
17
+ import { injectable, inject, named } from '@theia/core/shared/inversify';
18
18
  import { DebugConfiguration } from '../common/debug-configuration';
19
19
  import { DebugService, DebuggerDescription, DynamicDebugConfigurationProvider } from '../common/debug-service';
20
20
  import { IJSONSchema, IJSONSchemaSnippet } from '@theia/core/lib/common/json-schema';
21
21
  import { CommandIdVariables } from '@theia/variable-resolver/lib/common/variable-types';
22
22
  import { DebugAdapterSessionManager } from './debug-adapter-session-manager';
23
23
  import { DebugAdapterContributionRegistry } from '../common/debug-adapter-contribution-registry';
24
- import { Event } from '@theia/core';
24
+ import { Event, ILogger } from '@theia/core';
25
25
 
26
26
  /**
27
27
  * DebugService implementation.
@@ -35,6 +35,9 @@ export class DebugServiceImpl implements DebugService {
35
35
  @inject(DebugAdapterContributionRegistry)
36
36
  protected readonly registry: DebugAdapterContributionRegistry;
37
37
 
38
+ @inject(ILogger) @named('debug:DebugServiceImpl')
39
+ protected readonly logger: ILogger;
40
+
38
41
  get onDidChangeDebugConfigurationProviders(): Event<void> {
39
42
  return Event.None;
40
43
  }
@@ -113,7 +116,7 @@ export class DebugServiceImpl implements DebugService {
113
116
  try {
114
117
  await this.doStop(session);
115
118
  } catch (e) {
116
- console.error('terminateDebugSession failed:', e);
119
+ this.logger.error('terminateDebugSession failed:', e);
117
120
  }
118
121
  })());
119
122
  }