Skip to content

Commit

Permalink
Don't hide the file status when focusing on output panel. (clangd#30)
Browse files Browse the repository at this point in the history
Don't hide the file status when focusing on output panel.
  • Loading branch information
hokein authored May 18, 2020

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent c7f4a1b commit 3132e53
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/file-status.ts
Original file line number Diff line number Diff line change
@@ -32,8 +32,13 @@ class FileStatus {
}

updateStatus() {
const path = vscode.window.activeTextEditor.document.fileName;
const status = this.statuses.get(path);
const activeDoc = vscode.window.activeTextEditor.document;
// Work around https://github.com/microsoft/vscode/issues/58869
// Don't hide the status when activeTextEditor is output panel.
// This aligns with the behavior of other panels, e.g. problems.
if (activeDoc.uri.scheme == 'output')
return;
const status = this.statuses.get(activeDoc.fileName);
if (!status) {
this.statusBarItem.hide();
return;

0 comments on commit 3132e53

Please sign in to comment.