summaryrefslogtreecommitdiff
path: root/script/files.lua
diff options
context:
space:
mode:
authorDmytro Meleshko <dmytro.meleshko@gmail.com>2021-11-24 13:37:48 +0200
committerDmytro Meleshko <dmytro.meleshko@gmail.com>2021-11-24 13:37:48 +0200
commit41bda6cd48338a2df2b7baeeb53a987e4f803fbb (patch)
tree61761dd5f99809f54bfd38b06ad7cb2bdaef3141 /script/files.lua
parent1319f05cd4de50d7b01a297f39c4ad5a839ff7be (diff)
downloadlua-language-server-41bda6cd48338a2df2b7baeeb53a987e4f803fbb.zip
ensure that cachedRows of files are refreshed after didOpen
Diffstat (limited to 'script/files.lua')
-rw-r--r--script/files.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/script/files.lua b/script/files.lua
index 4d649b29..da263dad 100644
--- a/script/files.lua
+++ b/script/files.lua
@@ -150,6 +150,7 @@ function m.setText(uri, text, isTrust, instance)
file.text = newText
file.trusted = isTrust
file.originText = text
+ file.rows = nil
file.words = nil
m.astMap[uri] = nil
file.cache = {}