-
Notifications
You must be signed in to change notification settings - Fork 53
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
Introduce ruff.printDebugInformation
command
#495
Conversation
…1831) ## Summary Closes #11715. Introduces a new command, `ruff.printDebugInformation`. This will print useful information about the status of the server to `stderr`. Right now, the information shown by this command includes: * The path to the server executable * The version of the executable * The text encoding being used * The number of open documents and workspaces * A list of registered configuration files * The capabilities of the client ## Test Plan First, checkout and use [the corresponding `ruff-vscode` PR](astral-sh/ruff-vscode#495). Running the `Print debug information` command in VS Code should show something like the following in the Output channel: <img width="991" alt="Screenshot 2024-06-11 at 11 41 46 AM" src="https://github.com/astral-sh/ruff/assets/19577865/ab93c009-bb7b-4291-b057-d44fdc6f9f86">
I've updated the command handler to ignore the command when we're using |
// let configuration = getConfiguration(serverId) as ISettings; | ||
|
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.
Is this a leftover? ;)
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.
Good catch, I'll remove that
Summary
Introduces a command to print debug information. It should look like this in the Output window:
Test Plan
See astral-sh/ruff#11831 for testing information.