From 379da6bc8d8511eae3f9a75ebd072d579ece9ee4 Mon Sep 17 00:00:00 2001 From: Matt Bierner Date: Mon, 6 Mar 2017 16:44:44 -0800 Subject: [PATCH] Don't remove TS version info when clicking in the debug or output panel fixes #16478 --- extensions/typescript/src/utils/versionStatus.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/extensions/typescript/src/utils/versionStatus.ts b/extensions/typescript/src/utils/versionStatus.ts index 7926cd12797..ae86fea0950 100644 --- a/extensions/typescript/src/utils/versionStatus.ts +++ b/extensions/typescript/src/utils/versionStatus.ts @@ -17,11 +17,19 @@ export function showHideStatus() { versionBarEntry.hide(); return; } + let doc = vscode.window.activeTextEditor.document; if (vscode.languages.match('typescript', doc) || vscode.languages.match('typescriptreact', doc)) { versionBarEntry.show(); return; } + + if (!vscode.window.activeTextEditor.viewColumn) { + // viewColumn is undefined for the debug/output panel, but we still want + // to show the version info + return; + } + versionBarEntry.hide(); }