fix(language_server): fail gracefully when tsgolint executable not found#15436
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 adds error handling for type-aware linting initialization with a fallback mechanism. When building a LintRunner with type-aware linting fails, the code now gracefully falls back to non-type-aware linting instead of panicking.
- Added error handling wrapper around
LintRunnerBuilder::build()withmatchexpression - Implemented fallback logic that recreates the runner without type-aware linting on failure
- Added
warnlog import to report initialization failures
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Sysix
left a comment
There was a problem hiding this comment.
The tsConfigPath configuration should still be applied. (see comment)
Not sure how a test for this scenario would look like. 🤔
9fb8b54 to
7f74628
Compare
7f74628 to
21f5351
Compare
Merge activity
|
|
@camc314 graphite does not like me :( can you try to start :D? |
21f5351 to
ecf2f7b
Compare

fixes #15421