Skip to content

Add LSP flychecks #416

@onbjerg

Description

@onbjerg

Describe the feature

LSPs usually have support for flychecks, which are commands that are run on e.g. save. For rust-analyzer, this would be either cargo check or cargo clippy, which add their own diagnostics on top of rust-analyzer's own by sending diagnostics over stdout in a JSON format.

We should add flychecks to the LSP too with the following features:

  • Multiple flychecks should be allowed, which are invoked on save.
  • If we detect that forge lint is available, we should default the flycheck to forge lint.

Blocked by #417

Additional context

No response

Metadata

Metadata

Assignees

Labels

A-lspArea: LSPC-enhancementCategory: an issue proposing an enhancement or a PR with oneS-blockedStatus: this cannot more forward until something else changes

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions