mirror of
https://github.com/Microsoft/vscode
synced 2024-09-18 01:58:27 +00:00
fix iTerm support for stable version of iTerm; another fix for #4298
This commit is contained in:
parent
d451e0222a
commit
1912d41ac3
|
@ -10,7 +10,12 @@ on run argv
|
|||
tell application "iTerm"
|
||||
activate
|
||||
|
||||
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();
|
||||
|
|
Loading…
Reference in a new issue