Skip to content
This repository has been archived by the owner on Dec 13, 2018. It is now read-only.

Diagnostics automatic show/hide doesn't work for current file #124

Closed
Arcanemagus opened this issue Nov 21, 2017 · 4 comments
Closed

Diagnostics automatic show/hide doesn't work for current file #124

Arcanemagus opened this issue Nov 21, 2017 · 4 comments

Comments

@Arcanemagus
Copy link
Contributor

Description

When the mode for the diagnostics panel is set to Current File Only and the current file has no diagnostic messages but other files in the project do, the panel doesn't automatically hide.

Expected Behavior

"Automatically show and hide diagnostics panel" should respect the "Current File Only" setting and hide itself when the current file has no messages.

Actual Behavior

"Automatically show and hide diagnostics panel" only counts the total message counts, meaning when other files in the project have messages it stays visible.

Versions

  • Atom: v1.23.0-beta1
  • Client OS: Windows 10 x64
  • atom-ide-ui: v0.6.0
@hansonw hansonw assigned hansonw and unassigned hansonw Nov 30, 2017
@pelmers
Copy link
Contributor

pelmers commented Nov 30, 2017

Thanks for posting the issue, when I added the option I wasn't sure whether to have it respect the file/text filters and decided to wait for feedback to appear.

But after using it for some time I agree that it would be more useful if it shows/hides based on all the diagnostics filters.

@matthewwithanm
Copy link
Contributor

@pelmers @captbaritone was talking about this the other day…i don't agree that we should use all the filters. the text filter is definitely something you're likely to pass through no-message states with. the type filter is a bit more of a toss-up (i think @captbaritone and i disagreed about it?), but imo that's more of an ephemeral one too. in other words, i think that only the scope one (file/project) should be taken into account (:

@Arcanemagus
Copy link
Contributor Author

The text filter I would say definitely wouldn't be something to use to determine this.

The type filter is... interesting. Personally I think I'd say it shouldn't be used, but I know there are a lot of people out there that want the ability to only deal with errors and ignore everything else, so they might want that functionality.

hansonw pushed a commit that referenced this issue Dec 13, 2017
Summary:
Fixes github atom-ide-ui issue #124

Changelog: Diagnostics "auto-visibility" setting respects "Current file only" filter.

Reviewed By: matthewwithanm

Differential Revision: D6499949

fbshipit-source-id: 07c14e6994217bceecf6f81af33f38eb3dec0f47
@hansonw
Copy link
Contributor

hansonw commented Dec 13, 2017

Will be fixed in the (upcoming) release.

@hansonw hansonw closed this as completed Dec 13, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants