diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-02-18 16:39:30 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-02-18 16:39:30 +0800 |
commit | ba3521309f78ba90857a2dcf105372cdcfa1883e (patch) | |
tree | c633793d3a7652731a493a47b049f7674a366d54 | |
parent | 906b2ada8489734323e3a45b0cf4f61e97268138 (diff) | |
download | lua-language-server-ba3521309f78ba90857a2dcf105372cdcfa1883e.zip |
change `sourceCoding` to `fileEncoding`
-rw-r--r-- | changelog.md | 2 | ||||
-rw-r--r-- | script/config.lua | 2 | ||||
-rw-r--r-- | script/files.lua | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/changelog.md b/changelog.md index 29db7539..a7909d30 100644 --- a/changelog.md +++ b/changelog.md @@ -1,7 +1,7 @@ # changelog ## 1.16.0 -* `NEW` source coding supports `ansi` +* `NEW` file encoding supports `ansi` ## 1.15.1 `2021-2-18` diff --git a/script/config.lua b/script/config.lua index a4c6e303..3d8b9fda 100644 --- a/script/config.lua +++ b/script/config.lua @@ -106,7 +106,7 @@ local ConfigTemplate = { unicodeName = {false, Boolean}, nonstandardSymbol = {{}, Str2Hash ';'}, plugin = {'.vscode/lua/plugin.lua', String}, - sourceCoding = {'utf8', String}, + fileEncoding = {'utf8', String}, }, diagnostics = { enable = {true, Boolean}, diff --git a/script/files.lua b/script/files.lua index b609b2c3..af6be58c 100644 --- a/script/files.lua +++ b/script/files.lua @@ -160,7 +160,7 @@ function m.setText(uri, text, isTrust) return end if not isTrust and unicode then - if config.config.runtime.sourceCoding == 'ansi' then + if config.config.runtime.fileEncoding == 'ansi' then text = unicode.a2u(text) end end |