提交 1912d41a 编写于 作者: A Andre Weinand

fix iTerm support for stable version of iTerm; another fix for #4298

上级 d451e022
......@@ -10,7 +10,12 @@ on run argv
tell application "iTerm"
activate
set myterm to (current terminal)
if (count terminal) = 0 then
set myterm to (make new terminal)
else
set myterm to (current terminal)
end if
tell myterm
tell (launch session "Default")
write text command
......
......@@ -45,7 +45,7 @@ export class MacTerminalService implements ITerminalService {
return this._terminalApplicationScriptPath = new TPromise<string>((c, e) => {
let version = '';
let child = cp.spawn('/usr/bin/osascript', ['-e', 'item (((exists application "iTerm") as integer) + 1) of {0, version of application "iTerm"}']);
let child = cp.spawn('/usr/bin/osascript', ['-e', 'version of application "iTerm"']);
child.on('error', e);
child.stdout.on('data', (data) => {
version += data.toString();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册