-
Notifications
You must be signed in to change notification settings - Fork 31
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
How to create a context menue on a TreeItem? #205
Comments
Generally, the context item itself is kind of seperate window, then the major problem seems to be the way to listen to the right click of the items. However, #152 should definitely solve this problem, thus waiting for it would be a better choice, rather than request a feature for the deprecated tree widget 🤔 |
Is this what you are looking for? |
Yes, but i see no way to place the "data-vscode-context" on the element via the provided api.
That looks intressting, i can wait. Thanks. |
I'm not sure if it works but you can try something like this: document.querySelector('vscode-tree').shadowRoot.querySelector('ul:nth-child(2) li').dataset.vscodeContext = '{"webviewSection": "editor", "preventDefaultContextMenuItems": true}' |
Hi,
i would like to generate a custome context menue on Item of Tree.
Is there a way to archive this?
Thanks in advance!
Kind regards,
David
The text was updated successfully, but these errors were encountered: