How to use rust-analyzer
only for linting?
#20499
-
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Which lints are you referring to? rust-analyzer provides two kinds of diagnostics:
Anyway, there’s no option to disable anything but those diagnostics. |
Beta Was this translation helpful? Give feedback.
For native diagnostics, disabling other features won’t lead to a noticeable performance gain. Most of the work required for diagnostics overlaps with what rust-analyzer already does during normal operation, so memory usage won’t significantly decrease.
If your goal is to reduce memory usage at startup, you can disable rust-analyzer.cachePriming.enable. However, keep in mind that as you continue editing files, memory usage will eventually converge to a similar level regardless.