-
Notifications
You must be signed in to change notification settings - Fork 30.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve Open in Terminal in Mac #6136
Conversation
Add Open in Terminal test case for Mac Remove unused files
Hi @sijad, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution! The agreement was validated by Microsoft and real humans are currently evaluating your PR. TTYL, MSBOT; |
Going to adding to @joaomoreno as I don't have access to a mac/vm right now. |
Getting an OS X VM setup so I can do it as @joaomoreno is out. |
@sijad thanks for the PR. Could you please provide some details about your improvements to 'Open in Terminal' on OS X. I quickly reviewed the code and noticed that you have removed the AppleScripts that try to reuse the same terminal if it is not already running a command. Without that functionality, every 'Open in Terminal' creates a new Terminal window which quickly clutter the desktop. |
@weinand that's true but applescript uses |
@sijad here is a first analysis of your PR. Please correct me if I'm wrong and add anything that is missing. The PR:
The PR removes the following features:
Verdict: |
@weinand you're right. As told applescript run |
@sijad I'm not suggesting to revert the PR to use the AppleScript because that will complicate the launch settings: What do you specify in the setting instead of |
@weinand it's still possible to use AppleScript to lunch Terminal application |
@sijad sure, instead of specifying |
@weinand do you want to take this PR? I wouldn't have identified any issues with the AppleScript stuff. |
@sijad today I've merged your PR into VS Code. Thanks a lot! |
This also fixes #391
Tested in
Mac OS X 10.11.4 (15E65)
With
Terminal Version 2.6.1 (361.1)
andiTerm2 Build 2.1.4
DEFAULT_TERMINAL_MAC
also can be set asterminal.app
or eventerminal
but I can't test if that works with older version ofopen
command in previous Mac OS