Open ebugden opened 4 years ago
If I'm not mistaken, a VsCode extension won't be able to contribute to the main menu [1], while a Theia extensions would allow it. I think it's to keep the main menu to a small set of commands relevant to IDEs. The commands are available through CTRL+SHIFT+P and typing the command name.
If we add it now as part of the Theia extension, then when switching to VsCode extension the "Open Trace" main menu will be removed. If users would want to keep it, than Theia extension would need to be build and added there.
I wonder if we don't add it in to the main menu and have available through:
Any thoughts?
[1] https://code.visualstudio.com/api/references/contribution-points#contributes.menus.
To clarify, would adding the file menu code to a VS Code extension break the plugin for VS Code? Or would VS Code just throw an internal exception and ignore that section of the code without breaking?
@bhufmann @muddana-satish At the moment, I'm comfortable with not adding the "Open Trace" option to the file menu. It's true that it's an atypical operation for most users.
I also agree with the three alternatives suggested for opening traces (Right-click menu in file explorer, open button in trace explorer, CTRL+SHIFT+P + "Open Trace")
To clarify, would adding the file menu code to a VS Code extension break the plugin for VS Code? Or would VS Code just throw an internal exception and ignore that section of the code without breaking?
There is no API to add commands to the file menu when using VsCode as far as I know.
I also agree with the three alternatives suggested for opening traces (Right-click menu in file explorer, open button in trace explorer, CTRL+SHIFT+P + "Open Trace")
I just remembered why I even wanted an "Open Trace" option in the File menu: It's the obvious UX friendly way to open more traces if you already have one open. (Issue description updated)
Since using the File menu really would be the user's first reflex for opening additional traces, should we save this feature to be added to a more tailored for Theia version down the line? We could change the milestone on this issue.
Adding an “Open Trace” option in the File menu keeps this operation intuitive (by imitating how any file is opened).
Note: When a new trace is opened, the IDE navigates automatically to the trace viewer tab
Position in menu
Suggestion: “Open Trace” could be in a separate menu section to distinguish it from the other standard IDE open operations:
Alternative: “Open Trace” could also be further down to avoid breaking up the more standard IDE operations. This would create a bit more discontinuity in the menu list since all the “Open” and the “Save” operations would not be grouped: