@theia/debug 1.17.0-next.ff9e0507 → 1.18.0-next.04e2816d

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 (139) hide show
  1. package/lib/browser/breakpoint/breakpoint-manager.js +159 -382
  2. package/lib/browser/breakpoint/breakpoint-manager.js.map +1 -1
  3. package/lib/browser/breakpoint/breakpoint-marker.js +4 -15
  4. package/lib/browser/breakpoint/breakpoint-marker.js.map +1 -1
  5. package/lib/browser/console/debug-console-contribution.d.ts.map +1 -1
  6. package/lib/browser/console/debug-console-contribution.js +132 -221
  7. package/lib/browser/console/debug-console-contribution.js.map +1 -1
  8. package/lib/browser/console/debug-console-items.js +231 -451
  9. package/lib/browser/console/debug-console-items.js.map +1 -1
  10. package/lib/browser/console/debug-console-session.js +86 -223
  11. package/lib/browser/console/debug-console-session.js.map +1 -1
  12. package/lib/browser/debug-configuration-manager.js +281 -623
  13. package/lib/browser/debug-configuration-manager.js.map +1 -1
  14. package/lib/browser/debug-configuration-model.js +31 -108
  15. package/lib/browser/debug-configuration-model.js.map +1 -1
  16. package/lib/browser/debug-frontend-application-contribution.d.ts +1 -0
  17. package/lib/browser/debug-frontend-application-contribution.d.ts.map +1 -1
  18. package/lib/browser/debug-frontend-application-contribution.js +577 -780
  19. package/lib/browser/debug-frontend-application-contribution.js.map +1 -1
  20. package/lib/browser/debug-frontend-module.js +46 -82
  21. package/lib/browser/debug-frontend-module.js.map +1 -1
  22. package/lib/browser/debug-keybinding-contexts.js +41 -59
  23. package/lib/browser/debug-keybinding-contexts.js.map +1 -1
  24. package/lib/browser/debug-monaco-contribution.js +17 -17
  25. package/lib/browser/debug-monaco-contribution.js.map +1 -1
  26. package/lib/browser/debug-package.spec.js +2 -2
  27. package/lib/browser/debug-package.spec.js.map +1 -1
  28. package/lib/browser/debug-preferences.js +7 -11
  29. package/lib/browser/debug-preferences.js.map +1 -1
  30. package/lib/browser/debug-prefix-configuration.js +101 -117
  31. package/lib/browser/debug-prefix-configuration.js.map +1 -1
  32. package/lib/browser/debug-resource.js +29 -79
  33. package/lib/browser/debug-resource.js.map +1 -1
  34. package/lib/browser/debug-schema-updater.js +54 -193
  35. package/lib/browser/debug-schema-updater.js.map +1 -1
  36. package/lib/browser/debug-session-connection.js +137 -235
  37. package/lib/browser/debug-session-connection.js.map +1 -1
  38. package/lib/browser/debug-session-contribution.js +91 -120
  39. package/lib/browser/debug-session-contribution.js.map +1 -1
  40. package/lib/browser/debug-session-manager.js +368 -652
  41. package/lib/browser/debug-session-manager.js.map +1 -1
  42. package/lib/browser/debug-session.js +556 -1279
  43. package/lib/browser/debug-session.js.map +1 -1
  44. package/lib/browser/debug-tab-bar-decorator.js +32 -38
  45. package/lib/browser/debug-tab-bar-decorator.js.map +1 -1
  46. package/lib/browser/debug-watch-manager.js +41 -138
  47. package/lib/browser/debug-watch-manager.js.map +1 -1
  48. package/lib/browser/editor/debug-breakpoint-widget.js +142 -255
  49. package/lib/browser/editor/debug-breakpoint-widget.js.map +1 -1
  50. package/lib/browser/editor/debug-editor-model.js +299 -474
  51. package/lib/browser/editor/debug-editor-model.js.map +1 -1
  52. package/lib/browser/editor/debug-editor-service.js +128 -206
  53. package/lib/browser/editor/debug-editor-service.js.map +1 -1
  54. package/lib/browser/editor/debug-exception-widget.js +56 -119
  55. package/lib/browser/editor/debug-exception-widget.js.map +1 -1
  56. package/lib/browser/editor/debug-expression-provider.js +21 -24
  57. package/lib/browser/editor/debug-expression-provider.js.map +1 -1
  58. package/lib/browser/editor/debug-hover-source.js +83 -249
  59. package/lib/browser/editor/debug-hover-source.js.map +1 -1
  60. package/lib/browser/editor/debug-hover-widget.js +151 -224
  61. package/lib/browser/editor/debug-hover-widget.js.map +1 -1
  62. package/lib/browser/editor/debug-inline-value-decorator.js +96 -193
  63. package/lib/browser/editor/debug-inline-value-decorator.js.map +1 -1
  64. package/lib/browser/model/debug-breakpoint.js +52 -102
  65. package/lib/browser/model/debug-breakpoint.js.map +1 -1
  66. package/lib/browser/model/debug-function-breakpoint.js +54 -124
  67. package/lib/browser/model/debug-function-breakpoint.js.map +1 -1
  68. package/lib/browser/model/debug-source-breakpoint.js +111 -265
  69. package/lib/browser/model/debug-source-breakpoint.js.map +1 -1
  70. package/lib/browser/model/debug-source.js +45 -126
  71. package/lib/browser/model/debug-source.js.map +1 -1
  72. package/lib/browser/model/debug-stack-frame.js +85 -199
  73. package/lib/browser/model/debug-stack-frame.js.map +1 -1
  74. package/lib/browser/model/debug-thread.js +132 -304
  75. package/lib/browser/model/debug-thread.js.map +1 -1
  76. package/lib/browser/preferences/launch-preferences.js +3 -3
  77. package/lib/browser/preferences/launch-preferences.js.map +1 -1
  78. package/lib/browser/view/debug-action.js +13 -29
  79. package/lib/browser/view/debug-action.js.map +1 -1
  80. package/lib/browser/view/debug-breakpoints-source.js +42 -169
  81. package/lib/browser/view/debug-breakpoints-source.js.map +1 -1
  82. package/lib/browser/view/debug-breakpoints-widget.js +43 -82
  83. package/lib/browser/view/debug-breakpoints-widget.js.map +1 -1
  84. package/lib/browser/view/debug-configuration-widget.js +89 -136
  85. package/lib/browser/view/debug-configuration-widget.js.map +1 -1
  86. package/lib/browser/view/debug-exception-breakpoint.js +7 -9
  87. package/lib/browser/view/debug-exception-breakpoint.js.map +1 -1
  88. package/lib/browser/view/debug-session-widget.js +80 -114
  89. package/lib/browser/view/debug-session-widget.js.map +1 -1
  90. package/lib/browser/view/debug-stack-frames-source.js +58 -169
  91. package/lib/browser/view/debug-stack-frames-source.js.map +1 -1
  92. package/lib/browser/view/debug-stack-frames-widget.js +89 -155
  93. package/lib/browser/view/debug-stack-frames-widget.js.map +1 -1
  94. package/lib/browser/view/debug-threads-source.js +37 -124
  95. package/lib/browser/view/debug-threads-source.js.map +1 -1
  96. package/lib/browser/view/debug-threads-widget.js +61 -99
  97. package/lib/browser/view/debug-threads-widget.js.map +1 -1
  98. package/lib/browser/view/debug-toolbar-widget.js +58 -76
  99. package/lib/browser/view/debug-toolbar-widget.js.map +1 -1
  100. package/lib/browser/view/debug-variables-source.js +32 -102
  101. package/lib/browser/view/debug-variables-source.js.map +1 -1
  102. package/lib/browser/view/debug-variables-widget.js +35 -74
  103. package/lib/browser/view/debug-variables-widget.js.map +1 -1
  104. package/lib/browser/view/debug-view-model.js +172 -381
  105. package/lib/browser/view/debug-view-model.js.map +1 -1
  106. package/lib/browser/view/debug-watch-expression.js +34 -112
  107. package/lib/browser/view/debug-watch-expression.js.map +1 -1
  108. package/lib/browser/view/debug-watch-source.js +30 -87
  109. package/lib/browser/view/debug-watch-source.js.map +1 -1
  110. package/lib/browser/view/debug-watch-widget.js +35 -74
  111. package/lib/browser/view/debug-watch-widget.js.map +1 -1
  112. package/lib/browser/view/debug-widget.js +63 -105
  113. package/lib/browser/view/debug-widget.js.map +1 -1
  114. package/lib/common/debug-service.js +5 -5
  115. package/lib/common/debug-service.js.map +1 -1
  116. package/lib/node/debug-adapter-contribution-registry.js +133 -489
  117. package/lib/node/debug-adapter-contribution-registry.js.map +1 -1
  118. package/lib/node/debug-adapter-factory.js +38 -57
  119. package/lib/node/debug-adapter-factory.js.map +1 -1
  120. package/lib/node/debug-adapter-session-manager.js +50 -98
  121. package/lib/node/debug-adapter-session-manager.js.map +1 -1
  122. package/lib/node/debug-adapter-session.js +44 -93
  123. package/lib/node/debug-adapter-session.js.map +1 -1
  124. package/lib/node/debug-backend-module.js +13 -17
  125. package/lib/node/debug-backend-module.js.map +1 -1
  126. package/lib/node/debug-service-impl.js +71 -213
  127. package/lib/node/debug-service-impl.js.map +1 -1
  128. package/lib/node/vscode/vscode-debug-adapter-contribution.js +153 -294
  129. package/lib/node/vscode/vscode-debug-adapter-contribution.js.map +1 -1
  130. package/package.json +16 -16
  131. package/src/browser/console/debug-console-contribution.tsx +3 -3
  132. package/src/browser/debug-frontend-application-contribution.ts +69 -18
  133. package/src/browser/debug-prefix-configuration.ts +1 -1
  134. package/src/browser/style/index.css +28 -10
  135. package/src/browser/view/debug-action.tsx +2 -2
  136. package/src/browser/view/debug-configuration-widget.tsx +3 -3
  137. package/src/browser/view/debug-session-widget.ts +2 -2
  138. package/src/browser/view/debug-toolbar-widget.tsx +8 -8
  139. package/src/browser/view/debug-widget.ts +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"debug-breakpoint-widget.js","sourceRoot":"","sources":["../../../src/browser/editor/debug-breakpoint-widget.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAElF,gDAAkD;AAClD,uDAAyD;AAEzD,0DAAiF;AACjF,oCAA+D;AAC/D,kDAA6C;AAC7C,2FAAwF;AACxF,iGAA6F;AAE7F,+CAA6C;AAC7C,4EAAyE;AAYzE;IAAA;QAAA,iBA6NC;QAjNsB,cAAS,GAAG,IAAI,2BAAoB,EAAE,CAAC;QAEhD,YAAO,GAAkC,WAAW,CAAC;QACrD,YAAO,GAEb,EAAE,CAAC;QAgKY,gBAAW,GAAG,UAAC,CAAuC;YACrE,IAAI,KAAI,CAAC,MAAM,EAAE;gBACb,KAAI,CAAC,OAAO,CAAC,KAAI,CAAC,OAAO,CAAC,GAAG,KAAI,CAAC,MAAM,CAAC,UAAU,EAAE,CAAC,QAAQ,EAAE,CAAC;aACpE;YACD,KAAI,CAAC,OAAO,GAAG,CAAC,CAAC,aAAa,CAAC,KAAsC,CAAC;YACtE,KAAI,CAAC,MAAM,EAAE,CAAC;YACd,IAAI,KAAI,CAAC,MAAM,EAAE;gBACb,KAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;aACvB;QACL,CAAC,CAAC;IAmCN,CAAC;8BA7NY,qBAAqB;IAkB9B,sBAAI,yCAAM;aAAV;;YAGI,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE;gBACd,OAAO,SAAS,CAAC;aACpB;YACD,6BACO,IAAI,CAAC,OAAO,gBACd,IAAI,CAAC,OAAO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gBAChB,KAAK,EAAE;oBACH,eAAe,EAAE,CAAC;oBAClB,aAAa,EAAE,CAAC;oBAChB,WAAW,EAAE,CAAC;oBACd,SAAS,EAAE,CAAC;iBACf;gBACD,aAAa,EAAE;oBACX,KAAK,EAAE;wBACH,WAAW,EAAE,IAAI,CAAC,WAAW;wBAC7B,OAAO,EAAE,KAAK;qBACjB;iBACJ;aACJ,CAAC,CAAC;QACH,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE,CAAC,cAAc,CAAC,uBAAqB,CAAC,sBAAsB,EAAE,WAAW,CAAC,CAAC;IACvG,CAAC;IACD,sBAAc,8CAAW;aAAzB;YACI,IAAI,IAAI,CAAC,OAAO,KAAK,YAAY,EAAE;gBAC/B,OAAO,oHAAoH,CAAC;aAC/H;YACD,IAAI,IAAI,CAAC,OAAO,KAAK,cAAc,EAAE;gBACjC,OAAO,4EAA4E,CAAC;aACvF;YACD,OAAO,8EAA8E,CAAC;QAC1F,CAAC;;;OAAA;;IA/BM,4CAAsB,GAAG,uBAAuB,CAAC;IAzLxD;QADC,kBAAM,CAAC,0BAAW,CAAC;;yDACS;IAG7B;QADC,kBAAM,CAAC,6CAAoB,CAAC;kCACM,6CAAoB;iEAAC;IAwCxD;QADC,yBAAa,EAAE;;;;qDAwDf;IArGQ,qBAAqB;QADjC,sBAAU,EAAE;OACA,qBAAqB,CA6NjC;IAAD,4BAAC;CAAA,AA7ND,IA6NC;AA7NY,sDAAqB"}
1
+ {"version":3,"file":"debug-breakpoint-widget.js","sourceRoot":"","sources":["../../../src/browser/editor/debug-breakpoint-widget.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;;;;;;;;;;;AAElF,kDAAkD;AAClD,yDAAyD;AAEzD,4DAAiF;AACjF,sCAA+D;AAC/D,oDAA6C;AAC7C,6FAAwF;AACxF,mGAA6F;AAE7F,iDAA6C;AAC7C,8EAAyE;AAYzE,IAAa,qBAAqB,6BAAlC,MAAa,qBAAqB;IAAlC;QA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C;AAwCxD;IADC,yBAAa,EAAE;;;;iDAwDf;AArGQ,qBAAqB;IADjC,sBAAU,EAAE;GACA,qBAAqB,CA6NjC;AA7NY,sDAAqB"}
@@ -14,17 +14,6 @@
14
14
  *
15
15
  * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
16
16
  ********************************************************************************/
17
- var __assign = (this && this.__assign) || function () {
18
- __assign = Object.assign || function(t) {
19
- for (var s, i = 1, n = arguments.length; i < n; i++) {
20
- s = arguments[i];
21
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
22
- t[p] = s[p];
23
- }
24
- return t;
25
- };
26
- return __assign.apply(this, arguments);
27
- };
28
17
  var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
29
18
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
30
19
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -34,89 +23,26 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
34
23
  var __metadata = (this && this.__metadata) || function (k, v) {
35
24
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
36
25
  };
37
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
38
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
39
- return new (P || (P = Promise))(function (resolve, reject) {
40
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
41
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
42
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
43
- step((generator = generator.apply(thisArg, _arguments || [])).next());
44
- });
45
- };
46
- var __generator = (this && this.__generator) || function (thisArg, body) {
47
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
48
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
49
- function verb(n) { return function (v) { return step([n, v]); }; }
50
- function step(op) {
51
- if (f) throw new TypeError("Generator is already executing.");
52
- while (_) try {
53
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
54
- if (y = 0, t) op = [op[0] & 2, t.value];
55
- switch (op[0]) {
56
- case 0: case 1: t = op; break;
57
- case 4: _.label++; return { value: op[1], done: false };
58
- case 5: _.label++; y = op[1]; op = [0]; continue;
59
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
60
- default:
61
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
62
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
63
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
64
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
65
- if (t[2]) _.ops.pop();
66
- _.trys.pop(); continue;
67
- }
68
- op = body.call(thisArg, _);
69
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
70
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
71
- }
72
- };
73
- var __read = (this && this.__read) || function (o, n) {
74
- var m = typeof Symbol === "function" && o[Symbol.iterator];
75
- if (!m) return o;
76
- var i = m.call(o), r, ar = [], e;
77
- try {
78
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
79
- }
80
- catch (error) { e = { error: error }; }
81
- finally {
82
- try {
83
- if (r && !r.done && (m = i["return"])) m.call(i);
84
- }
85
- finally { if (e) throw e.error; }
86
- }
87
- return ar;
88
- };
89
- var __values = (this && this.__values) || function(o) {
90
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
91
- if (m) return m.call(o);
92
- if (o && typeof o.length === "number") return {
93
- next: function () {
94
- if (o && i >= o.length) o = void 0;
95
- return { value: o && o[i++], done: !o };
96
- }
97
- };
98
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
99
- };
26
+ var DebugEditorModel_1;
100
27
  Object.defineProperty(exports, "__esModule", { value: true });
101
28
  exports.DebugEditorModel = exports.DebugEditorModelFactory = void 0;
102
- var debounce = require("p-debounce");
103
- var inversify_1 = require("@theia/core/shared/inversify");
104
- var uri_1 = require("@theia/core/lib/common/uri");
105
- var core_1 = require("@theia/core");
106
- var browser_1 = require("@theia/core/lib/browser");
107
- var monaco_frontend_module_1 = require("@theia/monaco/lib/browser/monaco-frontend-module");
108
- var breakpoint_manager_1 = require("../breakpoint/breakpoint-manager");
109
- var debug_session_manager_1 = require("../debug-session-manager");
110
- var breakpoint_marker_1 = require("../breakpoint/breakpoint-marker");
111
- var debug_editor_1 = require("./debug-editor");
112
- var debug_hover_widget_1 = require("./debug-hover-widget");
113
- var debug_breakpoint_widget_1 = require("./debug-breakpoint-widget");
114
- var debug_exception_widget_1 = require("./debug-exception-widget");
115
- var debug_inline_value_decorator_1 = require("./debug-inline-value-decorator");
29
+ const debounce = require("p-debounce");
30
+ const inversify_1 = require("@theia/core/shared/inversify");
31
+ const uri_1 = require("@theia/core/lib/common/uri");
32
+ const core_1 = require("@theia/core");
33
+ const browser_1 = require("@theia/core/lib/browser");
34
+ const monaco_frontend_module_1 = require("@theia/monaco/lib/browser/monaco-frontend-module");
35
+ const breakpoint_manager_1 = require("../breakpoint/breakpoint-manager");
36
+ const debug_session_manager_1 = require("../debug-session-manager");
37
+ const breakpoint_marker_1 = require("../breakpoint/breakpoint-marker");
38
+ const debug_editor_1 = require("./debug-editor");
39
+ const debug_hover_widget_1 = require("./debug-hover-widget");
40
+ const debug_breakpoint_widget_1 = require("./debug-breakpoint-widget");
41
+ const debug_exception_widget_1 = require("./debug-exception-widget");
42
+ const debug_inline_value_decorator_1 = require("./debug-inline-value-decorator");
116
43
  exports.DebugEditorModelFactory = Symbol('DebugEditorModelFactory');
117
- var DebugEditorModel = /** @class */ (function () {
118
- function DebugEditorModel() {
119
- var _this = this;
44
+ let DebugEditorModel = DebugEditorModel_1 = class DebugEditorModel {
45
+ constructor() {
120
46
  this.toDispose = new core_1.DisposableCollection();
121
47
  this.toDisposeOnUpdate = new core_1.DisposableCollection();
122
48
  this.breakpointDecorations = [];
@@ -124,145 +50,113 @@ var DebugEditorModel = /** @class */ (function () {
124
50
  this.currentBreakpointDecorations = [];
125
51
  this.editorDecorations = [];
126
52
  this.updatingDecorations = false;
127
- this.update = debounce(function () { return __awaiter(_this, void 0, void 0, function () {
128
- return __generator(this, function (_a) {
129
- switch (_a.label) {
130
- case 0:
131
- if (this.toDispose.disposed) {
132
- return [2 /*return*/];
133
- }
134
- this.toDisposeOnUpdate.dispose();
135
- this.toggleExceptionWidget();
136
- return [4 /*yield*/, this.updateEditorDecorations()];
137
- case 1:
138
- _a.sent();
139
- this.updateEditorHover();
140
- return [2 /*return*/];
141
- }
142
- });
143
- }); }, 100);
53
+ this.update = debounce(async () => {
54
+ if (this.toDispose.disposed) {
55
+ return;
56
+ }
57
+ this.toDisposeOnUpdate.dispose();
58
+ this.toggleExceptionWidget();
59
+ await this.updateEditorDecorations();
60
+ this.updateEditorHover();
61
+ }, 100);
144
62
  this.hintDecorations = [];
145
63
  }
146
- DebugEditorModel_1 = DebugEditorModel;
147
- DebugEditorModel.createContainer = function (parent, editor) {
148
- var child = debug_hover_widget_1.createDebugHoverWidgetContainer(parent, editor);
64
+ static createContainer(parent, editor) {
65
+ const child = debug_hover_widget_1.createDebugHoverWidgetContainer(parent, editor);
149
66
  child.bind(DebugEditorModel_1).toSelf();
150
67
  child.bind(debug_breakpoint_widget_1.DebugBreakpointWidget).toSelf();
151
68
  child.bind(debug_exception_widget_1.DebugExceptionWidget).toSelf();
152
69
  return child;
153
- };
154
- DebugEditorModel.createModel = function (parent, editor) {
70
+ }
71
+ static createModel(parent, editor) {
155
72
  return DebugEditorModel_1.createContainer(parent, editor).get(DebugEditorModel_1);
156
- };
157
- DebugEditorModel.prototype.init = function () {
158
- var _this = this;
73
+ }
74
+ init() {
159
75
  this.uri = new uri_1.default(this.editor.getControl().getModel().uri.toString());
160
76
  this.toDispose.pushAll([
161
77
  this.hover,
162
78
  this.breakpointWidget,
163
79
  this.exceptionWidget,
164
- this.editor.getControl().onMouseDown(function (event) { return _this.handleMouseDown(event); }),
165
- this.editor.getControl().onMouseMove(function (event) { return _this.handleMouseMove(event); }),
166
- this.editor.getControl().onMouseLeave(function (event) { return _this.handleMouseLeave(event); }),
167
- this.editor.getControl().onKeyDown(function () { return _this.hover.hide({ immediate: false }); }),
168
- this.editor.getControl().onDidChangeModelContent(function () { return _this.update(); }),
169
- this.editor.getControl().getModel().onDidChangeDecorations(function () { return _this.updateBreakpoints(); }),
170
- this.editor.onDidResize(function (e) { return _this.breakpointWidget.inputSize = e; }),
171
- this.sessions.onDidChange(function () { return _this.update(); }),
80
+ this.editor.getControl().onMouseDown(event => this.handleMouseDown(event)),
81
+ this.editor.getControl().onMouseMove(event => this.handleMouseMove(event)),
82
+ this.editor.getControl().onMouseLeave(event => this.handleMouseLeave(event)),
83
+ this.editor.getControl().onKeyDown(() => this.hover.hide({ immediate: false })),
84
+ this.editor.getControl().onDidChangeModelContent(() => this.update()),
85
+ this.editor.getControl().getModel().onDidChangeDecorations(() => this.updateBreakpoints()),
86
+ this.editor.onDidResize(e => this.breakpointWidget.inputSize = e),
87
+ this.sessions.onDidChange(() => this.update()),
172
88
  this.toDisposeOnUpdate
173
89
  ]);
174
90
  this.update();
175
91
  this.render();
176
- };
177
- DebugEditorModel.prototype.dispose = function () {
92
+ }
93
+ dispose() {
178
94
  this.toDispose.dispose();
179
- };
95
+ }
180
96
  /**
181
97
  * To disable the default editor-contribution hover from Code when
182
98
  * the editor has the `currentFrame`. Otherwise, both `textdocument/hover`
183
99
  * and the debug hovers are visible at the same time when hovering over a symbol.
184
100
  */
185
- DebugEditorModel.prototype.updateEditorHover = function () {
186
- return __awaiter(this, void 0, void 0, function () {
187
- var codeEditor_1;
188
- var _this = this;
189
- return __generator(this, function (_a) {
190
- if (this.sessions.isCurrentEditorFrame(this.uri)) {
191
- codeEditor_1 = this.editor.getControl();
192
- codeEditor_1.updateOptions({ hover: { enabled: false } });
193
- this.toDisposeOnUpdate.push(core_1.Disposable.create(function () {
194
- var model = codeEditor_1.getModel();
195
- var overrides = {
196
- resource: model.uri,
197
- overrideIdentifier: model.getLanguageIdentifier().language,
198
- };
199
- var _a = _this.configurationService._configuration.getValue('editor.hover', overrides, undefined), enabled = _a.enabled, delay = _a.delay, sticky = _a.sticky;
200
- codeEditor_1.updateOptions({
201
- hover: {
202
- enabled: enabled,
203
- delay: delay,
204
- sticky: sticky
205
- }
206
- });
207
- }));
208
- }
209
- return [2 /*return*/];
210
- });
211
- });
212
- };
213
- DebugEditorModel.prototype.updateEditorDecorations = function () {
214
- return __awaiter(this, void 0, void 0, function () {
215
- var _a, newFrameDecorations, inlineValueDecorations, codeEditor;
216
- return __generator(this, function (_b) {
217
- switch (_b.label) {
218
- case 0: return [4 /*yield*/, Promise.all([
219
- this.createFrameDecorations(),
220
- this.createInlineValueDecorations()
221
- ])];
222
- case 1:
223
- _a = __read.apply(void 0, [_b.sent(), 2]), newFrameDecorations = _a[0], inlineValueDecorations = _a[1];
224
- codeEditor = this.editor.getControl();
225
- codeEditor.removeDecorations(debug_inline_value_decorator_1.INLINE_VALUE_DECORATION_KEY);
226
- codeEditor.setDecorations(debug_inline_value_decorator_1.INLINE_VALUE_DECORATION_KEY, inlineValueDecorations);
227
- this.editorDecorations = this.deltaDecorations(this.editorDecorations, newFrameDecorations);
228
- return [2 /*return*/];
229
- }
230
- });
231
- });
232
- };
233
- DebugEditorModel.prototype.createInlineValueDecorations = function () {
234
- return __awaiter(this, void 0, void 0, function () {
235
- var currentFrame;
236
- return __generator(this, function (_a) {
237
- if (!this.sessions.isCurrentEditorFrame(this.uri)) {
238
- return [2 /*return*/, []];
239
- }
240
- currentFrame = this.sessions.currentFrame;
241
- return [2 /*return*/, this.inlineValueDecorator.calculateDecorations(this, currentFrame)];
242
- });
243
- });
244
- };
245
- DebugEditorModel.prototype.createFrameDecorations = function () {
246
- var _a = this.sessions, currentFrame = _a.currentFrame, topFrame = _a.topFrame;
101
+ async updateEditorHover() {
102
+ if (this.sessions.isCurrentEditorFrame(this.uri)) {
103
+ const codeEditor = this.editor.getControl();
104
+ codeEditor.updateOptions({ hover: { enabled: false } });
105
+ this.toDisposeOnUpdate.push(core_1.Disposable.create(() => {
106
+ const model = codeEditor.getModel();
107
+ const overrides = {
108
+ resource: model.uri,
109
+ overrideIdentifier: model.getLanguageIdentifier().language,
110
+ };
111
+ const { enabled, delay, sticky } = this.configurationService._configuration.getValue('editor.hover', overrides, undefined);
112
+ codeEditor.updateOptions({
113
+ hover: {
114
+ enabled,
115
+ delay,
116
+ sticky
117
+ }
118
+ });
119
+ }));
120
+ }
121
+ }
122
+ async updateEditorDecorations() {
123
+ const [newFrameDecorations, inlineValueDecorations] = await Promise.all([
124
+ this.createFrameDecorations(),
125
+ this.createInlineValueDecorations()
126
+ ]);
127
+ const codeEditor = this.editor.getControl();
128
+ codeEditor.removeDecorations(debug_inline_value_decorator_1.INLINE_VALUE_DECORATION_KEY);
129
+ codeEditor.setDecorations(debug_inline_value_decorator_1.INLINE_VALUE_DECORATION_KEY, inlineValueDecorations);
130
+ this.editorDecorations = this.deltaDecorations(this.editorDecorations, newFrameDecorations);
131
+ }
132
+ async createInlineValueDecorations() {
133
+ if (!this.sessions.isCurrentEditorFrame(this.uri)) {
134
+ return [];
135
+ }
136
+ const { currentFrame } = this.sessions;
137
+ return this.inlineValueDecorator.calculateDecorations(this, currentFrame);
138
+ }
139
+ createFrameDecorations() {
140
+ const { currentFrame, topFrame } = this.sessions;
247
141
  if (!currentFrame) {
248
142
  return [];
249
143
  }
250
144
  if (!this.sessions.isCurrentEditorFrame(this.uri)) {
251
145
  return [];
252
146
  }
253
- var decorations = [];
254
- var columnUntilEOLRange = new monaco.Range(currentFrame.raw.line, currentFrame.raw.column, currentFrame.raw.line, 1 << 30);
255
- var range = new monaco.Range(currentFrame.raw.line, currentFrame.raw.column, currentFrame.raw.line, currentFrame.raw.column + 1);
147
+ const decorations = [];
148
+ const columnUntilEOLRange = new monaco.Range(currentFrame.raw.line, currentFrame.raw.column, currentFrame.raw.line, 1 << 30);
149
+ const range = new monaco.Range(currentFrame.raw.line, currentFrame.raw.column, currentFrame.raw.line, currentFrame.raw.column + 1);
256
150
  if (topFrame === currentFrame) {
257
151
  decorations.push({
258
152
  options: DebugEditorModel_1.TOP_STACK_FRAME_MARGIN,
259
- range: range
153
+ range
260
154
  });
261
155
  decorations.push({
262
156
  options: DebugEditorModel_1.TOP_STACK_FRAME_DECORATION,
263
157
  range: columnUntilEOLRange
264
158
  });
265
- var topFrameRange = this.topFrameRange;
159
+ const { topFrameRange } = this;
266
160
  if (topFrameRange && topFrameRange.startLineNumber === currentFrame.raw.line && topFrameRange.startColumn !== currentFrame.raw.column) {
267
161
  decorations.push({
268
162
  options: DebugEditorModel_1.TOP_STACK_FRAME_INLINE_DECORATION,
@@ -274,7 +168,7 @@ var DebugEditorModel = /** @class */ (function () {
274
168
  else {
275
169
  decorations.push({
276
170
  options: DebugEditorModel_1.FOCUSED_STACK_FRAME_MARGIN,
277
- range: range
171
+ range
278
172
  });
279
173
  decorations.push({
280
174
  options: DebugEditorModel_1.FOCUSED_STACK_FRAME_DECORATION,
@@ -282,242 +176,176 @@ var DebugEditorModel = /** @class */ (function () {
282
176
  });
283
177
  }
284
178
  return decorations;
285
- };
286
- DebugEditorModel.prototype.toggleExceptionWidget = function () {
287
- return __awaiter(this, void 0, void 0, function () {
288
- var currentFrame, info;
289
- return __generator(this, function (_a) {
290
- switch (_a.label) {
291
- case 0:
292
- currentFrame = this.sessions.currentFrame;
293
- if (!currentFrame) {
294
- return [2 /*return*/];
295
- }
296
- if (!this.sessions.isCurrentEditorFrame(this.uri)) {
297
- this.exceptionWidget.hide();
298
- return [2 /*return*/];
299
- }
300
- return [4 /*yield*/, currentFrame.thread.getExceptionInfo()];
301
- case 1:
302
- info = _a.sent();
303
- if (!info) {
304
- this.exceptionWidget.hide();
305
- return [2 /*return*/];
306
- }
307
- this.exceptionWidget.show({
308
- info: info,
309
- lineNumber: currentFrame.raw.line,
310
- column: currentFrame.raw.column
311
- });
312
- return [2 /*return*/];
313
- }
314
- });
179
+ }
180
+ async toggleExceptionWidget() {
181
+ const { currentFrame } = this.sessions;
182
+ if (!currentFrame) {
183
+ return;
184
+ }
185
+ if (!this.sessions.isCurrentEditorFrame(this.uri)) {
186
+ this.exceptionWidget.hide();
187
+ return;
188
+ }
189
+ const info = await currentFrame.thread.getExceptionInfo();
190
+ if (!info) {
191
+ this.exceptionWidget.hide();
192
+ return;
193
+ }
194
+ this.exceptionWidget.show({
195
+ info,
196
+ lineNumber: currentFrame.raw.line,
197
+ column: currentFrame.raw.column
315
198
  });
316
- };
317
- DebugEditorModel.prototype.render = function () {
199
+ }
200
+ render() {
318
201
  this.renderBreakpoints();
319
202
  this.renderCurrentBreakpoints();
320
- };
321
- DebugEditorModel.prototype.renderBreakpoints = function () {
322
- var decorations = this.createBreakpointDecorations();
203
+ }
204
+ renderBreakpoints() {
205
+ const decorations = this.createBreakpointDecorations();
323
206
  this.breakpointDecorations = this.deltaDecorations(this.breakpointDecorations, decorations);
324
207
  this.updateBreakpointRanges();
325
- };
326
- DebugEditorModel.prototype.createBreakpointDecorations = function () {
327
- var _this = this;
328
- var breakpoints = this.breakpoints.getBreakpoints(this.uri);
329
- return breakpoints.map(function (breakpoint) { return _this.createBreakpointDecoration(breakpoint); });
330
- };
331
- DebugEditorModel.prototype.createBreakpointDecoration = function (breakpoint) {
332
- var lineNumber = breakpoint.raw.line;
333
- var column = breakpoint.raw.column;
334
- var range = typeof column === 'number' ? new monaco.Range(lineNumber, column, lineNumber, column + 1) : new monaco.Range(lineNumber, 1, lineNumber, 2);
208
+ }
209
+ createBreakpointDecorations() {
210
+ const breakpoints = this.breakpoints.getBreakpoints(this.uri);
211
+ return breakpoints.map(breakpoint => this.createBreakpointDecoration(breakpoint));
212
+ }
213
+ createBreakpointDecoration(breakpoint) {
214
+ const lineNumber = breakpoint.raw.line;
215
+ const column = breakpoint.raw.column;
216
+ const range = typeof column === 'number' ? new monaco.Range(lineNumber, column, lineNumber, column + 1) : new monaco.Range(lineNumber, 1, lineNumber, 2);
335
217
  return {
336
- range: range,
218
+ range,
337
219
  options: {
338
220
  stickiness: DebugEditorModel_1.STICKINESS
339
221
  }
340
222
  };
341
- };
342
- DebugEditorModel.prototype.updateBreakpointRanges = function () {
343
- var e_1, _a;
223
+ }
224
+ updateBreakpointRanges() {
344
225
  this.breakpointRanges.clear();
345
- try {
346
- for (var _b = __values(this.breakpointDecorations), _c = _b.next(); !_c.done; _c = _b.next()) {
347
- var decoration = _c.value;
348
- var range = this.editor.getControl().getModel().getDecorationRange(decoration);
349
- this.breakpointRanges.set(decoration, range);
350
- }
351
- }
352
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
353
- finally {
354
- try {
355
- if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
356
- }
357
- finally { if (e_1) throw e_1.error; }
226
+ for (const decoration of this.breakpointDecorations) {
227
+ const range = this.editor.getControl().getModel().getDecorationRange(decoration);
228
+ this.breakpointRanges.set(decoration, range);
358
229
  }
359
- };
360
- DebugEditorModel.prototype.renderCurrentBreakpoints = function () {
361
- var decorations = this.createCurrentBreakpointDecorations();
230
+ }
231
+ renderCurrentBreakpoints() {
232
+ const decorations = this.createCurrentBreakpointDecorations();
362
233
  this.currentBreakpointDecorations = this.deltaDecorations(this.currentBreakpointDecorations, decorations);
363
- };
364
- DebugEditorModel.prototype.createCurrentBreakpointDecorations = function () {
365
- var _this = this;
366
- var breakpoints = this.sessions.getBreakpoints(this.uri);
367
- return breakpoints.map(function (breakpoint) { return _this.createCurrentBreakpointDecoration(breakpoint); });
368
- };
369
- DebugEditorModel.prototype.createCurrentBreakpointDecoration = function (breakpoint) {
370
- var lineNumber = breakpoint.line;
371
- var column = breakpoint.column;
372
- var range = typeof column === 'number' ? new monaco.Range(lineNumber, column, lineNumber, column + 1) : new monaco.Range(lineNumber, 1, lineNumber, 1);
373
- var _a = breakpoint.getDecoration(), className = _a.className, message = _a.message;
374
- var renderInline = typeof column === 'number' && (column > this.editor.getControl().getModel().getLineFirstNonWhitespaceColumn(lineNumber));
234
+ }
235
+ createCurrentBreakpointDecorations() {
236
+ const breakpoints = this.sessions.getBreakpoints(this.uri);
237
+ return breakpoints.map(breakpoint => this.createCurrentBreakpointDecoration(breakpoint));
238
+ }
239
+ createCurrentBreakpointDecoration(breakpoint) {
240
+ const lineNumber = breakpoint.line;
241
+ const column = breakpoint.column;
242
+ const range = typeof column === 'number' ? new monaco.Range(lineNumber, column, lineNumber, column + 1) : new monaco.Range(lineNumber, 1, lineNumber, 1);
243
+ const { className, message } = breakpoint.getDecoration();
244
+ const renderInline = typeof column === 'number' && (column > this.editor.getControl().getModel().getLineFirstNonWhitespaceColumn(lineNumber));
375
245
  return {
376
- range: range,
246
+ range,
377
247
  options: {
378
248
  glyphMarginClassName: className,
379
- glyphMarginHoverMessage: message.map(function (value) { return ({ value: value }); }),
249
+ glyphMarginHoverMessage: message.map(value => ({ value })),
380
250
  stickiness: DebugEditorModel_1.STICKINESS,
381
- beforeContentClassName: renderInline ? "theia-debug-breakpoint-column " + className + "-column" : undefined
251
+ beforeContentClassName: renderInline ? `theia-debug-breakpoint-column ${className}-column` : undefined
382
252
  }
383
253
  };
384
- };
385
- DebugEditorModel.prototype.updateBreakpoints = function () {
254
+ }
255
+ updateBreakpoints() {
386
256
  if (this.areBreakpointsAffected()) {
387
- var breakpoints = this.createBreakpoints();
257
+ const breakpoints = this.createBreakpoints();
388
258
  this.breakpoints.setBreakpoints(this.uri, breakpoints);
389
259
  }
390
- };
391
- DebugEditorModel.prototype.areBreakpointsAffected = function () {
392
- var e_2, _a;
260
+ }
261
+ areBreakpointsAffected() {
393
262
  if (this.updatingDecorations || !this.editor.getControl().getModel()) {
394
263
  return false;
395
264
  }
396
- try {
397
- for (var _b = __values(this.breakpointDecorations), _c = _b.next(); !_c.done; _c = _b.next()) {
398
- var decoration = _c.value;
399
- var range = this.editor.getControl().getModel().getDecorationRange(decoration);
400
- var oldRange = this.breakpointRanges.get(decoration);
401
- if (!range || !range.equalsRange(oldRange)) {
402
- return true;
403
- }
265
+ for (const decoration of this.breakpointDecorations) {
266
+ const range = this.editor.getControl().getModel().getDecorationRange(decoration);
267
+ const oldRange = this.breakpointRanges.get(decoration);
268
+ if (!range || !range.equalsRange(oldRange)) {
269
+ return true;
404
270
  }
405
271
  }
406
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
407
- finally {
408
- try {
409
- if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
410
- }
411
- finally { if (e_2) throw e_2.error; }
412
- }
413
272
  return false;
414
- };
415
- DebugEditorModel.prototype.createBreakpoints = function () {
416
- var e_3, _a;
417
- var uri = this.uri;
418
- var lines = new Set();
419
- var breakpoints = [];
420
- try {
421
- for (var _b = __values(this.breakpointDecorations), _c = _b.next(); !_c.done; _c = _b.next()) {
422
- var decoration = _c.value;
423
- var range = this.editor.getControl().getModel().getDecorationRange(decoration);
424
- if (range && !lines.has(range.startLineNumber)) {
425
- var line = range.startLineNumber;
426
- var column = range.startColumn;
427
- var oldRange = this.breakpointRanges.get(decoration);
428
- var oldBreakpoint = oldRange && this.breakpoints.getInlineBreakpoint(uri, oldRange.startLineNumber, oldRange.startColumn);
429
- var breakpoint = breakpoint_marker_1.SourceBreakpoint.create(uri, { line: line, column: column }, oldBreakpoint);
430
- breakpoints.push(breakpoint);
431
- lines.add(line);
432
- }
433
- }
434
- }
435
- catch (e_3_1) { e_3 = { error: e_3_1 }; }
436
- finally {
437
- try {
438
- if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
273
+ }
274
+ createBreakpoints() {
275
+ const { uri } = this;
276
+ const lines = new Set();
277
+ const breakpoints = [];
278
+ for (const decoration of this.breakpointDecorations) {
279
+ const range = this.editor.getControl().getModel().getDecorationRange(decoration);
280
+ if (range && !lines.has(range.startLineNumber)) {
281
+ const line = range.startLineNumber;
282
+ const column = range.startColumn;
283
+ const oldRange = this.breakpointRanges.get(decoration);
284
+ const oldBreakpoint = oldRange && this.breakpoints.getInlineBreakpoint(uri, oldRange.startLineNumber, oldRange.startColumn);
285
+ const breakpoint = breakpoint_marker_1.SourceBreakpoint.create(uri, { line, column }, oldBreakpoint);
286
+ breakpoints.push(breakpoint);
287
+ lines.add(line);
439
288
  }
440
- finally { if (e_3) throw e_3.error; }
441
289
  }
442
290
  return breakpoints;
443
- };
444
- Object.defineProperty(DebugEditorModel.prototype, "position", {
445
- get: function () {
446
- return this.editor.getControl().getPosition();
447
- },
448
- enumerable: false,
449
- configurable: true
450
- });
451
- DebugEditorModel.prototype.getBreakpoint = function (position) {
452
- if (position === void 0) { position = this.position; }
291
+ }
292
+ get position() {
293
+ return this.editor.getControl().getPosition();
294
+ }
295
+ getBreakpoint(position = this.position) {
453
296
  return this.getInlineBreakpoint(position) || this.getLineBreakpoints(position)[0];
454
- };
455
- DebugEditorModel.prototype.getInlineBreakpoint = function (position) {
456
- if (position === void 0) { position = this.position; }
297
+ }
298
+ getInlineBreakpoint(position = this.position) {
457
299
  return this.sessions.getInlineBreakpoint(this.uri, position.lineNumber, position.column);
458
- };
459
- DebugEditorModel.prototype.getLineBreakpoints = function (position) {
460
- if (position === void 0) { position = this.position; }
300
+ }
301
+ getLineBreakpoints(position = this.position) {
461
302
  return this.sessions.getLineBreakpoints(this.uri, position.lineNumber);
462
- };
463
- DebugEditorModel.prototype.addBreakpoint = function (raw) {
303
+ }
304
+ addBreakpoint(raw) {
464
305
  this.breakpoints.addBreakpoint(breakpoint_marker_1.SourceBreakpoint.create(this.uri, raw));
465
- };
466
- DebugEditorModel.prototype.toggleBreakpoint = function (position) {
467
- var e_4, _a;
468
- if (position === void 0) { position = this.position; }
469
- var lineNumber = position.lineNumber;
470
- var breakpoints = this.getLineBreakpoints(position);
306
+ }
307
+ toggleBreakpoint(position = this.position) {
308
+ const { lineNumber } = position;
309
+ const breakpoints = this.getLineBreakpoints(position);
471
310
  if (breakpoints.length) {
472
- try {
473
- for (var breakpoints_1 = __values(breakpoints), breakpoints_1_1 = breakpoints_1.next(); !breakpoints_1_1.done; breakpoints_1_1 = breakpoints_1.next()) {
474
- var breakpoint = breakpoints_1_1.value;
475
- breakpoint.remove();
476
- }
477
- }
478
- catch (e_4_1) { e_4 = { error: e_4_1 }; }
479
- finally {
480
- try {
481
- if (breakpoints_1_1 && !breakpoints_1_1.done && (_a = breakpoints_1.return)) _a.call(breakpoints_1);
482
- }
483
- finally { if (e_4) throw e_4.error; }
311
+ for (const breakpoint of breakpoints) {
312
+ breakpoint.remove();
484
313
  }
485
314
  }
486
315
  else {
487
316
  this.addBreakpoint({ line: lineNumber });
488
317
  }
489
- };
490
- DebugEditorModel.prototype.addInlineBreakpoint = function () {
491
- var position = this.position;
492
- var lineNumber = position.lineNumber, column = position.column;
493
- var breakpoint = this.getInlineBreakpoint(position);
318
+ }
319
+ addInlineBreakpoint() {
320
+ const { position } = this;
321
+ const { lineNumber, column } = position;
322
+ const breakpoint = this.getInlineBreakpoint(position);
494
323
  if (breakpoint) {
495
324
  return;
496
325
  }
497
- this.addBreakpoint({ line: lineNumber, column: column });
498
- };
499
- DebugEditorModel.prototype.acceptBreakpoint = function () {
500
- var _a = this.breakpointWidget, position = _a.position, values = _a.values;
326
+ this.addBreakpoint({ line: lineNumber, column });
327
+ }
328
+ acceptBreakpoint() {
329
+ const { position, values } = this.breakpointWidget;
501
330
  if (position && values) {
502
- var breakpoint = position.column > 0 ? this.getInlineBreakpoint(position) : this.getLineBreakpoints(position)[0];
331
+ const breakpoint = position.column > 0 ? this.getInlineBreakpoint(position) : this.getLineBreakpoints(position)[0];
503
332
  if (breakpoint) {
504
333
  breakpoint.updateOrigins(values);
505
334
  }
506
335
  else {
507
- var lineNumber = position.lineNumber;
508
- var column = position.column > 0 ? position.column : undefined;
509
- this.addBreakpoint(__assign({ line: lineNumber, column: column }, values));
336
+ const { lineNumber } = position;
337
+ const column = position.column > 0 ? position.column : undefined;
338
+ this.addBreakpoint(Object.assign({ line: lineNumber, column }, values));
510
339
  }
511
340
  this.breakpointWidget.hide();
512
341
  }
513
- };
514
- DebugEditorModel.prototype.handleMouseDown = function (event) {
515
- var _this = this;
342
+ }
343
+ handleMouseDown(event) {
516
344
  if (event.target && event.target.type === monaco.editor.MouseTargetType.GUTTER_GLYPH_MARGIN) {
517
345
  if (event.event.rightButton) {
518
346
  this.editor.focus();
519
- setTimeout(function () {
520
- _this.contextMenu.render({
347
+ setTimeout(() => {
348
+ this.contextMenu.render({
521
349
  menuPath: DebugEditorModel_1.CONTEXT_MENU,
522
350
  anchor: event.event.browserEvent,
523
351
  args: [event.target.position]
@@ -529,25 +357,25 @@ var DebugEditorModel = /** @class */ (function () {
529
357
  }
530
358
  }
531
359
  this.hintBreakpoint(event);
532
- };
533
- DebugEditorModel.prototype.handleMouseMove = function (event) {
360
+ }
361
+ handleMouseMove(event) {
534
362
  this.showHover(event);
535
363
  this.hintBreakpoint(event);
536
- };
537
- DebugEditorModel.prototype.handleMouseLeave = function (event) {
364
+ }
365
+ handleMouseLeave(event) {
538
366
  this.hideHover(event);
539
367
  this.deltaHintDecorations([]);
540
- };
541
- DebugEditorModel.prototype.hintBreakpoint = function (event) {
542
- var hintDecorations = this.createHintDecorations(event);
368
+ }
369
+ hintBreakpoint(event) {
370
+ const hintDecorations = this.createHintDecorations(event);
543
371
  this.deltaHintDecorations(hintDecorations);
544
- };
545
- DebugEditorModel.prototype.deltaHintDecorations = function (hintDecorations) {
372
+ }
373
+ deltaHintDecorations(hintDecorations) {
546
374
  this.hintDecorations = this.deltaDecorations(this.hintDecorations, hintDecorations);
547
- };
548
- DebugEditorModel.prototype.createHintDecorations = function (event) {
375
+ }
376
+ createHintDecorations(event) {
549
377
  if (event.target && event.target.type === monaco.editor.MouseTargetType.GUTTER_GLYPH_MARGIN && event.target.position) {
550
- var lineNumber = event.target.position.lineNumber;
378
+ const lineNumber = event.target.position.lineNumber;
551
379
  if (this.getLineBreakpoints(event.target.position).length) {
552
380
  return [];
553
381
  }
@@ -557,10 +385,10 @@ var DebugEditorModel = /** @class */ (function () {
557
385
  }];
558
386
  }
559
387
  return [];
560
- };
561
- DebugEditorModel.prototype.showHover = function (mouseEvent) {
562
- var targetType = mouseEvent.target.type;
563
- var stopKey = core_1.isOSX ? 'metaKey' : 'ctrlKey';
388
+ }
389
+ showHover(mouseEvent) {
390
+ const targetType = mouseEvent.target.type;
391
+ const stopKey = core_1.isOSX ? 'metaKey' : 'ctrlKey';
564
392
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
565
393
  if (targetType === monaco.editor.MouseTargetType.CONTENT_WIDGET && mouseEvent.target.detail === this.hover.getId() && !mouseEvent.event[stopKey]) {
566
394
  // mouse moved on top of debug hover widget
@@ -575,15 +403,14 @@ var DebugEditorModel = /** @class */ (function () {
575
403
  else {
576
404
  this.hover.hide({ immediate: false });
577
405
  }
578
- };
579
- DebugEditorModel.prototype.hideHover = function (_a) {
580
- var event = _a.event;
581
- var rect = this.hover.getDomNode().getBoundingClientRect();
406
+ }
407
+ hideHover({ event }) {
408
+ const rect = this.hover.getDomNode().getBoundingClientRect();
582
409
  if (event.posx < rect.left || event.posx > rect.right || event.posy < rect.top || event.posy > rect.bottom) {
583
410
  this.hover.hide({ immediate: false });
584
411
  }
585
- };
586
- DebugEditorModel.prototype.deltaDecorations = function (oldDecorations, newDecorations) {
412
+ }
413
+ deltaDecorations(oldDecorations, newDecorations) {
587
414
  this.updatingDecorations = true;
588
415
  try {
589
416
  return this.editor.getControl().getModel().deltaDecorations(oldDecorations, newDecorations);
@@ -591,81 +418,79 @@ var DebugEditorModel = /** @class */ (function () {
591
418
  finally {
592
419
  this.updatingDecorations = false;
593
420
  }
594
- };
595
- var DebugEditorModel_1;
596
- DebugEditorModel.CONTEXT_MENU = ['debug-editor-context-menu'];
597
- DebugEditorModel.STICKINESS = monaco.editor.TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges;
598
- DebugEditorModel.BREAKPOINT_HINT_DECORATION = {
599
- glyphMarginClassName: 'theia-debug-breakpoint-hint',
600
- stickiness: DebugEditorModel_1.STICKINESS
601
- };
602
- DebugEditorModel.TOP_STACK_FRAME_MARGIN = {
603
- glyphMarginClassName: 'theia-debug-top-stack-frame',
604
- stickiness: DebugEditorModel_1.STICKINESS
605
- };
606
- DebugEditorModel.FOCUSED_STACK_FRAME_MARGIN = {
607
- glyphMarginClassName: 'theia-debug-focused-stack-frame',
608
- stickiness: DebugEditorModel_1.STICKINESS
609
- };
610
- DebugEditorModel.TOP_STACK_FRAME_DECORATION = {
611
- isWholeLine: true,
612
- className: 'theia-debug-top-stack-frame-line',
613
- stickiness: DebugEditorModel_1.STICKINESS
614
- };
615
- DebugEditorModel.TOP_STACK_FRAME_INLINE_DECORATION = {
616
- beforeContentClassName: 'theia-debug-top-stack-frame-column'
617
- };
618
- DebugEditorModel.FOCUSED_STACK_FRAME_DECORATION = {
619
- isWholeLine: true,
620
- className: 'theia-debug-focused-stack-frame-line',
621
- stickiness: DebugEditorModel_1.STICKINESS
622
- };
623
- __decorate([
624
- inversify_1.inject(debug_hover_widget_1.DebugHoverWidget),
625
- __metadata("design:type", debug_hover_widget_1.DebugHoverWidget)
626
- ], DebugEditorModel.prototype, "hover", void 0);
627
- __decorate([
628
- inversify_1.inject(debug_editor_1.DebugEditor),
629
- __metadata("design:type", Object)
630
- ], DebugEditorModel.prototype, "editor", void 0);
631
- __decorate([
632
- inversify_1.inject(breakpoint_manager_1.BreakpointManager),
633
- __metadata("design:type", breakpoint_manager_1.BreakpointManager)
634
- ], DebugEditorModel.prototype, "breakpoints", void 0);
635
- __decorate([
636
- inversify_1.inject(debug_session_manager_1.DebugSessionManager),
637
- __metadata("design:type", debug_session_manager_1.DebugSessionManager)
638
- ], DebugEditorModel.prototype, "sessions", void 0);
639
- __decorate([
640
- inversify_1.inject(browser_1.ContextMenuRenderer),
641
- __metadata("design:type", browser_1.ContextMenuRenderer)
642
- ], DebugEditorModel.prototype, "contextMenu", void 0);
643
- __decorate([
644
- inversify_1.inject(debug_breakpoint_widget_1.DebugBreakpointWidget),
645
- __metadata("design:type", debug_breakpoint_widget_1.DebugBreakpointWidget)
646
- ], DebugEditorModel.prototype, "breakpointWidget", void 0);
647
- __decorate([
648
- inversify_1.inject(debug_exception_widget_1.DebugExceptionWidget),
649
- __metadata("design:type", debug_exception_widget_1.DebugExceptionWidget)
650
- ], DebugEditorModel.prototype, "exceptionWidget", void 0);
651
- __decorate([
652
- inversify_1.inject(debug_inline_value_decorator_1.DebugInlineValueDecorator),
653
- __metadata("design:type", debug_inline_value_decorator_1.DebugInlineValueDecorator)
654
- ], DebugEditorModel.prototype, "inlineValueDecorator", void 0);
655
- __decorate([
656
- inversify_1.inject(monaco_frontend_module_1.MonacoConfigurationService),
657
- __metadata("design:type", Object)
658
- ], DebugEditorModel.prototype, "configurationService", void 0);
659
- __decorate([
660
- inversify_1.postConstruct(),
661
- __metadata("design:type", Function),
662
- __metadata("design:paramtypes", []),
663
- __metadata("design:returntype", void 0)
664
- ], DebugEditorModel.prototype, "init", null);
665
- DebugEditorModel = DebugEditorModel_1 = __decorate([
666
- inversify_1.injectable()
667
- ], DebugEditorModel);
668
- return DebugEditorModel;
669
- }());
421
+ }
422
+ };
423
+ DebugEditorModel.CONTEXT_MENU = ['debug-editor-context-menu'];
424
+ DebugEditorModel.STICKINESS = monaco.editor.TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges;
425
+ DebugEditorModel.BREAKPOINT_HINT_DECORATION = {
426
+ glyphMarginClassName: 'theia-debug-breakpoint-hint',
427
+ stickiness: DebugEditorModel_1.STICKINESS
428
+ };
429
+ DebugEditorModel.TOP_STACK_FRAME_MARGIN = {
430
+ glyphMarginClassName: 'theia-debug-top-stack-frame',
431
+ stickiness: DebugEditorModel_1.STICKINESS
432
+ };
433
+ DebugEditorModel.FOCUSED_STACK_FRAME_MARGIN = {
434
+ glyphMarginClassName: 'theia-debug-focused-stack-frame',
435
+ stickiness: DebugEditorModel_1.STICKINESS
436
+ };
437
+ DebugEditorModel.TOP_STACK_FRAME_DECORATION = {
438
+ isWholeLine: true,
439
+ className: 'theia-debug-top-stack-frame-line',
440
+ stickiness: DebugEditorModel_1.STICKINESS
441
+ };
442
+ DebugEditorModel.TOP_STACK_FRAME_INLINE_DECORATION = {
443
+ beforeContentClassName: 'theia-debug-top-stack-frame-column'
444
+ };
445
+ DebugEditorModel.FOCUSED_STACK_FRAME_DECORATION = {
446
+ isWholeLine: true,
447
+ className: 'theia-debug-focused-stack-frame-line',
448
+ stickiness: DebugEditorModel_1.STICKINESS
449
+ };
450
+ __decorate([
451
+ inversify_1.inject(debug_hover_widget_1.DebugHoverWidget),
452
+ __metadata("design:type", debug_hover_widget_1.DebugHoverWidget)
453
+ ], DebugEditorModel.prototype, "hover", void 0);
454
+ __decorate([
455
+ inversify_1.inject(debug_editor_1.DebugEditor),
456
+ __metadata("design:type", Object)
457
+ ], DebugEditorModel.prototype, "editor", void 0);
458
+ __decorate([
459
+ inversify_1.inject(breakpoint_manager_1.BreakpointManager),
460
+ __metadata("design:type", breakpoint_manager_1.BreakpointManager)
461
+ ], DebugEditorModel.prototype, "breakpoints", void 0);
462
+ __decorate([
463
+ inversify_1.inject(debug_session_manager_1.DebugSessionManager),
464
+ __metadata("design:type", debug_session_manager_1.DebugSessionManager)
465
+ ], DebugEditorModel.prototype, "sessions", void 0);
466
+ __decorate([
467
+ inversify_1.inject(browser_1.ContextMenuRenderer),
468
+ __metadata("design:type", browser_1.ContextMenuRenderer)
469
+ ], DebugEditorModel.prototype, "contextMenu", void 0);
470
+ __decorate([
471
+ inversify_1.inject(debug_breakpoint_widget_1.DebugBreakpointWidget),
472
+ __metadata("design:type", debug_breakpoint_widget_1.DebugBreakpointWidget)
473
+ ], DebugEditorModel.prototype, "breakpointWidget", void 0);
474
+ __decorate([
475
+ inversify_1.inject(debug_exception_widget_1.DebugExceptionWidget),
476
+ __metadata("design:type", debug_exception_widget_1.DebugExceptionWidget)
477
+ ], DebugEditorModel.prototype, "exceptionWidget", void 0);
478
+ __decorate([
479
+ inversify_1.inject(debug_inline_value_decorator_1.DebugInlineValueDecorator),
480
+ __metadata("design:type", debug_inline_value_decorator_1.DebugInlineValueDecorator)
481
+ ], DebugEditorModel.prototype, "inlineValueDecorator", void 0);
482
+ __decorate([
483
+ inversify_1.inject(monaco_frontend_module_1.MonacoConfigurationService),
484
+ __metadata("design:type", Object)
485
+ ], DebugEditorModel.prototype, "configurationService", void 0);
486
+ __decorate([
487
+ inversify_1.postConstruct(),
488
+ __metadata("design:type", Function),
489
+ __metadata("design:paramtypes", []),
490
+ __metadata("design:returntype", void 0)
491
+ ], DebugEditorModel.prototype, "init", null);
492
+ DebugEditorModel = DebugEditorModel_1 = __decorate([
493
+ inversify_1.injectable()
494
+ ], DebugEditorModel);
670
495
  exports.DebugEditorModel = DebugEditorModel;
671
496
  //# sourceMappingURL=debug-editor-model.js.map