提交 e0e2ce13 编写于 作者: I isidor

debug: rawAttach should also pass in the source map data.

上级 91ec2ba0
...@@ -249,7 +249,7 @@ export interface IDebugService extends ee.IEventEmitter { ...@@ -249,7 +249,7 @@ export interface IDebugService extends ee.IEventEmitter {
createSession(): Promise; createSession(): Promise;
restartSession(): Promise; restartSession(): Promise;
rawAttach(type: string, port: number): Promise; rawAttach(port: number): Promise;
getActiveSession(): IRawDebugSession; getActiveSession(): IRawDebugSession;
getModel(): IModel; getModel(): IModel;
......
...@@ -135,7 +135,7 @@ export class DebugService extends ee.EventEmitter implements debug.IDebugService ...@@ -135,7 +135,7 @@ export class DebugService extends ee.EventEmitter implements debug.IDebugService
// Attach: PH is ready to be attached to // Attach: PH is ready to be attached to
if (broadcast.channel === PLUGIN_ATTACH_BROADCAST_CHANNEL) { if (broadcast.channel === PLUGIN_ATTACH_BROADCAST_CHANNEL) {
this.rawAttach('extensionHost', broadcast.payload.port); this.rawAttach(broadcast.payload.port);
return; return;
} }
...@@ -566,15 +566,18 @@ export class DebugService extends ee.EventEmitter implements debug.IDebugService ...@@ -566,15 +566,18 @@ export class DebugService extends ee.EventEmitter implements debug.IDebugService
}); });
} }
public rawAttach(type: string, port: number): Promise { public rawAttach(port: number): Promise {
if (this.session) { if (this.session) {
return this.session.attach({ port }); return this.session.attach({ port });
} }
const configuration = this.configurationManager.getConfiguration();
return this.doCreateSession({ return this.doCreateSession({
type, type: configuration.type,
request: 'attach', request: 'attach',
port port,
sourceMaps: configuration.sourceMaps,
outDir: configuration.outDir
}, true); }, true);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册