-
Notifications
You must be signed in to change notification settings - Fork 48
fix-163 Studio Context Actions command errored if no file open #164
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
Merged
isc-rsingh
merged 7 commits into
intersystems-community:master
from
gjsjohnmurray:fix-163
Jul 1, 2020
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
e6b985b
fix-163 Studio Context Actions command errored if no file open
gjsjohnmurray 0b37043
Various improvements and fixes to Studio hooks implementation
gjsjohnmurray 972f808
Piggyback Studio main menu on existing Server menu
gjsjohnmurray 6837229
Merge branch 'master' into fix-163
gjsjohnmurray bf89b84
Fix some CI linting failures
gjsjohnmurray cec9062
Replicate Studio's separate menus for Source Control vs other options
gjsjohnmurray cc8f338
Support menu separators and improve types
gjsjohnmurray File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gjsjohnmurray I don't like "sourceControl" here - maybe call it serverCommands.studioExtension? (The "studio extension" framework is more general than just source control.)
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@timleavitt with this PR I have implemented separate menus for the Source Control commands and the rest, to replicate how Studio behaves. This command brings up the %SourceMenu menu items, which Studio displays under a menu named "Source Control". The command
vscode-objectscript.serverCommands.other
brings up the items from all other menus for which context=0.vscode-objectscript.serverCommands.contextSourceControl
shows the %SourceContext menu's items, andvscode-objectscript.serverCommands.contextOther
shows all the other ones for which context=1If you'd like to see this in action you can always get the vsix artifact that our CI pipeline creates whenever I push stuff to this PR:
Install this in your VS Code and give it a try. I'll be glad to have more of your feedback.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gjsjohnmurray thanks - that makes more sense now. I'll try it out when I get a chance.