@theia/debug 1.59.0-next.72 → 1.60.0-next.43
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.
- package/lib/browser/breakpoint/breakpoint-marker.js +1 -1
- package/lib/browser/breakpoint/breakpoint-marker.js.map +1 -1
- package/lib/browser/console/debug-console-items.d.ts +1 -0
- package/lib/browser/console/debug-console-items.d.ts.map +1 -1
- package/lib/browser/console/debug-console-items.js +3 -0
- package/lib/browser/console/debug-console-items.js.map +1 -1
- package/lib/browser/debug-configuration-manager.d.ts.map +1 -1
- package/lib/browser/debug-configuration-manager.js +7 -3
- package/lib/browser/debug-configuration-manager.js.map +1 -1
- package/lib/browser/editor/debug-breakpoint-widget.d.ts.map +1 -1
- package/lib/browser/editor/debug-breakpoint-widget.js +11 -6
- package/lib/browser/editor/debug-breakpoint-widget.js.map +1 -1
- package/lib/browser/editor/debug-editor-model.d.ts +2 -1
- package/lib/browser/editor/debug-editor-model.d.ts.map +1 -1
- package/lib/browser/editor/debug-editor-model.js +29 -14
- package/lib/browser/editor/debug-editor-model.js.map +1 -1
- package/lib/browser/editor/debug-editor-service.js +3 -2
- package/lib/browser/editor/debug-editor-service.js.map +1 -1
- package/lib/browser/editor/debug-hover-widget.d.ts +1 -1
- package/lib/browser/editor/debug-hover-widget.d.ts.map +1 -1
- package/lib/browser/editor/debug-hover-widget.js +11 -11
- package/lib/browser/editor/debug-hover-widget.js.map +1 -1
- package/lib/common/inline-debug-adapter.d.ts +0 -1
- package/lib/common/inline-debug-adapter.d.ts.map +1 -1
- package/lib/node/debug-adapter-session-manager.js +1 -1
- package/lib/node/debug-adapter-session-manager.js.map +1 -1
- package/package.json +16 -16
- package/src/browser/breakpoint/breakpoint-marker.ts +1 -1
- package/src/browser/console/debug-console-items.tsx +4 -0
- package/src/browser/debug-configuration-manager.ts +7 -3
- package/src/browser/editor/debug-breakpoint-widget.tsx +10 -6
- package/src/browser/editor/debug-editor-model.ts +26 -14
- package/src/browser/editor/debug-editor-service.ts +2 -2
- package/src/browser/editor/debug-hover-widget.ts +22 -21
- package/src/browser/style/index.css +1 -0
- package/src/node/debug-adapter-session-manager.ts +1 -1
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
|
|
17
17
|
import debounce = require('@theia/core/shared/lodash.debounce');
|
|
18
18
|
|
|
19
|
-
import { Widget } from '@theia/core/shared/@
|
|
20
|
-
import { Message } from '@theia/core/shared/@
|
|
19
|
+
import { Widget } from '@theia/core/shared/@lumino/widgets';
|
|
20
|
+
import { Message } from '@theia/core/shared/@lumino/messaging';
|
|
21
21
|
import { injectable, postConstruct, inject, Container, interfaces } from '@theia/core/shared/inversify';
|
|
22
22
|
import { Key } from '@theia/core/lib/browser';
|
|
23
23
|
import { SourceTreeWidget } from '@theia/core/lib/browser/source-tree';
|
|
@@ -196,24 +196,25 @@ export class DebugHoverWidget extends SourceTreeWidget implements monaco.editor.
|
|
|
196
196
|
}
|
|
197
197
|
}
|
|
198
198
|
} else { // use fallback if no provider was registered
|
|
199
|
-
|
|
200
|
-
if (
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
.getLineContent(this.options.selection.startLineNumber);
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
199
|
+
const model = this.editor.getControl().getModel();
|
|
200
|
+
if (model) {
|
|
201
|
+
|
|
202
|
+
matchingExpression = this.expressionProvider.get(model, options.selection);
|
|
203
|
+
if (matchingExpression) {
|
|
204
|
+
const expressionLineContent = model.getLineContent(this.options.selection.startLineNumber);
|
|
205
|
+
const startColumn =
|
|
206
|
+
expressionLineContent.indexOf(
|
|
207
|
+
matchingExpression,
|
|
208
|
+
this.options.selection.startColumn - matchingExpression.length
|
|
209
|
+
) + 1;
|
|
210
|
+
const endColumn = startColumn + matchingExpression.length;
|
|
211
|
+
this.options.selection = new monaco.Range(
|
|
212
|
+
this.options.selection.startLineNumber,
|
|
213
|
+
startColumn,
|
|
214
|
+
this.options.selection.startLineNumber,
|
|
215
|
+
endColumn
|
|
216
|
+
);
|
|
217
|
+
}
|
|
217
218
|
}
|
|
218
219
|
}
|
|
219
220
|
|
|
@@ -263,7 +264,7 @@ export class DebugHoverWidget extends SourceTreeWidget implements monaco.editor.
|
|
|
263
264
|
}
|
|
264
265
|
|
|
265
266
|
protected isEditorFrame(): boolean {
|
|
266
|
-
return this.sessions.isCurrentEditorFrame(this.editor.
|
|
267
|
+
return this.sessions.isCurrentEditorFrame(this.editor.getResourceUri());
|
|
267
268
|
}
|
|
268
269
|
|
|
269
270
|
getPosition(): monaco.editor.IContentWidgetPosition {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
|
-
import { UUID } from '@theia/core/shared/@
|
|
17
|
+
import { UUID } from '@theia/core/shared/@lumino/coreutils';
|
|
18
18
|
import { injectable, inject } from '@theia/core/shared/inversify';
|
|
19
19
|
import { MessagingService } from '@theia/core/lib/node/messaging/messaging-service';
|
|
20
20
|
|