@theia/debug 1.65.0-next.6 → 1.65.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 (105) hide show
  1. package/lib/browser/console/debug-console-items.d.ts.map +1 -1
  2. package/lib/browser/console/debug-console-items.js +34 -20
  3. package/lib/browser/console/debug-console-items.js.map +1 -1
  4. package/lib/browser/debug-configuration-manager.d.ts +2 -2
  5. package/lib/browser/debug-configuration-manager.d.ts.map +1 -1
  6. package/lib/browser/debug-configuration-manager.js +8 -9
  7. package/lib/browser/debug-configuration-manager.js.map +1 -1
  8. package/lib/browser/debug-configuration-model.d.ts +1 -1
  9. package/lib/browser/debug-configuration-model.d.ts.map +1 -1
  10. package/lib/browser/debug-configuration-model.js.map +1 -1
  11. package/lib/browser/debug-frontend-application-contribution.d.ts +17 -3
  12. package/lib/browser/debug-frontend-application-contribution.d.ts.map +1 -1
  13. package/lib/browser/debug-frontend-application-contribution.js +208 -44
  14. package/lib/browser/debug-frontend-application-contribution.js.map +1 -1
  15. package/lib/browser/debug-frontend-module.js +2 -2
  16. package/lib/browser/debug-frontend-module.js.map +1 -1
  17. package/lib/browser/debug-prefix-configuration.d.ts +1 -1
  18. package/lib/browser/debug-prefix-configuration.d.ts.map +1 -1
  19. package/lib/browser/debug-prefix-configuration.js +3 -2
  20. package/lib/browser/debug-prefix-configuration.js.map +1 -1
  21. package/lib/browser/debug-schema-updater.d.ts +0 -1
  22. package/lib/browser/debug-schema-updater.d.ts.map +1 -1
  23. package/lib/browser/debug-schema-updater.js +5 -5
  24. package/lib/browser/debug-schema-updater.js.map +1 -1
  25. package/lib/browser/debug-session-contribution.d.ts +1 -1
  26. package/lib/browser/debug-session-contribution.d.ts.map +1 -1
  27. package/lib/browser/debug-session-contribution.js +1 -1
  28. package/lib/browser/debug-session-contribution.js.map +1 -1
  29. package/lib/browser/debug-session-manager.d.ts.map +1 -1
  30. package/lib/browser/debug-session-manager.js +14 -8
  31. package/lib/browser/debug-session-manager.js.map +1 -1
  32. package/lib/browser/debug-session.d.ts +8 -0
  33. package/lib/browser/debug-session.d.ts.map +1 -1
  34. package/lib/browser/debug-session.js +13 -3
  35. package/lib/browser/debug-session.js.map +1 -1
  36. package/lib/browser/disassembly-view/disassembly-view-contribution.js +1 -1
  37. package/lib/browser/disassembly-view/disassembly-view-contribution.js.map +1 -1
  38. package/lib/browser/disassembly-view/disassembly-view-widget.d.ts +2 -2
  39. package/lib/browser/disassembly-view/disassembly-view-widget.d.ts.map +1 -1
  40. package/lib/browser/disassembly-view/disassembly-view-widget.js +3 -3
  41. package/lib/browser/disassembly-view/disassembly-view-widget.js.map +1 -1
  42. package/lib/browser/editor/debug-editor-model.d.ts.map +1 -1
  43. package/lib/browser/editor/debug-editor-model.js +16 -10
  44. package/lib/browser/editor/debug-editor-model.js.map +1 -1
  45. package/lib/browser/editor/debug-inline-value-decorator.d.ts +1 -1
  46. package/lib/browser/editor/debug-inline-value-decorator.d.ts.map +1 -1
  47. package/lib/browser/editor/debug-inline-value-decorator.js +1 -1
  48. package/lib/browser/editor/debug-inline-value-decorator.js.map +1 -1
  49. package/lib/browser/model/debug-breakpoint.d.ts.map +1 -1
  50. package/lib/browser/model/debug-breakpoint.js +3 -2
  51. package/lib/browser/model/debug-breakpoint.js.map +1 -1
  52. package/lib/browser/model/debug-instruction-breakpoint.js +1 -1
  53. package/lib/browser/model/debug-instruction-breakpoint.js.map +1 -1
  54. package/lib/browser/model/debug-source-breakpoint.d.ts.map +1 -1
  55. package/lib/browser/model/debug-source-breakpoint.js +10 -9
  56. package/lib/browser/model/debug-source-breakpoint.js.map +1 -1
  57. package/lib/browser/model/debug-thread.js +1 -1
  58. package/lib/browser/model/debug-thread.js.map +1 -1
  59. package/lib/browser/view/debug-stack-frames-source.d.ts.map +1 -1
  60. package/lib/browser/view/debug-stack-frames-source.js +2 -1
  61. package/lib/browser/view/debug-stack-frames-source.js.map +1 -1
  62. package/lib/browser/view/debug-view-model.d.ts.map +1 -1
  63. package/lib/browser/view/debug-view-model.js +1 -1
  64. package/lib/browser/view/debug-view-model.js.map +1 -1
  65. package/lib/{browser → common}/debug-preferences.d.ts +1 -1
  66. package/lib/{browser → common}/debug-preferences.d.ts.map +1 -1
  67. package/lib/{browser → common}/debug-preferences.js +4 -5
  68. package/lib/common/debug-preferences.js.map +1 -0
  69. package/lib/common/inline-debug-adapter.d.ts +3 -0
  70. package/lib/common/inline-debug-adapter.d.ts.map +1 -1
  71. package/lib/{browser/preferences → common}/launch-preferences.d.ts +2 -1
  72. package/lib/common/launch-preferences.d.ts.map +1 -0
  73. package/lib/{browser/preferences → common}/launch-preferences.js +8 -10
  74. package/lib/common/launch-preferences.js.map +1 -0
  75. package/lib/node/debug-backend-module.d.ts.map +1 -1
  76. package/lib/node/debug-backend-module.js +4 -0
  77. package/lib/node/debug-backend-module.js.map +1 -1
  78. package/package.json +16 -16
  79. package/src/browser/console/debug-console-items.tsx +32 -20
  80. package/src/browser/debug-configuration-manager.ts +5 -6
  81. package/src/browser/debug-configuration-model.ts +1 -2
  82. package/src/browser/debug-frontend-application-contribution.ts +231 -50
  83. package/src/browser/debug-frontend-module.ts +2 -2
  84. package/src/browser/debug-prefix-configuration.ts +3 -3
  85. package/src/browser/debug-schema-updater.ts +2 -2
  86. package/src/browser/debug-session-contribution.ts +1 -1
  87. package/src/browser/debug-session-manager.ts +14 -8
  88. package/src/browser/debug-session.tsx +14 -2
  89. package/src/browser/disassembly-view/disassembly-view-contribution.ts +1 -1
  90. package/src/browser/disassembly-view/disassembly-view-widget.ts +2 -2
  91. package/src/browser/editor/debug-editor-model.ts +15 -10
  92. package/src/browser/editor/debug-inline-value-decorator.ts +1 -1
  93. package/src/browser/model/debug-breakpoint.tsx +3 -2
  94. package/src/browser/model/debug-instruction-breakpoint.tsx +1 -1
  95. package/src/browser/model/debug-source-breakpoint.tsx +13 -10
  96. package/src/browser/model/debug-thread.tsx +1 -1
  97. package/src/browser/style/index.css +6 -2
  98. package/src/browser/view/debug-stack-frames-source.tsx +2 -1
  99. package/src/browser/view/debug-view-model.ts +2 -2
  100. package/src/{browser → common}/debug-preferences.ts +4 -5
  101. package/src/{browser/preferences → common}/launch-preferences.ts +5 -6
  102. package/src/node/debug-backend-module.ts +4 -0
  103. package/lib/browser/debug-preferences.js.map +0 -1
  104. package/lib/browser/preferences/launch-preferences.d.ts.map +0 -1
  105. package/lib/browser/preferences/launch-preferences.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"debug-preferences.d.ts","sourceRoot":"","sources":["../../src/browser/debug-preferences.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,iBAAiB,EAAiD,MAAM,qCAAqC,CAAC;AAC1J,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAE1D,eAAO,MAAM,sBAAsB,EAAE,gBAiDpC,CAAC;AAEF,qBAAa,kBAAkB;IAC3B,aAAa,EAAE,OAAO,CAAC;IACvB,iBAAiB,EAAE,WAAW,GAAG,oBAAoB,GAAG,yBAAyB,GAAG,kBAAkB,CAAC;IACvG,8BAA8B,EAAE,WAAW,GAAG,oBAAoB,GAAG,yBAAyB,CAAC;IAC/F,oBAAoB,EAAE,OAAO,CAAC;IAC9B,uBAAuB,EAAE,OAAO,GAAG,QAAQ,GAAG,qBAAqB,CAAC;IACpE,qBAAqB,EAAE,OAAO,GAAG,QAAQ,CAAC;IAC1C,sCAAsC,EAAE,OAAO,CAAC;CACnD;AAED,eAAO,MAAM,2BAA2B,eAAwC,CAAC;AACjF,eAAO,MAAM,gBAAgB,eAA6B,CAAC;AAC3D,MAAM,MAAM,gBAAgB,GAAG,eAAe,CAAC,kBAAkB,CAAC,CAAC;AAEnE,wBAAgB,sBAAsB,CAAC,WAAW,EAAE,iBAAiB,EAAE,MAAM,GAAE,gBAAyC,GAAG,gBAAgB,CAE1I;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,UAAU,CAAC,IAAI,GAAG,IAAI,CAQhE"}
1
+ {"version":3,"file":"debug-preferences.d.ts","sourceRoot":"","sources":["../../src/common/debug-preferences.ts"],"names":[],"mappings":"AAiBA,OAAO,EAA0B,eAAe,EAAE,gBAAgB,EAAE,iBAAiB,EAAyB,MAAM,oCAAoC,CAAC;AACzJ,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAE1D,eAAO,MAAM,sBAAsB,EAAE,gBAgDpC,CAAC;AAEF,qBAAa,kBAAkB;IAC3B,aAAa,EAAE,OAAO,CAAC;IACvB,iBAAiB,EAAE,WAAW,GAAG,oBAAoB,GAAG,yBAAyB,GAAG,kBAAkB,CAAC;IACvG,8BAA8B,EAAE,WAAW,GAAG,oBAAoB,GAAG,yBAAyB,CAAC;IAC/F,oBAAoB,EAAE,OAAO,CAAC;IAC9B,uBAAuB,EAAE,OAAO,GAAG,QAAQ,GAAG,qBAAqB,CAAC;IACpE,qBAAqB,EAAE,OAAO,GAAG,QAAQ,CAAC;IAC1C,sCAAsC,EAAE,OAAO,CAAC;CACnD;AAED,eAAO,MAAM,2BAA2B,eAAwC,CAAC;AACjF,eAAO,MAAM,gBAAgB,eAA6B,CAAC;AAC3D,MAAM,MAAM,gBAAgB,GAAG,eAAe,CAAC,kBAAkB,CAAC,CAAC;AAEnE,wBAAgB,sBAAsB,CAAC,WAAW,EAAE,iBAAiB,EAAE,MAAM,GAAE,gBAAyC,GAAG,gBAAgB,CAE1I;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,UAAU,CAAC,IAAI,GAAG,IAAI,CAQhE"}
@@ -17,9 +17,8 @@
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.bindDebugPreferences = exports.createDebugPreferences = exports.DebugPreferences = exports.DebugPreferenceContribution = exports.DebugConfiguration = exports.debugPreferencesSchema = void 0;
19
19
  const nls_1 = require("@theia/core/lib/common/nls");
20
- const preferences_1 = require("@theia/core/lib/browser/preferences");
20
+ const preferences_1 = require("@theia/core/lib/common/preferences");
21
21
  exports.debugPreferencesSchema = {
22
- type: 'object',
23
22
  properties: {
24
23
  'debug.trace': {
25
24
  type: 'boolean',
@@ -52,12 +51,12 @@ exports.debugPreferencesSchema = {
52
51
  default: 'onFirstSessionStart'
53
52
  },
54
53
  'debug.confirmOnExit': {
55
- description: 'Controls whether to confirm when the window closes if there are active debug sessions.',
54
+ description: nls_1.nls.localizeByDefault('Controls whether to confirm when the window closes if there are active debug sessions.'),
56
55
  type: 'string',
57
56
  enum: ['never', 'always'],
58
57
  enumDescriptions: [
59
- 'Never confirm.',
60
- 'Always confirm if there are debug sessions.',
58
+ nls_1.nls.localizeByDefault('Never confirm.'),
59
+ nls_1.nls.localizeByDefault('Always confirm if there are debug sessions.'),
61
60
  ],
62
61
  default: 'never'
63
62
  },
@@ -0,0 +1 @@
1
+ {"version":3,"file":"debug-preferences.js","sourceRoot":"","sources":["../../src/common/debug-preferences.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,0CAA0C;AAC1C,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;AAEhF,oDAAiD;AACjD,oEAAyJ;AAG5I,QAAA,sBAAsB,GAAqB;IACpD,UAAU,EAAE;QACR,aAAa,EAAE;YACX,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,KAAK;YACd,WAAW,EAAE,SAAG,CAAC,QAAQ,CAAC,2BAA2B,EAAE,2DAA2D,CAAC;SACtH;QACD,iBAAiB,EAAE;YACf,IAAI,EAAE,CAAC,WAAW,EAAE,oBAAoB,EAAE,yBAAyB,EAAE,kBAAkB,CAAC;YACxF,OAAO,EAAE,oBAAoB;YAC7B,WAAW,EAAE,SAAG,CAAC,iBAAiB,CAAC,2CAA2C,CAAC;SAClF;QACD,8BAA8B,EAAE;YAC5B,I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CAAC;AAG3D,SAAgB,sBAAsB,CAAC,WAA8B,EAAE,SAA2B,8BAAsB;IACpH,OAAO,IAAA,mCAAqB,EAAC,WAAW,EAAE,MAAM,CAAC,CAAC;AACtD,CAAC;AAFD,wDAEC;AAED,SAAgB,oBAAoB,CAAC,IAAqB;IACtD,IAAI,CAAC,wBAAgB,CAAC,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE;QACxC,MAAM,WAAW,GAAG,GAAG,CAAC,SAAS,CAAC,GAAG,CAAoB,+BAAiB,CAAC,CAAC;QAC5E,MAAM,YAAY,GAAG,GAAG,CAAC,SAAS,CAAC,GAAG,CAAyB,mCAA2B,CAAC,CAAC;QAC5F,OAAO,sBAAsB,CAAC,WAAW,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IACpE,CAAC,CAAC,CAAC,gBAAgB,EAAE,CAAC;IACtB,IAAI,CAAC,mCAA2B,CAAC,CAAC,eAAe,CAAC,EAAE,MAAM,EAAE,8BAAsB,EAAE,CAAC,CAAC;IACtF,IAAI,CAAC,oCAAsB,CAAC,CAAC,SAAS,CAAC,mCAA2B,CAAC,CAAC;AACxE,CAAC;AARD,oDAQC"}
@@ -4,7 +4,9 @@
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.scmProviderOptions" />
7
8
  /// <reference types="@theia/plugin/src/theia.proposed.terminalCompletionProvider" />
9
+ /// <reference types="@theia/plugin/src/theia.proposed.textEditorDiffInformation" />
8
10
  /// <reference types="@theia/plugin/src/theia-extra" />
9
11
  /// <reference types="@theia/plugin/src/theia.proposed.canonicalUriProvider" />
10
12
  /// <reference types="@theia/plugin/src/theia.proposed.customEditorMove" />
@@ -14,6 +16,7 @@
14
16
  /// <reference types="@theia/plugin/src/theia.proposed.externalUriOpener" />
15
17
  /// <reference types="@theia/plugin/src/theia.proposed.findTextInFiles" />
16
18
  /// <reference types="@theia/plugin/src/theia.proposed.fsChunks" />
19
+ /// <reference types="@theia/plugin/src/theia.proposed.interactiveWindow" />
17
20
  /// <reference types="@theia/plugin/src/theia.proposed.mappedEditsProvider" />
18
21
  /// <reference types="@theia/plugin/src/theia.proposed.profileContentHandlers" />
19
22
  /// <reference types="@theia/plugin/src/theia.proposed.resolvers" />
@@ -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"}
@@ -1,5 +1,6 @@
1
1
  import { interfaces } from '@theia/core/shared/inversify';
2
- import { PreferenceSchema } from '@theia/core/lib/browser/preferences/preference-contribution';
2
+ import { PreferenceSchema } from '@theia/core/lib/common';
3
+ export declare const launchSchemaId = "vscode://schemas/launch";
3
4
  export declare const launchPreferencesSchema: PreferenceSchema;
4
5
  export declare function bindLaunchPreferences(bind: interfaces.Bind): void;
5
6
  //# sourceMappingURL=launch-preferences.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"launch-preferences.d.ts","sourceRoot":"","sources":["../../src/common/launch-preferences.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAE1D,OAAO,EAAmD,gBAAgB,EAAmB,MAAM,wBAAwB,CAAC;AAE5H,eAAO,MAAM,cAAc,4BAA4B,CAAC;AAExD,eAAO,MAAM,uBAAuB,EAAE,gBASrC,CAAC;AAEF,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,UAAU,CAAC,IAAI,GAAG,IAAI,CAGjE"}
@@ -15,25 +15,23 @@
15
15
  // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
16
16
  // *****************************************************************************
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.bindLaunchPreferences = exports.launchPreferencesSchema = void 0;
19
- const preference_contribution_1 = require("@theia/core/lib/browser/preferences/preference-contribution");
20
- const debug_schema_updater_1 = require("../debug-schema-updater");
21
- const preference_configurations_1 = require("@theia/core/lib/browser/preferences/preference-configurations");
18
+ exports.bindLaunchPreferences = exports.launchPreferencesSchema = exports.launchSchemaId = void 0;
22
19
  const nls_1 = require("@theia/core/lib/common/nls");
20
+ const common_1 = require("@theia/core/lib/common");
21
+ exports.launchSchemaId = 'vscode://schemas/launch';
23
22
  exports.launchPreferencesSchema = {
24
- type: 'object',
25
- scope: 'resource',
23
+ scope: common_1.PreferenceScope.Folder,
26
24
  properties: {
27
25
  'launch': {
28
- $ref: debug_schema_updater_1.launchSchemaId,
26
+ $ref: exports.launchSchemaId,
29
27
  description: nls_1.nls.localizeByDefault("Global debug launch configuration. Should be used as an alternative to 'launch.json' that is shared across workspaces."),
30
- defaultValue: { configurations: [], compounds: [] }
28
+ default: { configurations: [], compounds: [] }
31
29
  }
32
30
  }
33
31
  };
34
32
  function bindLaunchPreferences(bind) {
35
- bind(preference_contribution_1.PreferenceContribution).toConstantValue({ schema: exports.launchPreferencesSchema });
36
- bind(preference_configurations_1.PreferenceConfiguration).toConstantValue({ name: 'launch' });
33
+ bind(common_1.PreferenceContribution).toConstantValue({ schema: exports.launchPreferencesSchema });
34
+ bind(common_1.PreferenceConfiguration).toConstantValue({ name: 'launch' });
37
35
  }
38
36
  exports.bindLaunchPreferences = bindLaunchPreferences;
39
37
  //# sourceMappingURL=launch-preferences.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"launch-preferences.js","sourceRoot":"","sources":["../../src/common/launch-preferences.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;AAGhF,oDAAiD;AACjD,mDAA4H;AAE/G,QAAA,cAAc,GAAG,yBAAyB,CAAC;AAE3C,QAAA,uBAAuB,GAAqB;IACrD,KAAK,EAAE,wBAAe,CAAC,MAAM;IAC7B,UAAU,EAAE;QACR,QAAQ,EAAE;YACN,IAAI,EAAE,sBAAc;YACpB,WAAW,EAAE,SAAG,CAAC,iBAAiB,CAAC,wHAAwH,CAAC;YAC5J,OAAO,EAAE,EAAE,cAAc,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE;SACjD;KACJ;CACJ,CAAC;AAEF,SAAgB,qBAAqB,CAAC,IAAqB;IACvD,IAAI,CAAC,+BAAsB,CAAC,CAAC,eAAe,CAAC,EAAE,MAAM,EAAE,+BAAuB,EAAE,CAAC,CAAC;IAClF,IAAI,CAAC,gCAAuB,CAAC,CAAC,eAAe,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,CAAC;AACtE,CAAC;AAHD,sDAGC"}
@@ -1 +1 @@
1
- {"version":3,"file":"debug-backend-module.d.ts","sourceRoot":"","sources":["../../src/node/debug-backend-module.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;;AA4B/D,wBAOG"}
1
+ {"version":3,"file":"debug-backend-module.d.ts","sourceRoot":"","sources":["../../src/node/debug-backend-module.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;;AA8B/D,wBASG"}
@@ -25,6 +25,8 @@ const debug_model_1 = require("../common/debug-model");
25
25
  const debug_service_impl_1 = require("./debug-service-impl");
26
26
  const debug_adapter_contribution_registry_1 = require("../common/debug-adapter-contribution-registry");
27
27
  const debug_adapter_session_manager_1 = require("./debug-adapter-session-manager");
28
+ const debug_preferences_1 = require("../common/debug-preferences");
29
+ const launch_preferences_1 = require("../common/launch-preferences");
28
30
  const debugConnectionModule = connection_container_module_1.ConnectionContainerModule.create(({ bind, bindBackendService }) => {
29
31
  (0, common_1.bindContributionProvider)(bind, debug_model_1.DebugAdapterContribution);
30
32
  bind(debug_adapter_contribution_registry_1.DebugAdapterContributionRegistry).toSelf().inSingletonScope();
@@ -37,5 +39,7 @@ exports.default = new inversify_1.ContainerModule(bind => {
37
39
  bind(debug_model_1.DebugAdapterFactory).to(debug_adapter_factory_1.LaunchBasedDebugAdapterFactory).inSingletonScope();
38
40
  bind(debug_adapter_session_manager_1.DebugAdapterSessionManager).toSelf().inSingletonScope();
39
41
  bind(messaging_service_1.MessagingService.Contribution).toService(debug_adapter_session_manager_1.DebugAdapterSessionManager);
42
+ (0, debug_preferences_1.bindDebugPreferences)(bind);
43
+ (0, launch_preferences_1.bindLaunchPreferences)(bind);
40
44
  });
41
45
  //# sourceMappingURL=debug-backend-module.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"debug-backend-module.js","sourceRoot":"","sources":["../../src/node/debug-backend-module.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,+CAA+C;AAC/C,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;AAEhF,mDAAkE;AAClE,4DAA+D;AAC/D,2DAGiC;AACjC,mEAGiC;AACjC,wFAAoF;AACpF,4GAAuG;AACvG,uDAI+B;AAC/B,6DAAwD;AACxD,uGAAiG;AACjG,mFAA6E;AAE7E,MAAM,qBAAqB,GAAG,uDAAyB,CAAC,MAAM,CAAC,CAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,EAAE,EAAE;IAC5F,IAAA,iCAAwB,EAAC,IAAI,EAAE,sCAAwB,CAAC,CAAC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,GAAG,uDAAyB,CAAC,MAAM,CAAC,CAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,EAAE,EAAE;IAC5F,IAAA,iCAAwB,EAAC,IAAI,EAAE,sCAAwB,CAAC,CAAC;IACzD,IAAI,CAAC,sEAAgC,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAEnE,IAAI,CAAC,4BAAY,CAAC,CAAC,EAAE,CAAC,qCAAgB,CAAC,CAAC,gBAAgB,EAAE,CAAC;IAC3D,kBAAkB,CAAC,yBAAS,EAAE,4BAAY,CAAC,CAAC;AAChD,CAAC,CAAC,CAAC;AAEH,kBAAe,IAAI,2BAAe,CAAC,IAAI,CAAC,EAAE;IACtC,IAAI,CAAC,uDAAyB,CAAC,CAAC,eAAe,CAAC,qBAAqB,CAAC,CAAC;IAEvE,IAAI,CAAC,wCAA0B,CAAC,CAAC,EAAE,CAAC,sDAA8B,CAAC,CAAC,gBAAgB,EAAE,CAAC;IACvF,IAAI,CAAC,iCAAmB,CAAC,CAAC,EAAE,CAAC,sDAA8B,CAAC,CAAC,gBAAgB,EAAE,CAAC;IAChF,IAAI,CAAC,0DAA0B,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAC7D,IAAI,CAAC,oCAAgB,CAAC,YAAY,CAAC,CAAC,SAAS,CAAC,0DAA0B,CAAC,CAAC;IAC1E,IAAA,wCAAoB,EAAC,IAAI,CAAC,CAAC;IAC3B,IAAA,0CAAqB,EAAC,IAAI,CAAC,CAAC;AAChC,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,22 +1,22 @@
1
1
  {
2
2
  "name": "@theia/debug",
3
- "version": "1.65.0-next.6+4384a9461",
3
+ "version": "1.65.0",
4
4
  "description": "Theia - Debug Extension",
5
5
  "dependencies": {
6
- "@theia/console": "1.65.0-next.6+4384a9461",
7
- "@theia/core": "1.65.0-next.6+4384a9461",
8
- "@theia/editor": "1.65.0-next.6+4384a9461",
9
- "@theia/filesystem": "1.65.0-next.6+4384a9461",
10
- "@theia/markers": "1.65.0-next.6+4384a9461",
11
- "@theia/monaco": "1.65.0-next.6+4384a9461",
6
+ "@theia/console": "1.65.0",
7
+ "@theia/core": "1.65.0",
8
+ "@theia/editor": "1.65.0",
9
+ "@theia/filesystem": "1.65.0",
10
+ "@theia/markers": "1.65.0",
11
+ "@theia/monaco": "1.65.0",
12
12
  "@theia/monaco-editor-core": "1.96.302",
13
- "@theia/output": "1.65.0-next.6+4384a9461",
14
- "@theia/process": "1.65.0-next.6+4384a9461",
15
- "@theia/task": "1.65.0-next.6+4384a9461",
16
- "@theia/terminal": "1.65.0-next.6+4384a9461",
17
- "@theia/test": "1.65.0-next.6+4384a9461",
18
- "@theia/variable-resolver": "1.65.0-next.6+4384a9461",
19
- "@theia/workspace": "1.65.0-next.6+4384a9461",
13
+ "@theia/output": "1.65.0",
14
+ "@theia/process": "1.65.0",
15
+ "@theia/task": "1.65.0",
16
+ "@theia/terminal": "1.65.0",
17
+ "@theia/test": "1.65.0",
18
+ "@theia/variable-resolver": "1.65.0",
19
+ "@theia/workspace": "1.65.0",
20
20
  "@vscode/debugprotocol": "^1.51.0",
21
21
  "fast-deep-equal": "^3.1.3",
22
22
  "jsonc-parser": "^2.2.0",
@@ -59,10 +59,10 @@
59
59
  "watch": "theiaext watch"
60
60
  },
61
61
  "devDependencies": {
62
- "@theia/ext-scripts": "1.64.0"
62
+ "@theia/ext-scripts": "1.65.0"
63
63
  },
64
64
  "nyc": {
65
65
  "extends": "../../configs/nyc.json"
66
66
  },
67
- "gitHead": "4384a946123dd1b41e65708e58928fc1af707c8d"
67
+ "gitHead": "500dfc80cee94fd2a623b5fb59b22d5a575247c2"
68
68
  }
@@ -18,7 +18,7 @@ import * as React from '@theia/core/shared/react';
18
18
  import { DebugProtocol } from '@vscode/debugprotocol/lib/debugProtocol';
19
19
  import { SingleTextInputDialog } from '@theia/core/lib/browser';
20
20
  import { ConsoleItem, CompositeConsoleItem } from '@theia/console/lib/browser/console-session';
21
- import { DebugSession } from '../debug-session';
21
+ import { DebugSession, formatMessage } from '../debug-session';
22
22
  import { Severity } from '@theia/core/lib/common/severity';
23
23
  import * as monaco from '@theia/monaco-editor-core';
24
24
  import { nls } from '@theia/core';
@@ -192,23 +192,19 @@ export class DebugVariable extends ExpressionContainer {
192
192
  return !!this.session && !!this.session.capabilities.supportsSetVariable;
193
193
  }
194
194
  async setValue(value: string): Promise<void> {
195
- if (!this.session) {
195
+ if (!this.session || value === this.value) {
196
196
  return;
197
197
  }
198
198
  const { name, parent } = this;
199
199
  const variablesReference = parent['variablesReference'];
200
- try {
201
- const response = await this.session.sendRequest('setVariable', { variablesReference, name, value });
202
- this._value = response.body.value;
203
- this._type = response.body.type;
204
- this.variablesReference = response.body.variablesReference || 0;
205
- this.namedVariables = response.body.namedVariables;
206
- this.indexedVariables = response.body.indexedVariables;
207
- this.elements = undefined;
208
- this.session['fireDidChange']();
209
- } catch (error) {
210
- console.error('setValue failed:', error);
211
- }
200
+ const response = await this.session.sendRequest('setVariable', { variablesReference, name, value });
201
+ this._value = response.body.value;
202
+ this._type = response.body.type;
203
+ this.variablesReference = response.body.variablesReference || 0;
204
+ this.namedVariables = response.body.namedVariables;
205
+ this.indexedVariables = response.body.indexedVariables;
206
+ this.elements = undefined;
207
+ this.session['fireDidChange']();
212
208
  }
213
209
 
214
210
  get supportCopyValue(): boolean {
@@ -244,12 +240,28 @@ export class DebugVariable extends ExpressionContainer {
244
240
  const input = new SingleTextInputDialog({
245
241
  title: nls.localize('theia/debug/debugVariableInput', 'Set {0} Value', this.name),
246
242
  initialValue: this.value,
247
- placeholder: nls.localizeByDefault('Value')
243
+ placeholder: nls.localizeByDefault('Value'),
244
+ validate: async (value, mode) => {
245
+ if (!value) {
246
+ return false;
247
+ }
248
+ if (mode === 'open') {
249
+ try {
250
+ await this.setValue(value);
251
+ } catch (error) {
252
+ console.error('setValue failed:', error);
253
+ if (error.body?.error) {
254
+ const errorMessage: DebugProtocol.Message = error.body.error;
255
+ if (errorMessage.showUser) {
256
+ return formatMessage(errorMessage.format, errorMessage.variables);
257
+ }
258
+ }
259
+ }
260
+ }
261
+ return true;
262
+ }
248
263
  });
249
- const newValue = await input.open();
250
- if (newValue) {
251
- await this.setValue(newValue);
252
- }
264
+ await input.open();
253
265
  }
254
266
 
255
267
  }
@@ -275,7 +287,7 @@ export namespace VirtualVariableItem {
275
287
  export class ExpressionItem extends ExpressionContainer {
276
288
 
277
289
  severity?: Severity;
278
- static notAvailable = 'not available';
290
+ static notAvailable = nls.localizeByDefault('not available');
279
291
 
280
292
  protected _value = ExpressionItem.notAvailable;
281
293
  get value(): string {
@@ -26,7 +26,7 @@ import URI from '@theia/core/lib/common/uri';
26
26
  import { Emitter, Event, WaitUntilEvent } from '@theia/core/lib/common/event';
27
27
  import { EditorManager, EditorWidget } from '@theia/editor/lib/browser';
28
28
  import { MonacoEditor } from '@theia/monaco/lib/browser/monaco-editor';
29
- import { LabelProvider, PreferenceScope, PreferenceService, QuickPickValue, StorageService } from '@theia/core/lib/browser';
29
+ import { LabelProvider, QuickPickValue, StorageService } from '@theia/core/lib/browser';
30
30
  import { QuickPickService } from '@theia/core/lib/common/quick-pick-service';
31
31
  import { WorkspaceService } from '@theia/workspace/lib/browser/workspace-service';
32
32
  import { DebugConfigurationModel } from './debug-configuration-model';
@@ -35,12 +35,11 @@ import { DebugService } from '../common/debug-service';
35
35
  import { ContextKey, ContextKeyService } from '@theia/core/lib/browser/context-key-service';
36
36
  import { DebugConfiguration } from '../common/debug-common';
37
37
  import { WorkspaceVariableContribution } from '@theia/workspace/lib/browser/workspace-variable-contribution';
38
- import { PreferenceConfigurations } from '@theia/core/lib/browser/preferences/preference-configurations';
39
38
  import { MonacoTextModelService } from '@theia/monaco/lib/browser/monaco-text-model-service';
40
39
  import * as monaco from '@theia/monaco-editor-core';
41
40
  import { ICommandService } from '@theia/monaco-editor-core/esm/vs/platform/commands/common/commands';
42
41
  import { StandaloneServices } from '@theia/monaco-editor-core/esm/vs/editor/standalone/browser/standaloneServices';
43
- import { nls } from '@theia/core';
42
+ import { nls, PreferenceConfigurations, PreferenceScope, PreferenceService } from '@theia/core';
44
43
  import { DebugCompound } from '../common/debug-compound';
45
44
 
46
45
  export interface WillProvideDebugConfiguration extends WaitUntilEvent {
@@ -511,8 +510,8 @@ export class DebugConfigurationManager {
511
510
 
512
511
  protected getInitialConfigurationContent(initialConfigurations: DebugConfiguration[]): string {
513
512
  return `{
514
- // Use IntelliSense to learn about possible attributes.
515
- // Hover to view descriptions of existing attributes.
513
+ // ${nls.localizeByDefault('Use IntelliSense to learn about possible attributes.')}
514
+ // ${nls.localizeByDefault('Hover to view descriptions of existing attributes.')}
516
515
  "version": "0.2.0",
517
516
  "configurations": ${JSON.stringify(initialConfigurations, undefined, ' ').split('\n').map(line => ' ' + line).join('\n').trim()}
518
517
  }
@@ -530,7 +529,7 @@ export class DebugConfigurationManager {
530
529
  return undefined;
531
530
  }
532
531
  const items: Array<QuickPickValue<string>> = debuggers.map(({ label, type }) => ({ label, value: type }));
533
- const selectedItem = await this.quickPickService.show(items, { placeholder: 'Select Environment' });
532
+ const selectedItem = await this.quickPickService.show(items, { placeholder: nls.localizeByDefault('Select debugger') });
534
533
  return selectedItem?.value;
535
534
  }
536
535
 
@@ -18,9 +18,8 @@ import URI from '@theia/core/lib/common/uri';
18
18
  import { Emitter, Event } from '@theia/core/lib/common/event';
19
19
  import { Disposable, DisposableCollection } from '@theia/core/lib/common/disposable';
20
20
  import { DebugConfiguration } from '../common/debug-common';
21
- import { PreferenceService } from '@theia/core/lib/browser/preferences/preference-service';
22
21
  import { DebugCompound } from '../common/debug-compound';
23
- import { isObject } from '@theia/core/lib/common';
22
+ import { isObject, PreferenceService } from '@theia/core/lib/common';
24
23
 
25
24
  export class DebugConfigurationModel implements Disposable {
26
25