Remove warning about commands switching working directory (#4795)

This commit is contained in:
Matt Rubens 2025-06-17 14:58:03 -04:00 committed by GitHub
parent b8505fe175
commit d8b468adbf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -269,10 +269,6 @@ export async function executeCommand(
let workingDirInfo = ` within working directory '${workingDir.toPosix()}'`
const newWorkingDir = terminal.getCurrentWorkingDirectory()
if (newWorkingDir !== workingDir) {
workingDirInfo += `\nNOTICE: Your command changed the working directory for this terminal to '${newWorkingDir.toPosix()}' so you MUST adjust future commands accordingly because they will be executed in this directory`
}
return [false, `Command executed in terminal ${workingDirInfo}. ${exitStatus}\nOutput:\n${result}`]
} else {
return [