-
Notifications
You must be signed in to change notification settings - Fork 37.3k
Allow ghostty terminal from external terminal osx #286983
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds support for the Ghostty terminal application as an external terminal option on both macOS and Linux. The implementation includes platform-specific handling for launching Ghostty with proper working directory support and command execution.
Changes:
- Modified default terminal configuration to use dynamic terminal detection instead of hardcoded constant
- Added Ghostty-specific launch logic for macOS using
open -na Ghostty.app --argswith working directory flag - Added Ghostty-specific command execution logic for Linux using the
-eflag - Added unit tests for Ghostty terminal spawning on both macOS and Linux
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 6 comments.
| File | Description |
|---|---|
| src/vs/workbench/contrib/externalTerminal/electron-browser/externalTerminal.contribution.ts | Updates configuration default to use dynamic terminal value from service instead of static constant |
| src/vs/platform/externalTerminal/node/externalTerminalService.ts | Implements Ghostty support for both macOS and Linux, including special handling for working directory and command execution |
| src/vs/platform/externalTerminal/test/node/externalTerminalService.test.ts | Adds tests for Ghostty spawning on macOS and Linux platforms |
Allow ghostty to launch externally for Mac! #284265
Run/debug with entry from launch.json:
Screen.Recording.2026-01-11.at.2.20.31.PM.mov