feat: 终端操作栏配置化.
This commit is contained in:
@@ -60,8 +60,8 @@ export default class TerminalSessionManager implements ITerminalSessionManager {
|
||||
if (!session) {
|
||||
return;
|
||||
}
|
||||
// 登出
|
||||
session.logout();
|
||||
// 关闭连接
|
||||
session.disconnect();
|
||||
// 关闭 session
|
||||
session.close();
|
||||
// 移除 session
|
||||
|
||||
@@ -165,8 +165,8 @@ export default class TerminalSession implements ITerminalSession {
|
||||
this.inst.options[option as keyof ITerminalOptions] = value;
|
||||
}
|
||||
|
||||
// 登出
|
||||
logout(): void {
|
||||
// 断开连接
|
||||
disconnect(): void {
|
||||
// 发送关闭消息
|
||||
this.channel.send(InputProtocol.CLOSE, {
|
||||
sessionId: this.sessionId
|
||||
|
||||
Reference in New Issue
Block a user