Don't remove TS version info when clicking in the debug or output panel fixes #16478

This commit is contained in:
Matt Bierner
2017-03-06 16:44:44 -08:00
parent 4e433c9551
commit 379da6bc8d

View File

@@ -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();
}