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

[Feature Request] Edit context menu actions/commands (easily) #4588

Open
2 tasks done
0xboggy opened this issue Jul 6, 2024 · 0 comments
Open
2 tasks done

[Feature Request] Edit context menu actions/commands (easily) #4588

0xboggy opened this issue Jul 6, 2024 · 0 comments
Labels
feature-request Request for new features or functionality

Comments

@0xboggy
Copy link

0xboggy commented Jul 6, 2024

Context

  • This issue is not a bug report. (please use a different template for reporting a bug)
  • This issue is not a duplicate of an existing issue. (please use the search to find existing issues)

Description

I don't see any easy way to move / delete items from the context menu. I'm having issues moving 'Peek Definition' out of the Peek context submenu and into the main navigation menu. Since I only have 1 option inside the peek submenu I find it annoying to even have a submenu for it. Is there an easy way to move this into the navigation menu? Ideally it would go right under Go To Definition.

image

Edit:
I was able to get my desired result by iterating over the peek context menu items to remove the peek menu, then manually adding a new action that just triggers the peek action. There must be a better way?? The playground link shows the hack I had to do.

Monaco Editor Playground Link

https://microsoft.github.io/monaco-editor/playground.html?source=v0.50.0#XQAAAAKZBAAAAAAAAABBqQkHQ5NjdMjwa-jY7SIQ9S7DNlzs5W-mwj0fe1ZCDRFc9ws9XQE0SJE1jc2VKxhaLFIw9vEWSxW3yscw64U3RgmSaumWUF-TBOsVJ4S4FwfCDQb5-2uUHXTVAefbVSd9IzaZ_vv9VR9KugsKimARHSWlrTPOQHROITHxmAeFEs9_m3VHdSe7_Etv6WpgzlH4suqcRwO2cnFLtaZLR4F0JFm8KVkxk-4Ch5aQ5cUcW42GDEo1TLlRBA6ZuApl5HQvRce9vFBHq-nuG9Nsza8eABif3xxAynXtZ66klrxMxOOBdRgwC_p0bCI3uVg9_wpXuzaz2FQwYVXRsSY1isaTy1ClRWhGxr6BxU2PeuMmoPennuZ9024KwNVp1y5Lv1UKWmTAdleICWTVujNm5C59_tfpgDVVxRPjzDWNG61yDhHmv_rppNm8E2gGzNCokxsmpAe_QYHp9_2rbpWXWbXOODxIyvfDhTnIO0INzlfTAtJ6Wj-JCRie4998mZTQyMw1D6368CZh61DZIbqNLGjQWQ56jBRIjRXoC3dVqkTYAKjyXy_08RXlCF5LEw9wbu7G6ZyWV4y8HYQXAOqXMBsIgGcaMYwi3abgoCsnE6wLYhbzDiyv5wOgc-yxcTocpXQD_hRGFcKBDHIY6LuPJswMsnejaESXpia2du_R8_DxBfCpb-SefOod70SNIKzP99aCZ3YNTNojnxQCGqGgURjrMt17l-Z849XU-j6pEaQAf4IrAdEf_1uEutwClgWDQwJjgMxGiLEZIJLFHY_zGu1zholxLZmwc8mSibntbTTI9yIdkyqCiIwRyUBJlsEn87lBqWIwUo81oU7UmAMUo9YDgvXTR_N_eX5FhjDM-u_bc_VZjCx0IRJ-o-JblzIw7AZ9nmLpkuQI__kyeLE

Monaco Editor Playground Code

No response

@0xboggy 0xboggy added the feature-request Request for new features or functionality label Jul 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

1 participant