Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[markers] fix false positive problem tabbar decorators #6132

Merged
merged 1 commit into from Sep 9, 2019

Conversation

vince-fugnitto
Copy link
Member

What it does

Fixes #6109

  • fixes an issue where problem tabbar decorators wrongly display false positives
  • with the change, only error and warning decorators are displayed in the tabbar which
    is consistent with the problem decorators present in the explorer
  • with the change, only one decorator (max severity) is ever decorated (no need for unnecessary rendering)

How to test

  1. open the application with a workspace present
  2. open an arbitrary file and produce errors and warnings
  3. the highest severity should be displayed in the tabbar as a decoration (error and warning only)
  4. the decoration should match that of the explorer

Review checklist

Reminder for reviewers

Signed-off-by: Vincent Fugnitto vincent.fugnitto@ericsson.com

Fixes #6109

- fixes an issue where problem tabbar decorators wrongly display false positives
- with the change, only `error` and `warning` decorators are displayed in the tabbar which
is consistent with the problem decorators present in the explorer
- with the change, only one decorator (max severity) is ever decorated (no need for unnecessary rendering)

Signed-off-by: Vincent Fugnitto <vincent.fugnitto@ericsson.com>
@vince-fugnitto vince-fugnitto added bug bugs found in the application problems issues related to the problems widget labels Sep 6, 2019
@vince-fugnitto vince-fugnitto self-assigned this Sep 6, 2019
@akosyakov
Copy link
Member

@lmcbout could you please finish the review by testing, code-wise it looks to me, thank you!

@lmcbout
Copy link
Contributor

lmcbout commented Sep 9, 2019

@akosyakov looking at it right now.

@lmcbout
Copy link
Contributor

lmcbout commented Sep 9, 2019

I notice something, but code wise and performance, this PR is a good improvement.

Steps:

  1. have the problems-view open at all times
  2. open 2 files with hints / warnings -
    quick-open-task.ts (4), and task-problem-pattern-registry (1)
  3. add an error in quick-open-task.ts (ex: const jj=9)
  4. it shows the error in the file quick-open-task.ts 👍
  5. if you run in debug mode with a stop in problem-tabbar-decorator.ts ~ line 64, you notice that both open files are decorated each time there is a modification, not only the modified file. I think for an improvement, if we just look for the modified file to set the decorator, it would improve the performance.

@vince-fugnitto
Copy link
Member Author

@lmcbout does the PR work correctly and fix the bug? I'm not attempting to address the performance as part of the PR but rather I attempted to fix the bug and be as optimized as I can be.

I believe in general the performance should be handled by #6146

Copy link
Contributor

@lmcbout lmcbout left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works nicely
Performance in other issue is fine

@vince-fugnitto
Copy link
Member Author

Works nicely
Performance in other issue is fine

Thank you for the review! 👍

@vince-fugnitto vince-fugnitto merged commit 6fba326 into master Sep 9, 2019
@vince-fugnitto vince-fugnitto deleted the vf/GH-6109 branch September 9, 2019 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug bugs found in the application problems issues related to the problems widget
Projects
None yet
Development

Successfully merging this pull request may close these issues.

false positive error tabbar icon
3 participants