core
core copied to clipboard
[REFACTOR] 简化 Terminal 相关逻辑 ID,移除多余拼接逻辑
如果你的需求与问题相关,请在下面描述一下(Is your feature request related to a problem? Please describe.)
由于在 Terminal 前端对于 Terminal id 存在侵入性的修改,即会将插件进程创建的 id 拼接为 ${clientId}|${terminalId}
结构,同时前端本身也存在大量 hack 该 Id 拼接逻辑的代码,存在较强的混淆,代码阅读及维护存在困难。
相关 PR:
- #1122
目前的状况大概如图所示:

描述你预期的功能表现(Describe the solution you'd like)
希望通过这次重构移除掉前端对于 Terminal Id 的拼接逻辑,采用独立的数据结构去存储 WindowId,ClientId,TerminalId 的对应关系
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.