Open DavidBal opened 1 month ago
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 🤔
Hi,
i would like to generate a custome context menue on Item of Tree.
Is this what you are looking for? https://code.visualstudio.com/api/extension-guides/webview#context-menus
Hi, i would like to generate a custome context menue on Item of Tree.
Is this what you are looking for? https://code.visualstudio.com/api/extension-guides/webview#context-menus
Yes, but i see no way to place the "data-vscode-context" on the element via the provided api.
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 🤔
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