summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-07-26 16:36:02 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-07-26 16:36:02 +0800
commitddfa207b98b478c0653213b4c24b7d9a7de75748 (patch)
tree9d42ae00cc5d10dd408d5b88f6f611c9acc17659
parentdf278295f7287ed5b140956ccb89cda4c8ba2bc3 (diff)
downloadlua-language-server-ddfa207b98b478c0653213b4c24b7d9a7de75748.zip
fix #618
-rw-r--r--changelog.md1
-rw-r--r--script/provider/provider.lua2
2 files changed, 2 insertions, 1 deletions
diff --git a/changelog.md b/changelog.md
index f6471250..bcdaecfa 100644
--- a/changelog.md
+++ b/changelog.md
@@ -4,6 +4,7 @@
* `NEW` config supports prop
* `FIX` [#612](https://github.com/sumneko/lua-language-server/issues/612)
* `FIX` [#613](https://github.com/sumneko/lua-language-server/issues/613)
+* `FIX` [#618](https://github.com/sumneko/lua-language-server/issues/618)
* `FIX` [#620](https://github.com/sumneko/lua-language-server/issues/620)
## 2.3.2
diff --git a/script/provider/provider.lua b/script/provider/provider.lua
index 61e43eba..5cb0151e 100644
--- a/script/provider/provider.lua
+++ b/script/provider/provider.lua
@@ -212,8 +212,8 @@ proto.on('textDocument/didOpen', function (params)
local uri = doc.uri
local text = doc.text
log.debug('didOpen', uri)
- files.open(uri)
files.setText(uri, text, true)
+ files.open(uri)
end)
proto.on('textDocument/didClose', function (params)