提交 9bd27afe 编写于 作者: T t-amqi

Fix title basename

上级 ae91973f
......@@ -842,9 +842,10 @@ export class TerminalInstance implements ITerminalInstance {
public setTitle(title: string, eventFromProcess: boolean): void {
if (eventFromProcess) {
title = path.basename(title);
if (platform.isWindows) {
// Remove the .exe extension
title = path.basename(title.split('.exe')[0]);
title = title.split('.exe')[0];
}
} else {
// If the title has not been set by the API or the rename command, unregister the handler that
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册