提交 8c0d644a 编写于 作者: I isidor

Revert "fixes #43516"

This reverts commit c7218a88.
上级 ab78dc7e
......@@ -154,17 +154,11 @@ export class DebugService implements debug.IDebugService {
const session = <RawDebugSession>process.session;
if (broadcast.channel === EXTENSION_ATTACH_BROADCAST_CHANNEL) {
const initialAttach = process.configuration.request === 'launch';
this.onSessionEnd(session);
process.configuration.request = 'attach';
process.configuration.port = broadcast.payload.port;
// Do not end process on initial attach (since the request is still 'launch')
if (initialAttach) {
session.attach(process.configuration);
} else {
this.onSessionEnd(session);
this.doCreateProcess(process.session.root, process.configuration, process.getId());
}
this.doCreateProcess(process.session.root, process.configuration, process.getId());
return;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册