rust-analyzer/editors
Chayim Refael Friedman 779a7cb0e3 Automatically add semicolon when completing unit-returning functions
But provide a config to suppress that.

I didn't check whether we are in statement expression position, because this is hard in completion (due to the natural incompleteness of source code when completion is invoked), and anyway using function returning unit as an argument to something seems... dubious.
2024-09-08 23:41:16 +03:00
..
code Automatically add semicolon when completing unit-returning functions 2024-09-08 23:41:16 +03:00