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

Ability to edit the label in a treeview #117502

Closed
gplumb opened this issue Feb 23, 2021 · 2 comments
Closed

Ability to edit the label in a treeview #117502

gplumb opened this issue Feb 23, 2021 · 2 comments
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s)

Comments

@gplumb
Copy link

gplumb commented Feb 23, 2021

As a vscode extension author, I'd like to be able to specify if a vscode.TreeItem can be renamed and for the treeview control to support this on "selection | F2" in the same manner as nodes in the explorer treeview. The option to do this wholesale at tree level would be welcome, but for the ultimate flexibility (and the particular use-cases I have in mind), being able to independently dictate which node can be renamed at vscode.TreeItem level is an important requirement to capture.

TreeviewRename

I appreciate that the model here is a PULL model (by design), but this functionality doesn't have to violate that. By raising an event against the TreeViewProvider that provides the node identifier, along with it's old and new label values, there would be enough flexibility for developers to reflect changes in any underlying datatypes or systems.

@alexr00
Copy link
Member

alexr00 commented Feb 24, 2021

Feature request here is to support an input box in extension trees. Duplicate of #97190

@alexr00 alexr00 added the *duplicate Issue identified as a duplicate of another issue(s) label Feb 24, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Apr 10, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s)
Projects
None yet
Development

No branches or pull requests

4 participants
@joaomoreno @gplumb @alexr00 and others