Include document specific debug info#16215
Merged
dhruvmanila merged 3 commits intomainfrom Feb 18, 2025
Merged
Conversation
c700a50 to
8abfba3
Compare
cd69876 to
3346e4f
Compare
Contributor
|
3346e4f to
62ff785
Compare
dhruvmanila
commented
Feb 18, 2025
Comment on lines
43
to
48
| let argument: DebugCommandArgument = params.arguments.into_iter().next().map_or_else( | ||
| || Ok(DebugCommandArgument::default()), | ||
| |value| serde_json::from_value(value).with_failure_code(ErrorCode::InvalidParams), | ||
| )?; | ||
| let output = debug_information(session, argument.uri) | ||
| .with_failure_code(ErrorCode::InternalError)?; |
Member
Author
There was a problem hiding this comment.
Currently, we only look at the first argument but a potential new VS Code command could be to look at all opened documents which would require passing multiple arguments. But, I'm going to leave this for now.
MichaReiser
approved these changes
Feb 18, 2025
Member
MichaReiser
left a comment
There was a problem hiding this comment.
This is great and i also forgot about it. At least, it never came to my mind when asking users for debugging information which is a shame.
75792db to
8408d65
Compare
Base automatically changed from
dhruv/print-debug-info-return-string
to
main
February 18, 2025 09:46
8408d65 to
01dff16
Compare
dhruvmanila
added a commit
to astral-sh/ruff-vscode
that referenced
this pull request
Feb 18, 2025
## Summary Related to astral-sh/ruff#16215 ## Test Plan The output in astral-sh/ruff#16215 is by using this PR.
dcreager
added a commit
that referenced
this pull request
Feb 18, 2025
* main: (60 commits) [`refurb`] Manual timezone monkeypatching (`FURB162`) (#16113) [`pyupgrade`] Do not upgrade functional TypedDicts with private field names to the class-based syntax (`UP013`) (#16219) Improve docs for PYI019 (#16229) Refactor `CallOutcome` to `Result` (#16161) Fix minor punctuation errors (#16228) Include document specific debug info (#16215) Update server to return the debug info as string (#16214) [`airflow`] Group `ImportPathMoved` and `ProviderName` to avoid misusing (`AIR303`) (#16157) Fix unstable formatting of trailing end-of-line comments of parenthesized attribute values (#16187) Ignore source code actions for a notebook cell (#16154) Add FAQ entry for `source.*` code actions in Notebook (#16212) red-knot: move symbol lookups in `symbol.rs` (#16152) better error messages while loading configuration `extend`s (#15658) Format `index.css` (#16207) Improve API exposed on `ExprStringLiteral` nodes (#16192) Update Rust crate tempfile to v3.17.0 (#16202) Update cloudflare/wrangler-action action to v3.14.0 (#16203) Update NPM Development dependencies (#16199) Update Rust crate smallvec to v1.14.0 (#16201) Update Rust crate codspeed-criterion-compat to v2.8.0 (#16200) ...
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Related astral-sh/ruff-vscode#692.
Test Plan
When there's no active text document:
When there's an active text document that's been passed as param:
Replace
...at the end with the output ofruff check --show-settings path.py