prelude icon indicating copy to clipboard operation
prelude copied to clipboard

Fix: autocomplete hang in rust-mode

Open jmpage opened this issue 1 year ago • 0 comments

Related to #1372, it appears that super-save doesn't play nicely with LSP features in rust-mode either.

My particular issue occurs when using autocomplete in rust. Typing "B" in the following snippet:

Example(B)

Results in emacs hanging as it saves the buffer while LSP mode is attempting to display autocompletions. This seems to cause an infinite loop.

I narrowed the issue down to super-save and confirmed that turning it off resolves the issue.

This PR re-implements the fix from #1373 by turning off super-save for rust-mode.


Before submitting the PR make sure the following things have been done (and denote this by checking the relevant checkboxes):

  • [x] The commits are consistent with our contribution guidelines
  • [x] You've updated the changelog (if adding/changing user-visible functionality)
  • [x] You've updated the user manual (if adding/changing user-visible functionality like modules, commands, configuration options, etc)

Thanks!

jmpage avatar Dec 16 '23 22:12 jmpage