summaryrefslogtreecommitdiff
path: root/script/provider
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-03-09 11:53:02 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-03-09 11:53:02 +0800
commit13397ffa3c6e5e4b59fb28ebe552cb4ca11efcc7 (patch)
treef24592fef637a6e18b50426568e46b01de619992 /script/provider
parent7216de291958147471f28d34f46104fea4250b8d (diff)
downloadlua-language-server-13397ffa3c6e5e4b59fb28ebe552cb4ca11efcc7.zip
fix
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 bf9dd9a0..0bdfb7fb 100644
--- a/script/provider/provider.lua
+++ b/script/provider/provider.lua
@@ -281,6 +281,7 @@ proto.on('textDocument/didChange', function (params)
end
files.setRawText(uri, text)
end
+ files.setRawText(uri, '')
files.setText(uri, text, true)
end)