-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[explorer]: Badge count for dirty editors #8316
[explorer]: Badge count for dirty editors #8316
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes work correctly:
- the number of dirty editors is correctly displayed
- the number of dirty editors are updated when the dirty state is changed, editors are closed
- the display works with
autoSave
on with a delay
I understand that NavigatorTabBarDecorator
had to implement FrontendApplicationContribution
since ApplicationShell
could not be injected and used.
ecdda15
to
f23d916
Compare
19b7f5a
to
f20602b
Compare
|
||
protected readonly emitter = new Emitter<void>(); | ||
private readonly toDispose = new DisposableCollection(); | ||
private readonly toDisposeOnDirtyChanged = new Map<Widget, Disposable>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please don't hold a reference to a widget, but its id
Fixes: eclipse-theia#8296 Adds a badge count for dirty editors on the explorer tab icon. Signed-off-by: Anas Shahid <muhammad.shahid@ericsson.com>
f20602b
to
35f25a9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code-wise looks good to me
@vince-fugnitto could you test and merge please? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I verified the latest changes and they work well, I'll merge.
@Anasshahidd21, how can I disable this feature without code modifications? Is there a preference for this? |
@kittaakos, in the current state of main, it is only possible to disable this feature with code modifications and not by any preference. |
Thank you! Here is the follow-up: #8709 |
What it does
Fixes: #8296
Adds a badge count for dirty editors on the explorer tab icon.
Signed-off-by: Anas Shahid muhammad.shahid@ericsson.com
How to test
Review checklist
Reminder for reviewers