未验证 提交 11d8b592 编写于 作者: M Megan Rogge

fix #135810

上级 7a6ffe9c
......@@ -293,7 +293,11 @@ export class TerminalService implements ITerminalService {
if (instanceToDetach) {
const persistentProcessId = instanceToDetach?.persistentProcessId;
if (persistentProcessId && !instanceToDetach.shellLaunchConfig.isFeatureTerminal && !instanceToDetach.shellLaunchConfig.customPtyImplementation) {
this._terminalEditorService.detachInstance(instanceToDetach);
if (instanceToDetach.target === TerminalLocation.Editor) {
this._terminalEditorService.detachInstance(instanceToDetach);
} else {
this._terminalGroupService.getGroupForInstance(instanceToDetach)?.removeInstance(instanceToDetach);
}
await instanceToDetach.detachFromProcess();
await this._primaryOffProcessTerminalService?.acceptDetachInstanceReply(e.requestId, persistentProcessId);
} else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册