-
Notifications
You must be signed in to change notification settings - Fork 111
CHE-11443 Implement the containers plugin #13
Conversation
|
||
} | ||
|
||
export class TestDataProvider implements theia.TreeDataProvider<string> { |
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.
@olexii4 why it's called TestDataProvider?
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.
Good catch. Just forgot to rename. I will fix it.
|
||
export class TestDataProvider implements theia.TreeDataProvider<string> { | ||
|
||
private onDidChangeTreeDataEmitter: theia.EventEmitter<any> = new theia.EventEmitter<any>(); |
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.
EventEmitter has dispose method, I think it could be utilized: https://github.com/theia-ide/theia/blob/master/packages/plugin/src/theia.d.ts#L1722.
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.
done
export class TestDataProvider implements theia.TreeDataProvider<string> { | ||
|
||
private onDidChangeTreeDataEmitter: theia.EventEmitter<any> = new theia.EventEmitter<any>(); | ||
readonly onDidChangeTreeData: theia.Event<any> = this.onDidChangeTreeDataEmitter.event; |
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.
Maybe void
should be better instead of any
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.
done
Signed-off-by: Oleksii Orel <oorel@redhat.com>
return uniqueId; | ||
} | ||
|
||
dispose(): void { |
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.
You could return Disposible here and simplify code upper.
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 don't think so
UI improvements:
WDYT? |
Signed-off-by: Oleksii Orel <oorel@redhat.com>
Signed-off-by: Oleksii Orel <oorel@redhat.com>
@olexii4 : Thanks for adding the screenshots to the PR. Quick feedbacks:
|
|
On 2. Is it an API gap or is it something that just does not exist? |
@slemeur |
This is really cool! One comment: we should replace |
Implement the containers plugin
fixes eclipse-che/che#11443