Skip to content

Add command for restarting the query server. #244

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
merged 4 commits into from
Feb 25, 2020

Conversation

jcreedcmu
Copy link
Contributor

Include a convenience button to show the query server log in case the
reason the user wants to restart the server is that it's acting
unexpectedly and they want to investigate why.

Fixes #243.

@github/product-docs-dsp: this adds a command CodeQL: Restart Query Server to the command palette.

@jcreedcmu jcreedcmu force-pushed the jcreed/restart-query-server branch from 8abc23f to 25ae6ed Compare February 19, 2020 13:52
Include a convenience button to show the query server log in case the
reason the user wants to restart the server is that it's acting
unexpectedly and they want to investigate why.
@jcreedcmu jcreedcmu force-pushed the jcreed/restart-query-server branch from 25ae6ed to 71898ac Compare February 19, 2020 13:59
Copy link
Contributor

@henrymercer henrymercer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This command doesn't seem to behave very well when the extension hasn't been activated. To repro, ensure the QL sidebar icon is not selected, and ensure that a .ql or .qll file is not visible. Then run "CodeQL: Restart Query Server" from the command palette. The error message "command 'codeQL.restartQueryServer' not found" will be displayed.

It's not ideal, but an easy fix for this could be adding codeQL.restartQueryServer to the extension's activationEvents.

@jcreedcmu
Copy link
Contributor Author

Yeah, no, good catch, it belongs in activationEvents.

henrymercer
henrymercer previously approved these changes Feb 25, 2020
Co-Authored-By: Henry Mercer <henry.mercer@me.com>
@jcreedcmu jcreedcmu merged commit 4eeedb6 into github:master Feb 25, 2020
@jcreedcmu jcreedcmu deleted the jcreed/restart-query-server branch February 25, 2020 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow restarting the query server manually
2 participants