fix: don't send lsp change events when opening or closing a file
This commit is contained in:
parent
231e4ccb88
commit
f213aa5abe
1 changed files with 1 additions and 1 deletions
|
@ -1226,7 +1226,7 @@ pub const Editor = struct {
|
|||
|
||||
fn send_editor_update(self: *const Self, old_root: ?Buffer.Root, new_root: ?Buffer.Root) !void {
|
||||
_ = try self.handlers.msg(.{ "E", "update", token_from(new_root), token_from(old_root) });
|
||||
if (self.syntax) |_| if (self.file_path) |file_path|
|
||||
if (self.syntax) |_| if (self.file_path) |file_path| if (old_root != null and new_root != null)
|
||||
project_manager.did_change(file_path, self.lsp_version, token_from(new_root), token_from(old_root)) catch {};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue