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

Test TreeView events #50580

Closed
2 tasks done
sandy081 opened this issue May 28, 2018 · 0 comments
Closed
2 tasks done

Test TreeView events #50580

sandy081 opened this issue May 28, 2018 · 0 comments

Comments

@sandy081
Copy link
Member

sandy081 commented May 28, 2018

Refs: #49511 #30535

Complexity: 2

Write an extension that contributes a tree view to the Explorer. Refer to documentation and [samples] (https://github.com/Microsoft/vscode-extension-samples/tree/master/tree-view-sample).

Now you can listen to following Treeview events

/**
 * Event that is fired when an element is expanded
 */
readonly onDidExpandElement: Event<T>;

/**
 * Event that is fired when an element is collapsed
 */
readonly onDidCollapseElement: Event<T>;

/**
 * Currently selected elements.
 */
readonly selection: ReadonlyArray<T>;

Test that above events are getting triggered correctly when an element is expanded or collapsed or selected. Also verify that correct data is passed to the call back.

@RMacfarlane RMacfarlane added this to the May 2018 milestone May 29, 2018
@chrmarti chrmarti assigned jrieken and rebornix and unassigned rebornix and sbatten May 29, 2018
@jrieken jrieken removed their assignment May 29, 2018
@rebornix rebornix removed their assignment May 29, 2018
@vscodebot vscodebot bot locked and limited conversation to collaborators Jul 13, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants