diff options
author | Mathias Fußenegger <mfussenegger@users.noreply.github.com> | 2023-03-11 14:50:14 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-11 14:50:14 +0100 |
commit | 23dc2a59b6e13b0dbab47c6c64ac5a55095b258b (patch) | |
tree | 13783c87ded36d93d8fb5d8027fb7af91172dc16 /test | |
parent | 865d8d4720ca72de1c385773ca4c597f3642874c (diff) | |
download | rneovim-23dc2a59b6e13b0dbab47c6c64ac5a55095b258b.tar.gz rneovim-23dc2a59b6e13b0dbab47c6c64ac5a55095b258b.tar.bz2 rneovim-23dc2a59b6e13b0dbab47c6c64ac5a55095b258b.zip |
fix(lsp): send didClose on buffer rename (#22623)
Subset of https://github.com/neovim/neovim/pull/22407 that was reverted
in https://github.com/neovim/neovim/pull/22604
If a buffer is renamed sending `didClose` for the old buffer helps
ensure the language server doesn't keep a stale document in memory.
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/fixtures/fake-lsp-server.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/functional/fixtures/fake-lsp-server.lua b/test/functional/fixtures/fake-lsp-server.lua index 5fb86d029d..001cd5770a 100644 --- a/test/functional/fixtures/fake-lsp-server.lua +++ b/test/functional/fixtures/fake-lsp-server.lua @@ -272,6 +272,7 @@ function tests.text_document_save_did_open() end; body = function() notify('start') + expect_notification('textDocument/didClose') expect_notification('textDocument/didOpen') expect_notification('textDocument/didSave') notify('shutdown') |