Skip to content

Reduce payload length when oxlint --fix is not applied #120

@Sysix

Description

@Sysix

TsGoLintDiagnosticPayload contains all fixes and suggestions:
https://github.com/oxc-project/oxc/blob/163dbeaf886d38f9112eb638788a5c2e2f2bf240/crates/oxc_linter/src/tsgolint.rs#L320-L329

These are only needed when oxlint --fix is passed or the language server is accessing the binary.
ATM oxlint<->tsgolint integration is not applying the fixes,

Could tsgolint accept something similar and skip the payload when it is not needed?
I guess the computation of the fix could be skipped too.

oxlint: Skip fixes and suggestions.
oxlint --fix: Get the fix or the first suggestion.
oxc_language_server: it wants everything

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions