Integration test for didChange.
@@ -54,3 +54,15 @@ def test_textDocument_rename(nvim):
def test_textDocument_documentSymbol(nvim):
nvim.call("LanguageClient_textDocument_documentSymbol")
+
+
+def test_textDocument_didChange(nvim):
+ nvim.call("setline", 12, "fn greet_again() -> i64 { 7 }")
+ nvim.call("setline", 10, " println!(\"{}\", greet_again());")
+ nvim.call("LanguageClient_textDocument_didChange")
+ time.sleep(1)
+ nvim.command("normal! 10G23|")
+ nvim.call("LanguageClient_textDocument_definition")
+ time.sleep(0.1)
+ _, line, character, _ = nvim.call("getpos", ".")
+ assert (line, character) == (12, 4)
