helix/helix-lsp/src
Pascal Kuthe 87a720c3a1
make path changes LSP spec conform (#8949)
Currently, helix implements operations which change the paths of files
incorrectly and inconsistently. This PR ensures that we do the following
whenever a buffer is renamed (`:move` and workspace edits)

* always send did_open/did_close notifications
* send will_rename/did_rename requests correctly
  * send them to all LSP servers not just those that are active for a
    buffer
  * also send these requests for paths that are not yet open in a buffer (if
    triggered from workspace edit).
  * only send these if the server registered interests in the path
* autodetect language, indent, line ending, ..

This PR also centralizes the infrastructure for path setting and
therefore `:w <path>` benefits from similar fixed (but without didRename)
2024-01-29 01:34:45 +09:00
..
client.rs make path changes LSP spec conform (#8949) 2024-01-29 01:34:45 +09:00
file_event.rs Drop mut from variable to silence linter (#7704) 2023-07-22 23:31:24 +09:00
file_operations.rs make path changes LSP spec conform (#8949) 2024-01-29 01:34:45 +09:00
jsonrpc.rs LSP: Add request ID to request timeout message (#6010) 2023-02-16 10:16:25 +09:00
lib.rs make path changes LSP spec conform (#8949) 2024-01-29 01:34:45 +09:00
snippet.rs Fix typos (#6643) 2023-04-07 23:10:38 +08:00
transport.rs Exit a language server if it sends a message with invalid json (#9332) 2024-01-17 15:49:25 +01:00