diff options
-rw-r--r-- | changelog.md | 1 | ||||
-rw-r--r-- | script/core/diagnostics/codestyle-check.lua | 2 |
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 |