summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-12-30 15:42:30 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-12-30 15:42:30 +0800
commit0e14b83e853cc27b305d1fdc0fbd352f70a55dcb (patch)
tree7b5afe3a908ea36babace6c2e9b8a5b649cf1cd1 /script
parente99e79c3c92a4caf7239565ed2edb7e6fbd6d003 (diff)
downloadlua-language-server-0e14b83e853cc27b305d1fdc0fbd352f70a55dcb.zip
close #335 add `LOGPATH` and `METAPATH`
Diffstat (limited to 'script')
-rw-r--r--script/library.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/script/library.lua b/script/library.lua
index a49bef85..b8bcf3c5 100644
--- a/script/library.lua
+++ b/script/library.lua
@@ -164,15 +164,16 @@ end
local function compileMetaDoc()
local langID = lang.id
local version = config.config.runtime.version
- local metapath = ROOT / 'meta' / config.config.runtime.meta:gsub('%$%{(.-)%}', {
+ local metapath = fs.path(METAPATH) / config.config.runtime.meta:gsub('%$%{(.-)%}', {
version = version,
language = langID,
})
+ fs.create_directories(metapath:parent_path())
if fs.exists(metapath) then
--return
end
- local metaLang = loadMetaLocale('en-US')
+ local metaLang = loadMetaLocale('en-US')
if langID ~= 'en-US' then
loadMetaLocale(langID, metaLang)
end