mirror of
https://github.com/microsoft/vscode.git
synced 2026-02-14 23:18:36 +00:00
Merge pull request #272473 from microsoft/tyriar/winpwsh
Be more explicit about windows powershell in tool desc
This commit is contained in:
@@ -51,12 +51,13 @@ import { IPollingResult, OutputMonitorState } from './monitoring/types.js';
|
||||
// #region Tool data
|
||||
|
||||
function createPowerShellModelDescription(shell: string): string {
|
||||
const isWinPwsh = isWindowsPowerShell(shell);
|
||||
return [
|
||||
'This tool allows you to execute PowerShell commands in a persistent terminal session, preserving environment variables, working directory, and other context across multiple commands.',
|
||||
`This tool allows you to execute ${isWinPwsh ? 'Windows PowerShell 5.1' : 'PowerShell'} commands in a persistent terminal session, preserving environment variables, working directory, and other context across multiple commands.`,
|
||||
'',
|
||||
'Command Execution:',
|
||||
'- Does NOT support multi-line commands',
|
||||
`- ${isWindowsPowerShell(shell)
|
||||
`- ${isWinPwsh
|
||||
? 'Use semicolons ; to chain commands on one line, NEVER use && even when asked explicitly'
|
||||
: 'Use && to chain simple commands on one line'}`,
|
||||
'- Prefer pipelines | for object-based data flow',
|
||||
|
||||
Reference in New Issue
Block a user