Merge pull request #5813 from chezsmithy/feat-terminals-on-more-hosts
feat: 🧱 Enable terminals for additional vscode Remote Host Types
This commit is contained in:
commit
d51e5e159a
1 changed files with 3 additions and 1 deletions
|
|
@ -10,13 +10,15 @@ import {
|
|||
|
||||
const asyncExec = util.promisify(childProcess.exec);
|
||||
|
||||
const ENABLED_FOR_REMOTES = ["","local","wsl","dev-container","devcontainer","ssh-remote","attached-container","codespaces","tunnel"];
|
||||
|
||||
export const runTerminalCommandImpl: ToolImpl = async (args, extras) => {
|
||||
// Default to waiting for completion if not specified
|
||||
const waitForCompletion = args.waitForCompletion !== false;
|
||||
const ideInfo = await extras.ide.getIdeInfo();
|
||||
const toolCallId = extras.toolCallId || "";
|
||||
|
||||
if (ideInfo.remoteName === "local" || ideInfo.remoteName === "") {
|
||||
if (ENABLED_FOR_REMOTES.includes(ideInfo.remoteName)) {
|
||||
// For streaming output
|
||||
if (extras.onPartialOutput) {
|
||||
return new Promise((resolve, reject) => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue