summaryrefslogtreecommitdiff
path: root/script
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 /script
parent57eeaa434ac78ab4609b08ac27727cecd16f254c (diff)
downloadlua-language-server-c8a7122ca9a1391ac09d05cc98762f1c73eb2712.zip
fix #1249
Diffstat (limited to 'script')
-rw-r--r--script/core/diagnostics/codestyle-check.lua2
1 files changed, 1 insertions, 1 deletions
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