fix(lang-server): improve logging in failure case for tsgolint#15299
Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
There was a problem hiding this comment.
Pull Request Overview
This PR updates error handling for type-aware linting by propagating errors instead of silently ignoring them. The run_source method now returns a Result type, allowing errors from type-aware linting to be properly handled.
- Changed
run_sourcereturn type fromVec<Message>toResult<Vec<Message>, String> - Updated error handling to use the
?operator for propagating errors - Added error logging when type-aware linting fails
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| crates/oxc_linter/src/lint_runner.rs | Changed run_source to return Result and propagate type-aware linting errors using ? operator |
| crates/oxc_language_server/src/linter/isolated_lint_handler.rs | Updated to handle the new Result return type with pattern matching and error logging |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Merge activity
|
CodSpeed Performance ReportMerging #15299 will not alter performanceComparing Summary
Footnotes
|
2cdb827 to
1930e80
Compare
1930e80 to
3c8d3a7
Compare

No description provided.