-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Add Explain PostgreSQL #8878
Add Explain PostgreSQL #8878
Conversation
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.
Automated testing result: ERROR
Repo link: Explain PostgreSQL
Results help
Packages added:
- Explain PostgreSQL
Processing package "Explain PostgreSQL"
- ERROR: Binding is missing the keys {'command', 'keys'}
- File: Default (OSX).sublime-keymap
- Binding: {}
- ERROR: Binding is missing the keys {'command', 'keys'}
- File: Default (OSX).sublime-keymap
- Binding: {}
- ERROR: Binding is missing the keys {'command', 'keys'}
- File: Default (Windows).sublime-keymap
- Binding: {}
- ERROR: Binding is missing the keys {'command', 'keys'}
- File: Default (Windows).sublime-keymap
- Binding: {}
- ERROR: Binding is missing the keys {'command', 'keys'}
- File: Default (Linux).sublime-keymap
- Binding: {}
- ERROR: Binding is missing the keys {'command', 'keys'}
- File: Default (Linux).sublime-keymap
- Binding: {}
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.
Automated testing result: ERROR
Repo link: Explain PostgreSQL
Results help
Packages added:
- Explain PostgreSQL
Processing package "Explain PostgreSQL"
- ERROR: The binding ['super+alt+f'] unconditionally overrides a default binding
- File: Default (OSX).sublime-keymap
- ERROR: The binding ['super+alt+e'] unconditionally overrides a default binding
- File: Default (OSX).sublime-keymap
That looks useful 👍🏻 Some remarks:
|
@braver Thanks for you comments! Could you tell how the context menu items can be switched off ? the rest of the changes have been completed in new release 1.0.4
|
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.
Automated testing result: SUCCESS
Repo link: Explain PostgreSQL
Packages added:
- Explain PostgreSQL
Processing package "Explain PostgreSQL"
- All checks passed
Sure! In the class that defines your command, you can implement an is_visible method. In that method you can check a setting, or the current scope, etc. If you want to apply a setting only to the context menu entry, you need that to be a separate command (a different class), so you can implement the is_visible method specifically for this case. But you can of course call the same command implementation. Hope that answers your question! |
@braver Thanks for you answer |
All set 👍🏻 |
My package is Explain PostgreSQL https://github.com/MGorkov/explain-postgresql-sublime
There are no packages like it in Package Control.
It adds context menu entries, but only in sql context and their visibility is conditional.