From ddfa207b98b478c0653213b4c24b7d9a7de75748 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Mon, 26 Jul 2021 16:36:02 +0800 Subject: fix #618 --- changelog.md | 1 + script/provider/provider.lua | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3