Repository navigation
Let users open the Stata pane when their own "Stata" terminal profile hides Sight's - #451
Merged
Merged
Conversation
Contributor
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. Next included review available in 38 minutes. View limit details
|
VS Code hides an extension's terminal profile when one of the user's profiles has the same title, so a user with their own "Stata" profile had no way to open the Stata pane without sending code. The profile is now "Stata (Sight)", and Sight: Open Stata Pane shows the Stata pane that sends go to, or opens one.
jbearak
force-pushed
the
t3/open-sight-console
branch
from
November 26, 2026 18:05
8dea3d1 to
d38d6c2
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
If you've defined your own terminal profile named "Stata" (say, one that runs Stata in your shell), Sight's "Stata" profile disappears from the terminal "+" menu and from Create New Terminal (With Profile). VS Code does this on purpose: its
contributedProfilesgetter drops any extension profile whose title matches one of your profiles (terminalProfileService.ts). After that, the only way to open sight console was to send it code.This PR makes two changes:
The terminal tab is still named "Stata". docs/send-to-stata.md and docs/console.md describe the command.
One thing changes for existing users: anyone who set
terminal.integrated.defaultProfile.*to"Stata"to get Sight's profile now needs"Stata (Sight)".How I proved it: four new integration tests drive the registered command for Windows, macOS/Linux with the helper, the plain-CLI fallback, and Stata not found. All four fail without the source change.
check:line-endings,typecheck,bun test ./tests(10433 pass) andlintall pass. I tried to run it in a real VS Code, but the agent sandbox couldn't launch the app.Reviewed with sol-loop: 2 rounds with gpt-6.2-sol. Sol verdict: approved
Created with Claude Opus 5.5 in Claude Code (T3 Code); reviewed by GPT-6.2 Sol in Codex.