I use spacemacs with rust layer (lsp-rust-analyzer backend). When I made syntax error, the error highlight appears after a small delay. Then I correct it, the old code action and error highlight sometimes still there, event when no error at current buffer.
I currently deal with it by run command save-buffer to trigger, and lsp doing something trigger the syntax checking again and the code action slowly disappears, annoyingly.
Could you guide me how to change the interval of checking syntax of rust and lsp? Or make a command to trigger the checking syntax manually?