[explorer]: Badge count for dirty editors#8316
[explorer]: Badge count for dirty editors#8316vince-fugnitto merged 1 commit intoeclipse-theia:masterfrom
Conversation
vince-fugnitto
left a comment
There was a problem hiding this comment.
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
autoSaveon 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.
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
|
@vince-fugnitto could you test and merge please? |
vince-fugnitto
left a comment
There was a problem hiding this comment.
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