提交 e0e2ce13 编写于 作者: I isidor

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

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