From 749a61191ea05f72431155814861f14ff4bb0629 Mon Sep 17 00:00:00 2001 From: Kelvin Schoofs Date: Thu, 17 Feb 2022 23:54:42 +0100 Subject: [PATCH] Disable auto-cd when ${workingDirectory} is present (#323) --- CHANGELOG.md | 2 ++ src/pseudoTerminal.ts | 23 ++++++++++++++--------- 2 files changed, 16 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3afa1d3..fc80945 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,8 @@ - Small improvements to Dropdown(WithInput) UI components - Delay and wait for loadConfigs() after logging version info - This solves a small issue/annoyance where logs regarding loading logs appear before the version logging +- When `${workingDirectory}` is present in a terminal command, the extension doesn't auto-`cd` anymore + - Normally the extension runs `cd ; ` or similar ### Development changes - Added `semver` as dependency in preparation of `FS_NOTIFY_ERRORS` flag diff --git a/src/pseudoTerminal.ts b/src/pseudoTerminal.ts index 077949f..ec77621 100644 --- a/src/pseudoTerminal.ts +++ b/src/pseudoTerminal.ts @@ -193,20 +193,25 @@ export async function createTerminal(options: TerminalOptions): Promise(cb => client.exec(cmd, { pty: pseudoTtyOptions }, cb)); if (!channel) throw new Error('Could not create remote terminal');