Something went wrong on our end. Please try again.
Created by: philipp-spiess
Fixes #37811 (closed)
I found out why the default editor does not show any popup menu options for our Sourcegraph window. Instead of the default EditorPopupMenu
, the group created for the editor that we create is called BasicEditorPopupMenu
which by default does not have any items added.
We think it's best to implement two custom actions:
we can not reuse our existing implementation since that relies on the file being open inside the IDE to get the context. However, we do have more context available here since we have access to the PreviewContent
so I've added the remaining bit (commit SHA) and build a blob URI instead of using the editor endpoint.
https://user-images.githubusercontent.com/458591/176210427-ee652314-96c6-4f2f-8670-36beec29f77d.mov
After recording the video I also added the "Open File in Editor" option that I tested locally:
Check out the client app preview documentation to learn more.