summaryrefslogtreecommitdiff
path: root/script/provider
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-03-09 11:12:23 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-03-09 11:12:23 +0800
commit0748f983c77d6e133959891823ee1c338d3deee9 (patch)
tree06a437ffaafecbefbda3087432f13fc9d18be3f9 /script/provider
parent9881e7cd087deb3cdba2eae2071fcfd955d27477 (diff)
downloadlua-language-server-0748f983c77d6e133959891823ee1c338d3deee9.zip
improve didChange
Diffstat (limited to 'script/provider')
-rw-r--r--script/provider/provider.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/script/provider/provider.lua b/script/provider/provider.lua
index 10b5fc8b..bf9dd9a0 100644
--- a/script/provider/provider.lua
+++ b/script/provider/provider.lua
@@ -279,6 +279,7 @@ proto.on('textDocument/didChange', function (params)
else
text = change.text
end
+ files.setRawText(uri, text)
end
files.setText(uri, text, true)
end)