Cheap clone that shares all `Arc`-wrapped state with the original. Used by LSP handlers (hover, definition, references, etc.) to move blocking sync work onto a `spawn_blocking` thread while keeping the async runtime free to process cancellations and other requests.
(&self)
| 1145 | /// blocking sync work onto a `spawn_blocking` thread while keeping |
| 1146 | /// the async runtime free to process cancellations and other requests. |
| 1147 | pub(crate) fn clone_for_blocking(&self) -> Self { |
| 1148 | self.clone_for_diagnostic_worker() |
| 1149 | } |
| 1150 | |
| 1151 | /// Return the current project configuration. |
| 1152 | /// |
no test coverage detected