feat(language_server): add typeAware option#13146
Conversation
typeAware optiontypeAware option
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. |
632538a to
fbd00de
Compare
CodSpeed Instrumentation Performance ReportMerging #13146 will not alter performanceComparing Summary
Footnotes |
1488a7e to
a46e64e
Compare
afc7d3c to
17885e4
Compare
a46e64e to
c25f0e7
Compare
17885e4 to
0f8e4b1
Compare
0f8e4b1 to
700b412
Compare
c25f0e7 to
646bda4
Compare
646bda4 to
78e23e3
Compare
78e23e3 to
7be0a93
Compare
There was a problem hiding this comment.
Pull Request Overview
Adds TypeScript type-aware linting support to the language server by integrating TsGoLint capabilities alongside the existing Oxc linter. The typeAware option enables clients to use TypeScript's type system for more sophisticated linting rules.
- Introduces new
typeAwareconfiguration option in language server options - Adds
TsgoLinterwrapper to integrate TsGoLint with the language server - Implements streaming diagnostic processing for better performance with TsGoLint
Reviewed Changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
crates/oxc_linter/src/tsgolint.rs |
Adds lint_source method for processing single files with streaming diagnostics |
crates/oxc_language_server/src/worker.rs |
Updates linting conditions to restrict type-aware linting to OnSave only |
crates/oxc_language_server/src/options.rs |
Adds typeAware configuration option parsing and testing |
crates/oxc_language_server/src/linter/tsgo_linter.rs |
New wrapper for TsGoLint integration with file filtering logic |
crates/oxc_language_server/src/linter/server_linter.rs |
Integrates TsgoLinter with existing ServerLinter |
crates/oxc_language_server/README.md |
Documents the new typeAware configuration option |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
3c82dcc to
b296328
Compare
...xc_language_server/src/snapshots/fixtures_linter_tsgolint@no-floating-promises_index.ts.snap
Show resolved
Hide resolved
|
We will probably end up adding |
You mean enabling EDIT: oh I think you mean |
baa1e45 to
718b34e
Compare
718b34e to
5be8bec
Compare
|
@Boshen shall we merge this, and then remove it at a later date once |
db657c5 to
b911aff
Compare
I could not identify a problem with the language server. The |
2c3bc1b to
8629aec
Compare
|
@Boshen the request for this feature is high. See the linked issues in #13147
|
Merge activity
|
8629aec to
faee1a4
Compare

related oxc-project/oxc-zed#18