KEMBAR78
Add shell specific instructions by Tyriar · Pull Request #272153 · microsoft/vscode · GitHub
Skip to content

Conversation

@Tyriar
Copy link
Member

@Tyriar Tyriar commented Oct 19, 2025

Fixes #262386

@Tyriar Tyriar added this to the October 2025 milestone Oct 19, 2025
@Tyriar Tyriar self-assigned this Oct 19, 2025
@Copilot Copilot AI review requested due to automatic review settings October 19, 2025 10:37
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Adds shell-specific dynamic model descriptions for the Run in Terminal tool and refactors terminal profile resolution into a dedicated helper.

  • Introduces TerminalProfileFetcher and removes inline profile logic from RunInTerminalTool.
  • Replaces static RunInTerminalToolData with async factory createRunInTerminalToolData that tailors modelDescription per detected shell.
  • Adds shell detection helpers (zsh, fish, Windows PowerShell) and updates tests to use the new profileFetcher API.

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
runInTerminalTool.test.ts Updates tests to use profileFetcher and adds coverage for custom profile and fallback behavior.
runInTerminalTool.ts Refactors tool data creation, adds dynamic shell-specific descriptions, introduces TerminalProfileFetcher, removes embedded profile methods.
terminal.chatAgentTools.contribution.ts Changes registration to asynchronously create shell-aware tool data before registering.
runInTerminalHelpers.ts Adds helper functions for zsh, fish, and Windows PowerShell detection.

@Tyriar Tyriar marked this pull request as draft October 21, 2025 13:10
@Tyriar Tyriar marked this pull request as ready for review October 21, 2025 13:22
@Tyriar Tyriar enabled auto-merge October 21, 2025 13:22
@Tyriar Tyriar merged commit 1e756bc into main Oct 21, 2025
28 checks passed
@Tyriar Tyriar deleted the tyriar/262386 branch October 21, 2025 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Explore shell-specific tools

3 participants