@theia/debug 1.40.1 → 1.42.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 (27) hide show
  1. package/lib/browser/debug-frontend-application-contribution.d.ts +2 -1
  2. package/lib/browser/debug-frontend-application-contribution.d.ts.map +1 -1
  3. package/lib/browser/debug-frontend-application-contribution.js +51 -48
  4. package/lib/browser/debug-frontend-application-contribution.js.map +1 -1
  5. package/lib/browser/debug-frontend-module.d.ts.map +1 -1
  6. package/lib/browser/debug-frontend-module.js +0 -4
  7. package/lib/browser/debug-frontend-module.js.map +1 -1
  8. package/lib/browser/editor/debug-breakpoint-widget.d.ts.map +1 -1
  9. package/lib/browser/editor/debug-breakpoint-widget.js +8 -3
  10. package/lib/browser/editor/debug-breakpoint-widget.js.map +1 -1
  11. package/lib/browser/editor/debug-editor-model.d.ts.map +1 -1
  12. package/lib/browser/editor/debug-editor-model.js +4 -12
  13. package/lib/browser/editor/debug-editor-model.js.map +1 -1
  14. package/lib/browser/view/debug-watch-expression.d.ts.map +1 -1
  15. package/lib/browser/view/debug-watch-expression.js +3 -4
  16. package/lib/browser/view/debug-watch-expression.js.map +1 -1
  17. package/package.json +15 -15
  18. package/src/browser/debug-frontend-application-contribution.ts +55 -51
  19. package/src/browser/debug-frontend-module.ts +1 -5
  20. package/src/browser/editor/debug-breakpoint-widget.tsx +10 -3
  21. package/src/browser/editor/debug-editor-model.ts +4 -11
  22. package/src/browser/view/debug-watch-expression.tsx +3 -4
  23. package/lib/browser/debug-keybinding-contexts.d.ts +0 -25
  24. package/lib/browser/debug-keybinding-contexts.d.ts.map +0 -1
  25. package/lib/browser/debug-keybinding-contexts.js +0 -86
  26. package/lib/browser/debug-keybinding-contexts.js.map +0 -1
  27. package/src/browser/debug-keybinding-contexts.ts +0 -75
@@ -1,25 +0,0 @@
1
- import { KeybindingContext } from '@theia/core/lib/browser';
2
- import { DebugSessionManager } from './debug-session-manager';
3
- import { DebugEditorService } from './editor/debug-editor-service';
4
- import { DebugEditorModel } from './editor/debug-editor-model';
5
- export declare namespace DebugKeybindingContexts {
6
- const inDebugMode = "inDebugMode";
7
- const breakpointWidgetInputFocus = "breakpointWidgetInputFocus";
8
- const breakpointWidgetInputStrictFocus = "breakpointWidgetInputStrictFocus";
9
- }
10
- export declare class InDebugModeContext implements KeybindingContext {
11
- readonly id: string;
12
- protected readonly manager: DebugSessionManager;
13
- isEnabled(): boolean;
14
- }
15
- export declare class BreakpointWidgetInputFocusContext implements KeybindingContext {
16
- readonly id: string;
17
- protected readonly editors: DebugEditorService;
18
- isEnabled(): boolean;
19
- protected isFocused(model: DebugEditorModel): boolean;
20
- }
21
- export declare class BreakpointWidgetInputStrictFocusContext extends BreakpointWidgetInputFocusContext {
22
- readonly id: string;
23
- protected isFocused(model: DebugEditorModel): boolean;
24
- }
25
- //# sourceMappingURL=debug-keybinding-contexts.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"debug-keybinding-contexts.d.ts","sourceRoot":"","sources":["../../src/browser/debug-keybinding-contexts.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAE/D,yBAAiB,uBAAuB,CAAC;IAE9B,MAAM,WAAW,gBAAgB,CAAC;IAElC,MAAM,0BAA0B,+BAA+B,CAAC;IAEhE,MAAM,gCAAgC,qCAAqC,CAAC;CAEtF;AAED,qBACa,kBAAmB,YAAW,iBAAiB;IAExD,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAuC;IAG1D,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,mBAAmB,CAAC;IAEhD,SAAS,IAAI,OAAO;CAIvB;AAED,qBACa,iCAAkC,YAAW,iBAAiB;IAEvE,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAsD;IAGzE,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,kBAAkB,CAAC;IAE/C,SAAS,IAAI,OAAO;IAKpB,SAAS,CAAC,SAAS,CAAC,KAAK,EAAE,gBAAgB,GAAG,OAAO;CAIxD;AAED,qBACa,uCAAwC,SAAQ,iCAAiC;IAE1F,SAAkB,EAAE,EAAE,MAAM,CAA4D;cAErE,SAAS,CAAC,KAAK,EAAE,gBAAgB,GAAG,OAAO;CAIjE"}
@@ -1,86 +0,0 @@
1
- "use strict";
2
- // *****************************************************************************
3
- // Copyright (C) 2018 TypeFox and others.
4
- //
5
- // This program and the accompanying materials are made available under the
6
- // terms of the Eclipse Public License v. 2.0 which is available at
7
- // http://www.eclipse.org/legal/epl-2.0.
8
- //
9
- // This Source Code may also be made available under the following Secondary
10
- // Licenses when the conditions for such availability set forth in the Eclipse
11
- // Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
- // with the GNU Classpath Exception which is available at
13
- // https://www.gnu.org/software/classpath/license.html.
14
- //
15
- // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
16
- // *****************************************************************************
17
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
18
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
19
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
20
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
21
- return c > 3 && r && Object.defineProperty(target, key, r), r;
22
- };
23
- var __metadata = (this && this.__metadata) || function (k, v) {
24
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
25
- };
26
- Object.defineProperty(exports, "__esModule", { value: true });
27
- exports.BreakpointWidgetInputStrictFocusContext = exports.BreakpointWidgetInputFocusContext = exports.InDebugModeContext = exports.DebugKeybindingContexts = void 0;
28
- const inversify_1 = require("@theia/core/shared/inversify");
29
- const debug_session_manager_1 = require("./debug-session-manager");
30
- const debug_editor_service_1 = require("./editor/debug-editor-service");
31
- var DebugKeybindingContexts;
32
- (function (DebugKeybindingContexts) {
33
- DebugKeybindingContexts.inDebugMode = 'inDebugMode';
34
- DebugKeybindingContexts.breakpointWidgetInputFocus = 'breakpointWidgetInputFocus';
35
- DebugKeybindingContexts.breakpointWidgetInputStrictFocus = 'breakpointWidgetInputStrictFocus';
36
- })(DebugKeybindingContexts = exports.DebugKeybindingContexts || (exports.DebugKeybindingContexts = {}));
37
- let InDebugModeContext = class InDebugModeContext {
38
- constructor() {
39
- this.id = DebugKeybindingContexts.inDebugMode;
40
- }
41
- isEnabled() {
42
- return this.manager.inDebugMode;
43
- }
44
- };
45
- __decorate([
46
- (0, inversify_1.inject)(debug_session_manager_1.DebugSessionManager),
47
- __metadata("design:type", debug_session_manager_1.DebugSessionManager)
48
- ], InDebugModeContext.prototype, "manager", void 0);
49
- InDebugModeContext = __decorate([
50
- (0, inversify_1.injectable)()
51
- ], InDebugModeContext);
52
- exports.InDebugModeContext = InDebugModeContext;
53
- let BreakpointWidgetInputFocusContext = class BreakpointWidgetInputFocusContext {
54
- constructor() {
55
- this.id = DebugKeybindingContexts.breakpointWidgetInputFocus;
56
- }
57
- isEnabled() {
58
- const model = this.editors.model;
59
- return !!model && !!model.breakpointWidget.position && this.isFocused(model);
60
- }
61
- isFocused(model) {
62
- return !!model.breakpointWidget.input && model.breakpointWidget.input.isFocused({ strict: true });
63
- }
64
- };
65
- __decorate([
66
- (0, inversify_1.inject)(debug_editor_service_1.DebugEditorService),
67
- __metadata("design:type", debug_editor_service_1.DebugEditorService)
68
- ], BreakpointWidgetInputFocusContext.prototype, "editors", void 0);
69
- BreakpointWidgetInputFocusContext = __decorate([
70
- (0, inversify_1.injectable)()
71
- ], BreakpointWidgetInputFocusContext);
72
- exports.BreakpointWidgetInputFocusContext = BreakpointWidgetInputFocusContext;
73
- let BreakpointWidgetInputStrictFocusContext = class BreakpointWidgetInputStrictFocusContext extends BreakpointWidgetInputFocusContext {
74
- constructor() {
75
- super(...arguments);
76
- this.id = DebugKeybindingContexts.breakpointWidgetInputStrictFocus;
77
- }
78
- isFocused(model) {
79
- return super.isFocused(model) || model.editor.isFocused({ strict: true });
80
- }
81
- };
82
- BreakpointWidgetInputStrictFocusContext = __decorate([
83
- (0, inversify_1.injectable)()
84
- ], BreakpointWidgetInputStrictFocusContext);
85
- exports.BreakpointWidgetInputStrictFocusContext = BreakpointWidgetInputStrictFocusContext;
86
- //# sourceMappingURL=debug-keybinding-contexts.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"debug-keybinding-contexts.js","sourceRoot":"","sources":["../../src/browser/debug-keybinding-contexts.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;;;;;;;;;;;;AAEhF,4DAAkE;AAElE,mEAA8D;AAC9D,wEAAmE;AAGnE,IAAiB,uBAAuB,CAQvC;AARD,WAAiB,uBAAuB;IAEvB,mCAAW,GAAG,aAAa,CAAC;IAE5B,kDAA0B,GAAG,4BAA4B,CAAC;IAE1D,wDAAgC,GAAG,kCAAkC,CAAC;AAEvF,CAAC,EARgB,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QAQvC;AAGD,IAAa,kBAAkB,GAA/B,MAAa,kBAAkB;IAA/B;QAEa,OAAE,GAAW,uBAAuB,CAAC,WAAW,CAAC;IAS9D,CAAC;IAJG,SAAS;QACL,OAAO,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC;IACpC,CAAC;CAEJ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// *****************************************************************************
2
- // Copyright (C) 2018 TypeFox and others.
3
- //
4
- // This program and the accompanying materials are made available under the
5
- // terms of the Eclipse Public License v. 2.0 which is available at
6
- // http://www.eclipse.org/legal/epl-2.0.
7
- //
8
- // This Source Code may also be made available under the following Secondary
9
- // Licenses when the conditions for such availability set forth in the Eclipse
10
- // Public License v. 2.0 are satisfied: GNU General Public License, version 2
11
- // with the GNU Classpath Exception which is available at
12
- // https://www.gnu.org/software/classpath/license.html.
13
- //
14
- // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
15
- // *****************************************************************************
16
-
17
- import { injectable, inject } from '@theia/core/shared/inversify';
18
- import { KeybindingContext } from '@theia/core/lib/browser';
19
- import { DebugSessionManager } from './debug-session-manager';
20
- import { DebugEditorService } from './editor/debug-editor-service';
21
- import { DebugEditorModel } from './editor/debug-editor-model';
22
-
23
- export namespace DebugKeybindingContexts {
24
-
25
- export const inDebugMode = 'inDebugMode';
26
-
27
- export const breakpointWidgetInputFocus = 'breakpointWidgetInputFocus';
28
-
29
- export const breakpointWidgetInputStrictFocus = 'breakpointWidgetInputStrictFocus';
30
-
31
- }
32
-
33
- @injectable()
34
- export class InDebugModeContext implements KeybindingContext {
35
-
36
- readonly id: string = DebugKeybindingContexts.inDebugMode;
37
-
38
- @inject(DebugSessionManager)
39
- protected readonly manager: DebugSessionManager;
40
-
41
- isEnabled(): boolean {
42
- return this.manager.inDebugMode;
43
- }
44
-
45
- }
46
-
47
- @injectable()
48
- export class BreakpointWidgetInputFocusContext implements KeybindingContext {
49
-
50
- readonly id: string = DebugKeybindingContexts.breakpointWidgetInputFocus;
51
-
52
- @inject(DebugEditorService)
53
- protected readonly editors: DebugEditorService;
54
-
55
- isEnabled(): boolean {
56
- const model = this.editors.model;
57
- return !!model && !!model.breakpointWidget.position && this.isFocused(model);
58
- }
59
-
60
- protected isFocused(model: DebugEditorModel): boolean {
61
- return !!model.breakpointWidget.input && model.breakpointWidget.input.isFocused({ strict: true });
62
- }
63
-
64
- }
65
-
66
- @injectable()
67
- export class BreakpointWidgetInputStrictFocusContext extends BreakpointWidgetInputFocusContext {
68
-
69
- override readonly id: string = DebugKeybindingContexts.breakpointWidgetInputStrictFocus;
70
-
71
- protected override isFocused(model: DebugEditorModel): boolean {
72
- return super.isFocused(model) || model.editor.isFocused({ strict: true });
73
- }
74
-
75
- }