@theia/debug 1.27.0-next.9 → 1.27.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.
- package/lib/browser/debug-frontend-application-contribution.d.ts +1 -15
- package/lib/browser/debug-frontend-application-contribution.d.ts.map +1 -1
- package/lib/browser/debug-frontend-application-contribution.js +9 -60
- package/lib/browser/debug-frontend-application-contribution.js.map +1 -1
- package/lib/browser/debug-frontend-module.d.ts.map +1 -1
- package/lib/browser/debug-frontend-module.js +11 -2
- package/lib/browser/debug-frontend-module.js.map +1 -1
- package/lib/browser/debug-preferences.d.ts +0 -1
- package/lib/browser/debug-preferences.d.ts.map +1 -1
- package/lib/browser/debug-preferences.js +0 -5
- package/lib/browser/debug-preferences.js.map +1 -1
- package/lib/browser/debug-session-connection.d.ts +4 -4
- package/lib/browser/debug-session-connection.d.ts.map +1 -1
- package/lib/browser/debug-session-connection.js.map +1 -1
- package/lib/browser/debug-session-contribution.js +2 -2
- package/lib/browser/debug-session-contribution.js.map +1 -1
- package/lib/browser/view/debug-breakpoints-widget.d.ts +1 -0
- package/lib/browser/view/debug-breakpoints-widget.d.ts.map +1 -1
- package/lib/browser/view/debug-breakpoints-widget.js +2 -1
- package/lib/browser/view/debug-breakpoints-widget.js.map +1 -1
- package/lib/browser/view/debug-session-widget.d.ts +8 -11
- package/lib/browser/view/debug-session-widget.d.ts.map +1 -1
- package/lib/browser/view/debug-session-widget.js +23 -34
- package/lib/browser/view/debug-session-widget.js.map +1 -1
- package/lib/browser/view/debug-stack-frames-source.d.ts.map +1 -1
- package/lib/browser/view/debug-stack-frames-source.js +1 -3
- package/lib/browser/view/debug-stack-frames-source.js.map +1 -1
- package/lib/browser/view/debug-stack-frames-widget.d.ts +2 -1
- package/lib/browser/view/debug-stack-frames-widget.d.ts.map +1 -1
- package/lib/browser/view/debug-stack-frames-widget.js +4 -3
- package/lib/browser/view/debug-stack-frames-widget.js.map +1 -1
- package/lib/browser/view/debug-threads-widget.d.ts +1 -0
- package/lib/browser/view/debug-threads-widget.d.ts.map +1 -1
- package/lib/browser/view/debug-threads-widget.js +2 -1
- package/lib/browser/view/debug-threads-widget.js.map +1 -1
- package/lib/browser/view/debug-variables-widget.d.ts +1 -0
- package/lib/browser/view/debug-variables-widget.d.ts.map +1 -1
- package/lib/browser/view/debug-variables-widget.js +2 -1
- package/lib/browser/view/debug-variables-widget.js.map +1 -1
- package/lib/browser/view/debug-view-model.d.ts +0 -9
- package/lib/browser/view/debug-view-model.d.ts.map +1 -1
- package/lib/browser/view/debug-view-model.js +9 -43
- package/lib/browser/view/debug-view-model.js.map +1 -1
- package/lib/browser/view/debug-watch-widget.d.ts +1 -0
- package/lib/browser/view/debug-watch-widget.d.ts.map +1 -1
- package/lib/browser/view/debug-watch-widget.js +2 -1
- package/lib/browser/view/debug-watch-widget.js.map +1 -1
- package/lib/browser/view/debug-widget.d.ts.map +1 -1
- package/lib/browser/view/debug-widget.js +1 -6
- package/lib/browser/view/debug-widget.js.map +1 -1
- package/lib/{node → common}/debug-adapter-contribution-registry.d.ts +2 -2
- package/lib/common/debug-adapter-contribution-registry.d.ts.map +1 -0
- package/lib/{node → common}/debug-adapter-contribution-registry.js +1 -1
- package/lib/common/debug-adapter-contribution-registry.js.map +1 -0
- package/lib/{node → common}/debug-adapter-session.d.ts +2 -2
- package/lib/common/debug-adapter-session.d.ts.map +1 -0
- package/lib/{node → common}/debug-adapter-session.js +0 -0
- package/lib/common/debug-adapter-session.js.map +1 -0
- package/lib/common/debug-configuration.d.ts +0 -3
- package/lib/common/debug-configuration.d.ts.map +1 -1
- package/lib/common/debug-configuration.js.map +1 -1
- package/lib/{node → common}/debug-model.d.ts +4 -4
- package/lib/{node → common}/debug-model.d.ts.map +1 -1
- package/lib/{node → common}/debug-model.js +0 -0
- package/lib/common/debug-model.js.map +1 -0
- package/lib/common/debug-service.d.ts +17 -4
- package/lib/common/debug-service.d.ts.map +1 -1
- package/lib/common/debug-service.js +31 -1
- package/lib/common/debug-service.js.map +1 -1
- package/lib/common/inline-debug-adapter.d.ts +19 -0
- package/lib/common/inline-debug-adapter.d.ts.map +1 -0
- package/lib/common/inline-debug-adapter.js +45 -0
- package/lib/common/inline-debug-adapter.js.map +1 -0
- package/lib/node/debug-adapter-factory.d.ts +1 -1
- package/lib/node/debug-adapter-factory.d.ts.map +1 -1
- package/lib/node/debug-adapter-factory.js +1 -1
- package/lib/node/debug-adapter-factory.js.map +1 -1
- package/lib/node/debug-adapter-session-manager.d.ts +2 -2
- package/lib/node/debug-adapter-session-manager.d.ts.map +1 -1
- package/lib/node/debug-adapter-session-manager.js +4 -4
- package/lib/node/debug-adapter-session-manager.js.map +1 -1
- package/lib/node/debug-backend-module.js +2 -2
- package/lib/node/debug-backend-module.js.map +1 -1
- package/lib/node/debug-service-impl.d.ts +1 -1
- package/lib/node/debug-service-impl.d.ts.map +1 -1
- package/lib/node/debug-service-impl.js +1 -1
- package/lib/node/debug-service-impl.js.map +1 -1
- package/lib/node/stream-debug-adapter.d.ts +1 -1
- package/lib/node/stream-debug-adapter.d.ts.map +1 -1
- package/lib/node/vscode/vscode-debug-adapter-contribution.d.ts +1 -1
- package/lib/node/vscode/vscode-debug-adapter-contribution.d.ts.map +1 -1
- package/package.json +15 -15
- package/src/browser/debug-call-stack-item-type-key.ts +1 -1
- package/src/browser/debug-frontend-application-contribution.ts +11 -71
- package/src/browser/debug-frontend-module.ts +12 -5
- package/src/browser/debug-preferences.ts +0 -6
- package/src/browser/debug-session-connection.ts +4 -4
- package/src/browser/debug-session-contribution.ts +4 -4
- package/src/browser/view/debug-breakpoints-widget.ts +2 -1
- package/src/browser/view/debug-session-widget.ts +22 -33
- package/src/browser/view/debug-stack-frames-source.tsx +1 -4
- package/src/browser/view/debug-stack-frames-widget.ts +4 -3
- package/src/browser/view/debug-threads-widget.ts +2 -1
- package/src/browser/view/debug-variables-widget.ts +2 -1
- package/src/browser/view/debug-view-model.ts +8 -46
- package/src/browser/view/debug-watch-widget.ts +2 -1
- package/src/browser/view/debug-widget.ts +2 -6
- package/src/{node → common}/debug-adapter-contribution-registry.ts +2 -2
- package/src/{node → common}/debug-adapter-session.ts +3 -3
- package/src/common/debug-configuration.ts +0 -5
- package/src/{node → common}/debug-model.ts +4 -4
- package/src/common/debug-service.ts +36 -5
- package/src/common/inline-debug-adapter.ts +47 -0
- package/src/node/debug-adapter-factory.ts +2 -2
- package/src/node/debug-adapter-session-manager.ts +6 -6
- package/src/node/debug-backend-module.ts +2 -2
- package/src/node/debug-service-impl.ts +1 -1
- package/src/node/stream-debug-adapter.ts +1 -1
- package/src/node/vscode/vscode-debug-adapter-contribution.ts +1 -1
- package/lib/node/debug-adapter-contribution-registry.d.ts.map +0 -1
- package/lib/node/debug-adapter-contribution-registry.js.map +0 -1
- package/lib/node/debug-adapter-session.d.ts.map +0 -1
- package/lib/node/debug-adapter-session.js.map +0 -1
- package/lib/node/debug-model.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MessagingService } from '@theia/core/lib/node/messaging/messaging-service';
|
|
2
2
|
import { DebugConfiguration } from '../common/debug-configuration';
|
|
3
|
-
import { DebugAdapterSession, DebugAdapterSessionFactory, DebugAdapterFactory } from '
|
|
4
|
-
import { DebugAdapterContributionRegistry } from '
|
|
3
|
+
import { DebugAdapterSession, DebugAdapterSessionFactory, DebugAdapterFactory } from '../common/debug-model';
|
|
4
|
+
import { DebugAdapterContributionRegistry } from '../common/debug-adapter-contribution-registry';
|
|
5
5
|
/**
|
|
6
6
|
* Debug adapter session manager.
|
|
7
7
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"debug-adapter-session-manager.d.ts","sourceRoot":"","sources":["../../src/node/debug-adapter-session-manager.ts"],"names":[],"mappings":"AAkBA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kDAAkD,CAAC;AAGpF,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,0BAA0B,EAAE,mBAAmB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"debug-adapter-session-manager.d.ts","sourceRoot":"","sources":["../../src/node/debug-adapter-session-manager.ts"],"names":[],"mappings":"AAkBA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kDAAkD,CAAC;AAGpF,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,0BAA0B,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC7G,OAAO,EAAE,gCAAgC,EAAE,MAAM,+CAA+C,CAAC;AAEjG;;GAEG;AACH,qBACa,0BAA2B,YAAW,gBAAgB,CAAC,YAAY;IAC5E,SAAS,CAAC,QAAQ,CAAC,QAAQ,mCAA0C;IAGrE,SAAS,CAAC,QAAQ,CAAC,0BAA0B,EAAE,0BAA0B,CAAC;IAG1E,SAAS,CAAC,QAAQ,CAAC,mBAAmB,EAAE,mBAAmB,CAAC;IAE5D,SAAS,CAAC,OAAO,EAAE,gBAAgB,GAAG,IAAI;IAW1C;;;;OAIG;IACG,MAAM,CAAC,MAAM,EAAE,kBAAkB,EAAE,QAAQ,EAAE,gCAAgC,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAyBlH;;;;OAIG;IACH,MAAM,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI;IAI/B;;;;;OAKG;IACH,IAAI,CAAC,SAAS,EAAE,MAAM,GAAG,mBAAmB,GAAG,SAAS;IAIxD;;;OAGG;IACH,MAAM,IAAI,gBAAgB,CAAC,mBAAmB,CAAC;CAGlD"}
|
|
@@ -28,7 +28,7 @@ exports.DebugAdapterSessionManager = void 0;
|
|
|
28
28
|
const coreutils_1 = require("@theia/core/shared/@phosphor/coreutils");
|
|
29
29
|
const inversify_1 = require("@theia/core/shared/inversify");
|
|
30
30
|
const debug_service_1 = require("../common/debug-service");
|
|
31
|
-
const debug_model_1 = require("
|
|
31
|
+
const debug_model_1 = require("../common/debug-model");
|
|
32
32
|
/**
|
|
33
33
|
* Debug adapter session manager.
|
|
34
34
|
*/
|
|
@@ -37,13 +37,13 @@ let DebugAdapterSessionManager = class DebugAdapterSessionManager {
|
|
|
37
37
|
this.sessions = new Map();
|
|
38
38
|
}
|
|
39
39
|
configure(service) {
|
|
40
|
-
service.wsChannel(`${debug_service_1.DebugAdapterPath}/:id`, ({ id },
|
|
40
|
+
service.wsChannel(`${debug_service_1.DebugAdapterPath}/:id`, ({ id }, wsChannel) => {
|
|
41
41
|
const session = this.find(id);
|
|
42
42
|
if (!session) {
|
|
43
|
-
|
|
43
|
+
wsChannel.close();
|
|
44
44
|
return;
|
|
45
45
|
}
|
|
46
|
-
session.start(
|
|
46
|
+
session.start(new debug_service_1.ForwardingDebugChannel(wsChannel));
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
49
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"debug-adapter-session-manager.js","sourceRoot":"","sources":["../../src/node/debug-adapter-session-manager.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,2EAA2E;AAC3E,gFAAgF;;;;;;;;;;;;AAEhF,sEAA8D;AAC9D,4DAAkE;AAGlE,
|
|
1
|
+
{"version":3,"file":"debug-adapter-session-manager.js","sourceRoot":"","sources":["../../src/node/debug-adapter-session-manager.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,2EAA2E;AAC3E,gFAAgF;;;;;;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CAAC,QAAQ,CAAC,GAAG,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;QAEtC,IAAI,MAAM,CAAC,aAAa,EAAE;YACtB,MAAM,aAAa,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,aAAa,CAAC,EAAE,CAAC,CAAC;YACjE,IAAI,aAAa,EAAE;gBACf,OAAO,CAAC,aAAa,GAAG,aAAa,CAAC;aACzC;SACJ;QAED,OAAO,OAAO,CAAC;IACnB,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,SAAiB;QACpB,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;IACpC,CAAC;IAED;;;;;OAKG;IACH,IAAI,CAAC,SAAiB;QAClB,OAAO,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IACxC,CAAC;IAED;;;OAGG;IACH,MAAM;QACF,OAAO,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC;IAClC,CAAC;CACJ,CAAA;AAxEG;IADC,IAAA,kBAAM,EAAC,wCAA0B,CAAC;;8EACuC;AAG1E;IADC,IAAA,kBAAM,EAAC,iCAAmB,CAAC;;uEACgC;AAPnD,0BAA0B;IADtC,IAAA,sBAAU,GAAE;GACA,0BAA0B,CA4EtC;AA5EY,gEAA0B"}
|
|
@@ -21,9 +21,9 @@ const debug_service_1 = require("../common/debug-service");
|
|
|
21
21
|
const debug_adapter_factory_1 = require("./debug-adapter-factory");
|
|
22
22
|
const messaging_service_1 = require("@theia/core/lib/node/messaging/messaging-service");
|
|
23
23
|
const connection_container_module_1 = require("@theia/core/lib/node/messaging/connection-container-module");
|
|
24
|
-
const debug_model_1 = require("
|
|
24
|
+
const debug_model_1 = require("../common/debug-model");
|
|
25
25
|
const debug_service_impl_1 = require("./debug-service-impl");
|
|
26
|
-
const debug_adapter_contribution_registry_1 = require("
|
|
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
28
|
const debugConnectionModule = connection_container_module_1.ConnectionContainerModule.create(({ bind, bindBackendService }) => {
|
|
29
29
|
(0, common_1.bindContributionProvider)(bind, debug_model_1.DebugAdapterContribution);
|
|
@@ -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,2EAA2E;AAC3E,gFAAgF;;AAEhF,mDAA2E;AAC3E,4DAA+D;AAC/D,2DAGiC;AACjC,mEAGiC;AACjC,wFAAoF;AACpF,4GAAuG;AACvG
|
|
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,2EAA2E;AAC3E,gFAAgF;;AAEhF,mDAA2E;AAC3E,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;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;IAE1E,IAAI,CAAC,gBAAO,CAAC,CAAC,cAAc,CAAC,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE,CAC3C,SAAS,CAAC,GAAG,CAAU,gBAAO,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CACjD,CAAC,gBAAgB,EAAE,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC;AAClD,CAAC,CAAC,CAAC"}
|
|
@@ -3,7 +3,7 @@ import { DebugService, DebuggerDescription } from '../common/debug-service';
|
|
|
3
3
|
import { IJSONSchema, IJSONSchemaSnippet } from '@theia/core/lib/common/json-schema';
|
|
4
4
|
import { CommandIdVariables } from '@theia/variable-resolver/lib/common/variable-types';
|
|
5
5
|
import { DebugAdapterSessionManager } from './debug-adapter-session-manager';
|
|
6
|
-
import { DebugAdapterContributionRegistry } from '
|
|
6
|
+
import { DebugAdapterContributionRegistry } from '../common/debug-adapter-contribution-registry';
|
|
7
7
|
import { Event } from '@theia/core';
|
|
8
8
|
/**
|
|
9
9
|
* DebugService implementation.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"debug-service-impl.d.ts","sourceRoot":"","sources":["../../src/node/debug-service-impl.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC5E,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AACrF,OAAO,EAAE,kBAAkB,EAAE,MAAM,oDAAoD,CAAC;AACxF,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,gCAAgC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"debug-service-impl.d.ts","sourceRoot":"","sources":["../../src/node/debug-service-impl.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC5E,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AACrF,OAAO,EAAE,kBAAkB,EAAE,MAAM,oDAAoD,CAAC;AACxF,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,gCAAgC,EAAE,MAAM,+CAA+C,CAAC;AACjG,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEpC;;GAEG;AACH,qBACa,gBAAiB,YAAW,YAAY;IAGjD,SAAS,CAAC,QAAQ,CAAC,cAAc,EAAE,0BAA0B,CAAC;IAG9D,SAAS,CAAC,QAAQ,CAAC,QAAQ,EAAE,gCAAgC,CAAC;IAE9D,IAAI,sCAAsC,IAAI,KAAK,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ty(exports, "__esModule", { value: true });
|
|
|
27
27
|
exports.DebugServiceImpl = void 0;
|
|
28
28
|
const inversify_1 = require("@theia/core/shared/inversify");
|
|
29
29
|
const debug_adapter_session_manager_1 = require("./debug-adapter-session-manager");
|
|
30
|
-
const debug_adapter_contribution_registry_1 = require("
|
|
30
|
+
const debug_adapter_contribution_registry_1 = require("../common/debug-adapter-contribution-registry");
|
|
31
31
|
const core_1 = require("@theia/core");
|
|
32
32
|
/**
|
|
33
33
|
* DebugService implementation.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"debug-service-impl.js","sourceRoot":"","sources":["../../src/node/debug-service-impl.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,2EAA2E;AAC3E,gFAAgF;;;;;;;;;;;;AAEhF,4DAAkE;AAKlE,mFAA6E;AAC7E
|
|
1
|
+
{"version":3,"file":"debug-service-impl.js","sourceRoot":"","sources":["../../src/node/debug-service-impl.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,2EAA2E;AAC3E,gFAAgF;;;;;;;;;;;;AAEhF,4DAAkE;AAKlE,mFAA6E;AAC7E,uGAAiG;AACjG,sCAAoC;AAEpC;;GAEG;AAEH,IAAa,gBAAgB,GAA7B,MAAa,gBAAgB;IAA7B;QAuDuB,aAAQ,GAAG,IAAI,GAAG,EAAU,CAAC;IAkCpD,CAAC;IAjFG,IAAI,sCAAsC;QACtC,OAAO,YAAK,CAAC,IA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SAC7B;IACL,CAAC;CACJ,CAAA;AAtFG;IADC,IAAA,kBAAM,EAAC,0DAA0B,CAAC;8BACA,0DAA0B;wDAAC;AAG9D;IADC,IAAA,kBAAM,EAAC,sEAAgC,CAAC;8BACZ,sEAAgC;kDAAC;AANrD,gBAAgB;IAD5B,IAAA,sBAAU,GAAE;GACA,gBAAgB,CAyF5B;AAzFY,4CAAgB"}
|
|
@@ -4,7 +4,7 @@ import { Event } from '@theia/core/lib/common/event';
|
|
|
4
4
|
import { ChildProcess } from 'child_process';
|
|
5
5
|
import * as stream from 'stream';
|
|
6
6
|
import * as net from 'net';
|
|
7
|
-
import { DebugAdapter } from '
|
|
7
|
+
import { DebugAdapter } from '../common/debug-model';
|
|
8
8
|
declare abstract class StreamDebugAdapter extends DisposableCollection {
|
|
9
9
|
private fromAdapter;
|
|
10
10
|
private toAdapter;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stream-debug-adapter.d.ts","sourceRoot":"","sources":["../../src/node/stream-debug-adapter.ts"],"names":[],"mappings":";AAgBA,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACzE,OAAO,EAAW,KAAK,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,OAAO,KAAK,GAAG,MAAM,KAAK,CAAC;AAC3B,OAAO,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"stream-debug-adapter.d.ts","sourceRoot":"","sources":["../../src/node/stream-debug-adapter.ts"],"names":[],"mappings":";AAgBA,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACzE,OAAO,EAAW,KAAK,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,O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|
1
|
+
import { DebugAdapterExecutable, DebugAdapterContribution } from '../../common/debug-model';
|
|
2
2
|
import { IJSONSchema, IJSONSchemaSnippet } from '@theia/core/lib/common/json-schema';
|
|
3
3
|
export interface VSCodeExtensionPackage {
|
|
4
4
|
contributes: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vscode-debug-adapter-contribution.d.ts","sourceRoot":"","sources":["../../../src/node/vscode/vscode-debug-adapter-contribution.ts"],"names":[],"mappings":"AAoBA,OAAO,EAAE,sBAAsB,EAAE,wBAAwB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"vscode-debug-adapter-contribution.d.ts","sourceRoot":"","sources":["../../../src/node/vscode/vscode-debug-adapter-contribution.ts"],"names":[],"mappings":"AAoBA,OAAO,EAAE,sBAAsB,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAC;AAE5F,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAgBrF,MAAM,WAAW,sBAAsB;IACnC,WAAW,EAAE;QACT,SAAS,EAAE,0BAA0B,EAAE,CAAA;KAC1C,CAAA;CACJ;AACD,MAAM,WAAW,yCAAyC;IACtD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;CAC1B;AACD,MAAM,WAAW,0BAA2B,SAAQ,yCAAyC;IACzF,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,MAAM,EAAE,CAAA;IACpB,qBAAqB,CAAC,EAAE,kBAAkB,EAAE,CAAA;IAC5C,uBAAuB,CAAC,EAAE;QACtB,CAAC,OAAO,EAAE,MAAM,GAAG,WAAW,CAAA;KACjC,CAAA;IACD,GAAG,CAAC,EAAE,yCAAyC,CAAC;IAChD,MAAM,C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|
1
1
|
{
|
|
2
2
|
"name": "@theia/debug",
|
|
3
|
-
"version": "1.27.0
|
|
3
|
+
"version": "1.27.0",
|
|
4
4
|
"description": "Theia - Debug Extension",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@theia/console": "1.27.0
|
|
7
|
-
"@theia/core": "1.27.0
|
|
8
|
-
"@theia/editor": "1.27.0
|
|
9
|
-
"@theia/filesystem": "1.27.0
|
|
10
|
-
"@theia/markers": "1.27.0
|
|
11
|
-
"@theia/monaco": "1.27.0
|
|
6
|
+
"@theia/console": "1.27.0",
|
|
7
|
+
"@theia/core": "1.27.0",
|
|
8
|
+
"@theia/editor": "1.27.0",
|
|
9
|
+
"@theia/filesystem": "1.27.0",
|
|
10
|
+
"@theia/markers": "1.27.0",
|
|
11
|
+
"@theia/monaco": "1.27.0",
|
|
12
12
|
"@theia/monaco-editor-core": "1.65.2",
|
|
13
|
-
"@theia/output": "1.27.0
|
|
14
|
-
"@theia/process": "1.27.0
|
|
15
|
-
"@theia/task": "1.27.0
|
|
16
|
-
"@theia/terminal": "1.27.0
|
|
17
|
-
"@theia/variable-resolver": "1.27.0
|
|
18
|
-
"@theia/workspace": "1.27.0
|
|
13
|
+
"@theia/output": "1.27.0",
|
|
14
|
+
"@theia/process": "1.27.0",
|
|
15
|
+
"@theia/task": "1.27.0",
|
|
16
|
+
"@theia/terminal": "1.27.0",
|
|
17
|
+
"@theia/variable-resolver": "1.27.0",
|
|
18
|
+
"@theia/workspace": "1.27.0",
|
|
19
19
|
"jsonc-parser": "^2.2.0",
|
|
20
20
|
"mkdirp": "^0.5.0",
|
|
21
21
|
"p-debounce": "^2.1.0",
|
|
@@ -63,10 +63,10 @@
|
|
|
63
63
|
"watch": "theiaext watch"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
|
-
"@theia/ext-scripts": "1.
|
|
66
|
+
"@theia/ext-scripts": "1.27.0"
|
|
67
67
|
},
|
|
68
68
|
"nyc": {
|
|
69
69
|
"extends": "../../configs/nyc.json"
|
|
70
70
|
},
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "b952ad743a97821dee94787e946f5a288174d4e8"
|
|
72
72
|
}
|
|
@@ -17,4 +17,4 @@
|
|
|
17
17
|
import { ContextKey } from '@theia/core/lib/browser/context-key-service';
|
|
18
18
|
|
|
19
19
|
export const DebugCallStackItemTypeKey = Symbol('DebugCallStackItemTypeKey');
|
|
20
|
-
export type DebugCallStackItemTypeKey = ContextKey<'session' |
|
|
20
|
+
export type DebugCallStackItemTypeKey = ContextKey<'session' | 'thread' | 'stackFrame'>;
|
|
@@ -14,11 +14,10 @@
|
|
|
14
14
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
|
-
import { AbstractViewContribution,
|
|
17
|
+
import { AbstractViewContribution, KeybindingRegistry, Widget, CompositeTreeNode, LabelProvider, codicon } from '@theia/core/lib/browser';
|
|
18
18
|
import { injectable, inject } from '@theia/core/shared/inversify';
|
|
19
19
|
import * as monaco from '@theia/monaco-editor-core';
|
|
20
20
|
import { MenuModelRegistry, CommandRegistry, MAIN_MENU_BAR, Command, Emitter, Mutable } from '@theia/core/lib/common';
|
|
21
|
-
import { DebugViewLocation } from '../common/debug-configuration';
|
|
22
21
|
import { EditorKeybindingContexts, EditorManager } from '@theia/editor/lib/browser';
|
|
23
22
|
import { DebugSessionManager } from './debug-session-manager';
|
|
24
23
|
import { DebugWidget } from './view/debug-widget';
|
|
@@ -34,7 +33,7 @@ import { DebugStackFramesWidget } from './view/debug-stack-frames-widget';
|
|
|
34
33
|
import { DebugStackFrame } from './model/debug-stack-frame';
|
|
35
34
|
import { DebugVariablesWidget } from './view/debug-variables-widget';
|
|
36
35
|
import { DebugVariable } from './console/debug-console-items';
|
|
37
|
-
import { DebugSessionWidget
|
|
36
|
+
import { DebugSessionWidget } from './view/debug-session-widget';
|
|
38
37
|
import { DebugKeybindingContexts } from './debug-keybinding-contexts';
|
|
39
38
|
import { DebugEditorModel } from './editor/debug-editor-model';
|
|
40
39
|
import { DebugEditorService } from './editor/debug-editor-service';
|
|
@@ -334,15 +333,6 @@ export namespace DebugSessionContextCommands {
|
|
|
334
333
|
export const REVEAL = {
|
|
335
334
|
id: 'debug.session.context.reveal'
|
|
336
335
|
};
|
|
337
|
-
export const OPEN_LEFT = {
|
|
338
|
-
id: 'debug.session.context.openLeft'
|
|
339
|
-
};
|
|
340
|
-
export const OPEN_RIGHT = {
|
|
341
|
-
id: 'debug.session.context.openRight'
|
|
342
|
-
};
|
|
343
|
-
export const OPEN_BOTTOM = {
|
|
344
|
-
id: 'debug.session.context.openBottom'
|
|
345
|
-
};
|
|
346
336
|
}
|
|
347
337
|
export namespace DebugEditorContextCommands {
|
|
348
338
|
export const ADD_BREAKPOINT = {
|
|
@@ -403,9 +393,6 @@ export class DebugFrontendApplicationContribution extends AbstractViewContributi
|
|
|
403
393
|
@inject(BreakpointManager)
|
|
404
394
|
protected readonly breakpointManager: BreakpointManager;
|
|
405
395
|
|
|
406
|
-
@inject(DebugSessionWidgetFactory)
|
|
407
|
-
protected readonly sessionWidgetFactory: DebugSessionWidgetFactory;
|
|
408
|
-
|
|
409
396
|
@inject(DebugEditorService)
|
|
410
397
|
protected readonly editors: DebugEditorService;
|
|
411
398
|
|
|
@@ -556,12 +543,7 @@ export class DebugFrontendApplicationContribution extends AbstractViewContributi
|
|
|
556
543
|
{ ...DebugCommands.STOP, ...DebugSessionContextCommands.STOP },
|
|
557
544
|
{ ...DebugThreadContextCommands.TERMINATE, label: nls.localizeByDefault('Terminate Thread') }
|
|
558
545
|
);
|
|
559
|
-
registerMenuActions(DebugThreadsWidget.OPEN_MENU,
|
|
560
|
-
{ ...DebugSessionContextCommands.REVEAL, label: nls.localize('theia/debug/reveal', 'Reveal') },
|
|
561
|
-
{ ...DebugSessionContextCommands.OPEN_LEFT, label: nls.localize('theia/debug/openLeft', 'Open Left') },
|
|
562
|
-
{ ...DebugSessionContextCommands.OPEN_RIGHT, label: nls.localize('theia/debug/openRight', 'Open Right') },
|
|
563
|
-
{ ...DebugSessionContextCommands.OPEN_BOTTOM, label: nls.localize('theia/debug/openBottom', 'Open Bottom') }
|
|
564
|
-
);
|
|
546
|
+
registerMenuActions(DebugThreadsWidget.OPEN_MENU, { ...DebugSessionContextCommands.REVEAL, label: nls.localize('theia/debug/reveal', 'Reveal') });
|
|
565
547
|
|
|
566
548
|
registerMenuActions(DebugStackFramesWidget.CONTEXT_MENU,
|
|
567
549
|
DebugCommands.RESTART_FRAME,
|
|
@@ -721,31 +703,9 @@ export class DebugFrontendApplicationContribution extends AbstractViewContributi
|
|
|
721
703
|
});
|
|
722
704
|
registry.registerCommand(DebugSessionContextCommands.REVEAL, {
|
|
723
705
|
execute: () => this.selectedSession && this.revealSession(this.selectedSession),
|
|
724
|
-
isEnabled: () => this.
|
|
725
|
-
isVisible: () => !this.selectedThread && this.
|
|
726
|
-
});
|
|
727
|
-
registry.registerCommand(DebugSessionContextCommands.OPEN_LEFT, {
|
|
728
|
-
execute: () => this.selectedSession && this.openSession(this.selectedSession, {
|
|
729
|
-
debugViewLocation: 'left'
|
|
730
|
-
}),
|
|
731
|
-
isEnabled: () => !this.hasSessionWidget,
|
|
732
|
-
isVisible: () => !this.selectedThread && !this.hasSessionWidget
|
|
733
|
-
});
|
|
734
|
-
registry.registerCommand(DebugSessionContextCommands.OPEN_RIGHT, {
|
|
735
|
-
execute: () => this.selectedSession && this.openSession(this.selectedSession, {
|
|
736
|
-
debugViewLocation: 'right'
|
|
737
|
-
}),
|
|
738
|
-
isEnabled: () => !this.hasSessionWidget,
|
|
739
|
-
isVisible: () => !this.selectedThread && !this.hasSessionWidget
|
|
740
|
-
});
|
|
741
|
-
registry.registerCommand(DebugSessionContextCommands.OPEN_BOTTOM, {
|
|
742
|
-
execute: () => this.selectedSession && this.openSession(this.selectedSession, {
|
|
743
|
-
debugViewLocation: 'bottom'
|
|
744
|
-
}),
|
|
745
|
-
isEnabled: () => !this.hasSessionWidget,
|
|
746
|
-
isVisible: () => !this.selectedThread && !this.hasSessionWidget
|
|
706
|
+
isEnabled: () => Boolean(this.selectedSession),
|
|
707
|
+
isVisible: () => !this.selectedThread && Boolean(this.selectedSession)
|
|
747
708
|
});
|
|
748
|
-
|
|
749
709
|
registry.registerCommand(DebugCommands.TOGGLE_BREAKPOINT, {
|
|
750
710
|
execute: () => this.editors.toggleBreakpoint(),
|
|
751
711
|
isEnabled: () => !!this.editors.model
|
|
@@ -1131,43 +1091,23 @@ export class DebugFrontendApplicationContribution extends AbstractViewContributi
|
|
|
1131
1091
|
});
|
|
1132
1092
|
}
|
|
1133
1093
|
|
|
1134
|
-
protected readonly sessionWidgets = new Map<string, DebugSessionWidget>();
|
|
1135
|
-
get hasSessionWidget(): boolean {
|
|
1136
|
-
return !!this.selectedSession && this.sessionWidgets.has(this.selectedSession.label);
|
|
1137
|
-
}
|
|
1138
1094
|
protected async openSession(
|
|
1139
1095
|
session: DebugSession,
|
|
1140
1096
|
options?: {
|
|
1141
|
-
debugViewLocation?: DebugViewLocation;
|
|
1142
1097
|
reveal?: boolean;
|
|
1143
1098
|
}
|
|
1144
1099
|
): Promise<DebugWidget | DebugSessionWidget> {
|
|
1145
|
-
const {
|
|
1146
|
-
debugViewLocation: session.configuration.debugViewLocation || this.preference['debug.debugViewLocation'],
|
|
1100
|
+
const { reveal } = {
|
|
1147
1101
|
reveal: true,
|
|
1148
1102
|
...options
|
|
1149
1103
|
};
|
|
1150
|
-
const
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
}
|
|
1154
|
-
const area = ApplicationShell.isSideArea(debugViewLocation) ? debugViewLocation : 'debug';
|
|
1155
|
-
if (area === 'debug') {
|
|
1156
|
-
return this.openView({ reveal });
|
|
1157
|
-
}
|
|
1158
|
-
const newSessionWidget = this.sessionWidgetFactory({ session });
|
|
1159
|
-
this.sessionWidgets.set(session.label, newSessionWidget);
|
|
1160
|
-
newSessionWidget.disposed.connect(() =>
|
|
1161
|
-
this.sessionWidgets.delete(session.label)
|
|
1162
|
-
);
|
|
1163
|
-
this.shell.addWidget(newSessionWidget, { area });
|
|
1164
|
-
if (reveal) {
|
|
1165
|
-
this.shell.revealWidget(newSessionWidget.id);
|
|
1166
|
-
}
|
|
1167
|
-
return newSessionWidget;
|
|
1104
|
+
const debugWidget = await this.openView({ reveal });
|
|
1105
|
+
debugWidget.sessionManager.currentSession = session;
|
|
1106
|
+
return debugWidget['sessionWidget'];
|
|
1168
1107
|
}
|
|
1108
|
+
|
|
1169
1109
|
protected revealSession(session: DebugSession): DebugSessionWidget | undefined {
|
|
1170
|
-
const widget = this.
|
|
1110
|
+
const widget = this.tryGetWidget()?.['sessionWidget'];
|
|
1171
1111
|
if (widget) {
|
|
1172
1112
|
this.shell.revealWidget(widget.id);
|
|
1173
1113
|
}
|
|
@@ -39,8 +39,6 @@ import { DebugFrontendApplicationContribution } from './debug-frontend-applicati
|
|
|
39
39
|
import { DebugConsoleContribution } from './console/debug-console-contribution';
|
|
40
40
|
import { BreakpointManager } from './breakpoint/breakpoint-manager';
|
|
41
41
|
import { DebugEditorService } from './editor/debug-editor-service';
|
|
42
|
-
import { DebugViewOptions } from './view/debug-view-model';
|
|
43
|
-
import { DebugSessionWidget, DebugSessionWidgetFactory } from './view/debug-session-widget';
|
|
44
42
|
import { InDebugModeContext, BreakpointWidgetInputFocusContext, BreakpointWidgetInputStrictFocusContext } from './debug-keybinding-contexts';
|
|
45
43
|
import { DebugEditorModelFactory, DebugEditorModel } from './editor/debug-editor-model';
|
|
46
44
|
import { bindDebugPreferences } from './debug-preferences';
|
|
@@ -60,6 +58,9 @@ import { TabBarDecorator } from '@theia/core/lib/browser/shell/tab-bar-decorator
|
|
|
60
58
|
import { DebugTabBarDecorator } from './debug-tab-bar-decorator';
|
|
61
59
|
import { DebugContribution } from './debug-contribution';
|
|
62
60
|
import { QuickAccessContribution } from '@theia/core/lib/browser/quick-input/quick-access';
|
|
61
|
+
import { DebugViewModel } from './view/debug-view-model';
|
|
62
|
+
import { DebugToolBar } from './view/debug-toolbar-widget';
|
|
63
|
+
import { DebugSessionWidget } from './view/debug-session-widget';
|
|
63
64
|
|
|
64
65
|
export default new ContainerModule((bind: interfaces.Bind) => {
|
|
65
66
|
bindContributionProvider(bind, DebugContribution);
|
|
@@ -81,9 +82,6 @@ export default new ContainerModule((bind: interfaces.Bind) => {
|
|
|
81
82
|
return service;
|
|
82
83
|
});
|
|
83
84
|
|
|
84
|
-
bind(DebugSessionWidgetFactory).toDynamicValue(({ container }) =>
|
|
85
|
-
(options: DebugViewOptions) => DebugSessionWidget.createWidget(container, options)
|
|
86
|
-
).inSingletonScope();
|
|
87
85
|
bind(WidgetFactory).toDynamicValue(({ container }) => ({
|
|
88
86
|
id: DebugWidget.ID,
|
|
89
87
|
createWidget: () => DebugWidget.createWidget(container)
|
|
@@ -124,4 +122,13 @@ export default new ContainerModule((bind: interfaces.Bind) => {
|
|
|
124
122
|
|
|
125
123
|
bind(DebugTabBarDecorator).toSelf().inSingletonScope();
|
|
126
124
|
bind(TabBarDecorator).toService(DebugTabBarDecorator);
|
|
125
|
+
|
|
126
|
+
bind(DebugViewModel).toSelf().inSingletonScope();
|
|
127
|
+
bind(DebugToolBar).toSelf().inSingletonScope();
|
|
128
|
+
for (const subwidget of DebugSessionWidget.subwidgets) {
|
|
129
|
+
bind(WidgetFactory).toDynamicValue(({ container }) => ({
|
|
130
|
+
id: subwidget.FACTORY_ID,
|
|
131
|
+
createWidget: () => subwidget.createWidget(container),
|
|
132
|
+
}));
|
|
133
|
+
}
|
|
127
134
|
});
|
|
@@ -26,11 +26,6 @@ export const debugPreferencesSchema: PreferenceSchema = {
|
|
|
26
26
|
default: false,
|
|
27
27
|
description: nls.localize('theia/debug/toggleTracing', 'Enable/disable tracing communications with debug adapters')
|
|
28
28
|
},
|
|
29
|
-
'debug.debugViewLocation': {
|
|
30
|
-
enum: ['default', 'left', 'right', 'bottom'],
|
|
31
|
-
default: 'default',
|
|
32
|
-
description: nls.localize('theia/debug/debugViewLocation', 'Controls the location of the debug view.')
|
|
33
|
-
},
|
|
34
29
|
'debug.openDebug': {
|
|
35
30
|
enum: ['neverOpen', 'openOnSessionStart', 'openOnFirstSessionStart', 'openOnDebugBreak'],
|
|
36
31
|
default: 'openOnSessionStart',
|
|
@@ -71,7 +66,6 @@ export const debugPreferencesSchema: PreferenceSchema = {
|
|
|
71
66
|
|
|
72
67
|
export class DebugConfiguration {
|
|
73
68
|
'debug.trace': boolean;
|
|
74
|
-
'debug.debugViewLocation': 'default' | 'left' | 'right' | 'bottom';
|
|
75
69
|
'debug.openDebug': 'neverOpen' | 'openOnSessionStart' | 'openOnFirstSessionStart' | 'openOnDebugBreak';
|
|
76
70
|
'debug.internalConsoleOptions': 'neverOpen' | 'openOnSessionStart' | 'openOnFirstSessionStart';
|
|
77
71
|
'debug.inlineValues': boolean;
|
|
@@ -21,7 +21,7 @@ import { Deferred } from '@theia/core/lib/common/promise-util';
|
|
|
21
21
|
import { Event, Emitter, DisposableCollection, Disposable, MaybePromise } from '@theia/core';
|
|
22
22
|
import { OutputChannel } from '@theia/output/lib/browser/output-channel';
|
|
23
23
|
|
|
24
|
-
import {
|
|
24
|
+
import { DebugChannel } from '../common/debug-service';
|
|
25
25
|
|
|
26
26
|
export type DebugRequestHandler = (request: DebugProtocol.Request) => MaybePromise<any>;
|
|
27
27
|
|
|
@@ -121,7 +121,7 @@ export class DebugSessionConnection implements Disposable {
|
|
|
121
121
|
private sequence = 1;
|
|
122
122
|
|
|
123
123
|
protected readonly pendingRequests = new Map<number, Deferred<DebugProtocol.Response>>();
|
|
124
|
-
protected readonly connectionPromise: Promise<
|
|
124
|
+
protected readonly connectionPromise: Promise<DebugChannel>;
|
|
125
125
|
|
|
126
126
|
protected readonly requestHandlers = new Map<string, DebugRequestHandler>();
|
|
127
127
|
|
|
@@ -141,7 +141,7 @@ export class DebugSessionConnection implements Disposable {
|
|
|
141
141
|
|
|
142
142
|
constructor(
|
|
143
143
|
readonly sessionId: string,
|
|
144
|
-
connectionFactory: (sessionId: string) => Promise<
|
|
144
|
+
connectionFactory: (sessionId: string) => Promise<DebugChannel>,
|
|
145
145
|
protected readonly traceOutputChannel: OutputChannel | undefined
|
|
146
146
|
) {
|
|
147
147
|
this.connectionPromise = this.createConnection(connectionFactory);
|
|
@@ -161,7 +161,7 @@ export class DebugSessionConnection implements Disposable {
|
|
|
161
161
|
this.toDispose.dispose();
|
|
162
162
|
}
|
|
163
163
|
|
|
164
|
-
protected async createConnection(connectionFactory: (sessionId: string) => Promise<
|
|
164
|
+
protected async createConnection(connectionFactory: (sessionId: string) => Promise<DebugChannel>): Promise<DebugChannel> {
|
|
165
165
|
const connection = await connectionFactory(this.sessionId);
|
|
166
166
|
connection.onClose(() => {
|
|
167
167
|
this.isClosed = true;
|
|
@@ -26,7 +26,7 @@ import { DebugSessionOptions } from './debug-session-options';
|
|
|
26
26
|
import { OutputChannelManager, OutputChannel } from '@theia/output/lib/browser/output-channel';
|
|
27
27
|
import { DebugPreferences } from './debug-preferences';
|
|
28
28
|
import { DebugSessionConnection } from './debug-session-connection';
|
|
29
|
-
import {
|
|
29
|
+
import { DebugChannel, DebugAdapterPath, ForwardingDebugChannel } from '../common/debug-service';
|
|
30
30
|
import { ContributionProvider } from '@theia/core/lib/common/contribution-provider';
|
|
31
31
|
import { FileService } from '@theia/filesystem/lib/browser/file-service';
|
|
32
32
|
import { DebugContribution } from './debug-contribution';
|
|
@@ -121,9 +121,9 @@ export class DefaultDebugSessionFactory implements DebugSessionFactory {
|
|
|
121
121
|
get(sessionId: string, options: DebugSessionOptions, parentSession?: DebugSession): DebugSession {
|
|
122
122
|
const connection = new DebugSessionConnection(
|
|
123
123
|
sessionId,
|
|
124
|
-
() => new Promise<
|
|
125
|
-
this.connectionProvider.openChannel(`${DebugAdapterPath}/${sessionId}`,
|
|
126
|
-
resolve(
|
|
124
|
+
() => new Promise<DebugChannel>(resolve =>
|
|
125
|
+
this.connectionProvider.openChannel(`${DebugAdapterPath}/${sessionId}`, wsChannel => {
|
|
126
|
+
resolve(new ForwardingDebugChannel(wsChannel));
|
|
127
127
|
}, { reconnecting: false })
|
|
128
128
|
),
|
|
129
129
|
this.getTraceOutputChannel());
|
|
@@ -30,6 +30,7 @@ export class DebugBreakpointsWidget extends SourceTreeWidget {
|
|
|
30
30
|
static EDIT_MENU = [...DebugBreakpointsWidget.CONTEXT_MENU, 'a_edit'];
|
|
31
31
|
static REMOVE_MENU = [...DebugBreakpointsWidget.CONTEXT_MENU, 'b_remove'];
|
|
32
32
|
static ENABLE_MENU = [...DebugBreakpointsWidget.CONTEXT_MENU, 'c_enable'];
|
|
33
|
+
static FACTORY_ID = 'debug:breakpoints';
|
|
33
34
|
static override createContainer(parent: interfaces.Container): Container {
|
|
34
35
|
const child = SourceTreeWidget.createContainer(parent, {
|
|
35
36
|
contextMenuPath: DebugBreakpointsWidget.CONTEXT_MENU,
|
|
@@ -57,7 +58,7 @@ export class DebugBreakpointsWidget extends SourceTreeWidget {
|
|
|
57
58
|
@postConstruct()
|
|
58
59
|
protected override init(): void {
|
|
59
60
|
super.init();
|
|
60
|
-
this.id = '
|
|
61
|
+
this.id = DebugBreakpointsWidget.FACTORY_ID + ':' + this.viewModel.id;
|
|
61
62
|
this.title.label = nls.localizeByDefault('Breakpoints');
|
|
62
63
|
this.toDispose.push(this.breakpointsSource);
|
|
63
64
|
this.source = this.breakpointsSource;
|
|
@@ -16,18 +16,17 @@
|
|
|
16
16
|
|
|
17
17
|
import { inject, injectable, postConstruct, interfaces, Container } from '@theia/core/shared/inversify';
|
|
18
18
|
import {
|
|
19
|
-
Message, ApplicationShell, Widget, BaseWidget, PanelLayout, StatefulWidget, ViewContainer, codicon, ViewContainerTitleOptions
|
|
19
|
+
Message, ApplicationShell, Widget, BaseWidget, PanelLayout, StatefulWidget, ViewContainer, codicon, ViewContainerTitleOptions, WidgetManager
|
|
20
20
|
} from '@theia/core/lib/browser';
|
|
21
21
|
import { DebugThreadsWidget } from './debug-threads-widget';
|
|
22
22
|
import { DebugStackFramesWidget } from './debug-stack-frames-widget';
|
|
23
23
|
import { DebugBreakpointsWidget } from './debug-breakpoints-widget';
|
|
24
24
|
import { DebugVariablesWidget } from './debug-variables-widget';
|
|
25
25
|
import { DebugToolBar } from './debug-toolbar-widget';
|
|
26
|
-
import { DebugViewModel
|
|
26
|
+
import { DebugViewModel } from './debug-view-model';
|
|
27
27
|
import { DebugWatchWidget } from './debug-watch-widget';
|
|
28
|
+
import { FrontendApplicationStateService } from '@theia/core/lib/browser/frontend-application-state';
|
|
28
29
|
|
|
29
|
-
export const DebugSessionWidgetFactory = Symbol('DebugSessionWidgetFactory');
|
|
30
|
-
export type DebugSessionWidgetFactory = (options: DebugViewOptions) => DebugSessionWidget;
|
|
31
30
|
export const DEBUG_VIEW_CONTAINER_TITLE_OPTIONS: ViewContainerTitleOptions = {
|
|
32
31
|
label: 'debug',
|
|
33
32
|
iconClass: codicon('debug-alt'),
|
|
@@ -37,24 +36,21 @@ export const DEBUG_VIEW_CONTAINER_TITLE_OPTIONS: ViewContainerTitleOptions = {
|
|
|
37
36
|
@injectable()
|
|
38
37
|
export class DebugSessionWidget extends BaseWidget implements StatefulWidget, ApplicationShell.TrackableWidgetProvider {
|
|
39
38
|
|
|
40
|
-
static createContainer(parent: interfaces.Container
|
|
39
|
+
static createContainer(parent: interfaces.Container): Container {
|
|
41
40
|
const child = new Container({ defaultScope: 'Singleton' });
|
|
42
41
|
child.parent = parent;
|
|
43
|
-
child.bind(DebugViewOptions).toConstantValue(options);
|
|
44
42
|
child.bind(DebugViewModel).toSelf();
|
|
45
43
|
child.bind(DebugToolBar).toSelf();
|
|
46
|
-
child.bind(DebugThreadsWidget).toDynamicValue(({ container }) => DebugThreadsWidget.createWidget(container));
|
|
47
|
-
child.bind(DebugStackFramesWidget).toDynamicValue(({ container }) => DebugStackFramesWidget.createWidget(container));
|
|
48
|
-
child.bind(DebugVariablesWidget).toDynamicValue(({ container }) => DebugVariablesWidget.createWidget(container));
|
|
49
|
-
child.bind(DebugWatchWidget).toDynamicValue(({ container }) => DebugWatchWidget.createWidget(container));
|
|
50
|
-
child.bind(DebugBreakpointsWidget).toDynamicValue(({ container }) => DebugBreakpointsWidget.createWidget(container));
|
|
51
44
|
child.bind(DebugSessionWidget).toSelf();
|
|
52
45
|
return child;
|
|
53
46
|
}
|
|
54
|
-
|
|
55
|
-
|
|
47
|
+
|
|
48
|
+
static createWidget(parent: interfaces.Container): DebugSessionWidget {
|
|
49
|
+
return DebugSessionWidget.createContainer(parent).get(DebugSessionWidget);
|
|
56
50
|
}
|
|
57
51
|
|
|
52
|
+
static subwidgets = [DebugThreadsWidget, DebugStackFramesWidget, DebugVariablesWidget, DebugWatchWidget, DebugBreakpointsWidget];
|
|
53
|
+
|
|
58
54
|
protected viewContainer: ViewContainer;
|
|
59
55
|
|
|
60
56
|
@inject(ViewContainer.Factory)
|
|
@@ -66,20 +62,8 @@ export class DebugSessionWidget extends BaseWidget implements StatefulWidget, Ap
|
|
|
66
62
|
@inject(DebugToolBar)
|
|
67
63
|
protected readonly toolbar: DebugToolBar;
|
|
68
64
|
|
|
69
|
-
@inject(
|
|
70
|
-
protected readonly
|
|
71
|
-
|
|
72
|
-
@inject(DebugStackFramesWidget)
|
|
73
|
-
protected readonly stackFrames: DebugStackFramesWidget;
|
|
74
|
-
|
|
75
|
-
@inject(DebugVariablesWidget)
|
|
76
|
-
protected readonly variables: DebugVariablesWidget;
|
|
77
|
-
|
|
78
|
-
@inject(DebugWatchWidget)
|
|
79
|
-
protected readonly watch: DebugWatchWidget;
|
|
80
|
-
|
|
81
|
-
@inject(DebugBreakpointsWidget)
|
|
82
|
-
protected readonly breakpoints: DebugBreakpointsWidget;
|
|
65
|
+
@inject(WidgetManager) protected readonly widgetManager: WidgetManager;
|
|
66
|
+
@inject(FrontendApplicationStateService) protected readonly stateService: FrontendApplicationStateService;
|
|
83
67
|
|
|
84
68
|
@postConstruct()
|
|
85
69
|
protected init(): void {
|
|
@@ -94,11 +78,17 @@ export class DebugSessionWidget extends BaseWidget implements StatefulWidget, Ap
|
|
|
94
78
|
id: 'debug:view-container:' + this.model.id
|
|
95
79
|
});
|
|
96
80
|
this.viewContainer.setTitleOptions(DEBUG_VIEW_CONTAINER_TITLE_OPTIONS);
|
|
97
|
-
this.
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
81
|
+
this.stateService.reachedState('initialized_layout').then(() => {
|
|
82
|
+
for (const subwidget of DebugSessionWidget.subwidgets) {
|
|
83
|
+
const widgetPromises = [];
|
|
84
|
+
const existingWidget = this.widgetManager.tryGetPendingWidget(subwidget.FACTORY_ID);
|
|
85
|
+
// No other view container instantiated this widget during startup.
|
|
86
|
+
if (!existingWidget) {
|
|
87
|
+
widgetPromises.push(this.widgetManager.getOrCreateWidget(subwidget.FACTORY_ID));
|
|
88
|
+
}
|
|
89
|
+
Promise.all(widgetPromises).then(widgets => widgets.forEach(widget => this.viewContainer.addWidget(widget)));
|
|
90
|
+
}
|
|
91
|
+
});
|
|
102
92
|
|
|
103
93
|
this.toDispose.pushAll([
|
|
104
94
|
this.toolbar,
|
|
@@ -131,5 +121,4 @@ export class DebugSessionWidget extends BaseWidget implements StatefulWidget, Ap
|
|
|
131
121
|
restoreState(oldState: ViewContainer.State): void {
|
|
132
122
|
this.viewContainer.restoreState(oldState);
|
|
133
123
|
}
|
|
134
|
-
|
|
135
124
|
}
|