summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-06-29 14:26:14 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-06-29 14:26:14 +0800
commitc8a7122ca9a1391ac09d05cc98762f1c73eb2712 (patch)
treef8d9f879b5a3b394af3ba9a19d889674fe14de04
parent57eeaa434ac78ab4609b08ac27727cecd16f254c (diff)
downloadlua-language-server-c8a7122ca9a1391ac09d05cc98762f1c73eb2712.zip
fix #1249
-rw-r--r--changelog.md1
-rw-r--r--script/core/diagnostics/codestyle-check.lua2
2 files changed, 2 insertions, 1 deletions
diff --git a/changelog.md b/changelog.md
index 0d25a274..7f504000 100644
--- a/changelog.md
+++ b/changelog.md
@@ -48,6 +48,7 @@
* `FIX` [#1228](https://github.com/sumneko/lua-language-server/issues/1228)
* `FIX` [#1229](https://github.com/sumneko/lua-language-server/issues/1229)
* `FIX` [#1242](https://github.com/sumneko/lua-language-server/issues/1242)
+* `FIX` [#1249](https://github.com/sumneko/lua-language-server/issues/1249)
## 3.3.1
`2022-6-17`
diff --git a/script/core/diagnostics/codestyle-check.lua b/script/core/diagnostics/codestyle-check.lua
index 34d55ee2..25603b4b 100644
--- a/script/core/diagnostics/codestyle-check.lua
+++ b/script/core/diagnostics/codestyle-check.lua
@@ -7,7 +7,7 @@ local pformatting = require 'provider.formatting'
---@async
return function(uri, callback)
- local text = files.getText(uri)
+ local text = files.getOriginText(uri)
if not text then
return
end