From 88053a05fe4ba909e3d3a619dd4a1516099227a8 Mon Sep 17 00:00:00 2001 From: Yan Zhang Date: Fri, 24 Nov 2017 16:27:24 +0800 Subject: [PATCH] try cd for unknown terminal --- src/vscodeUI.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/vscodeUI.ts b/src/vscodeUI.ts index a736eae..1ec6f31 100644 --- a/src/vscodeUI.ts +++ b/src/vscodeUI.ts @@ -26,6 +26,8 @@ export class VSCodeUI { return `cd "${cwd}"`; // PowerShell } else if (windowsShell && windowsShell.indexOf("cmd.exe") > -1) { return `cd /d "${cwd}"`; // CMD + } else { + return `cd "${cwd}"`; // Unknown, try using common one. } } else { return `cd "${cwd}"`;