diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-06-28 20:06:34 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-06-28 20:06:34 +0800 |
commit | 5b950742705515c4bc2502e8a902221f44bf644f (patch) | |
tree | f57ba3f1159eecfba3d882703b1b5775e0e72541 /script/workspace | |
parent | deac4582d38908c1281d4d5215b7b69ff8400dca (diff) | |
download | lua-language-server-5b950742705515c4bc2502e8a902221f44bf644f.zip |
cleanup
Diffstat (limited to 'script/workspace')
-rw-r--r-- | script/workspace/scope.lua | 2 | ||||
-rw-r--r-- | script/workspace/workspace.lua | 5 |
2 files changed, 2 insertions, 5 deletions
diff --git a/script/workspace/scope.lua b/script/workspace/scope.lua index 85053612..a81d638c 100644 --- a/script/workspace/scope.lua +++ b/script/workspace/scope.lua @@ -85,7 +85,7 @@ function mt:getLinkedUri(uri) end ---@param uri uri ----@return uri +---@return uri? function mt:getRootUri(uri) if self:isChildUri(uri) then return self.uri diff --git a/script/workspace/workspace.lua b/script/workspace/workspace.lua index d24cbfe9..6425af06 100644 --- a/script/workspace/workspace.lua +++ b/script/workspace/workspace.lua @@ -354,9 +354,6 @@ end ---@param path string ---@return string function m.normalize(path) - if not path then - return nil - end path = path:gsub('%$%{(.-)%}', function (key) if key == '3rd' then return (ROOT / 'meta' / '3rd'):string() @@ -379,7 +376,7 @@ function m.normalize(path) return path end ----@return string +---@return string? function m.getAbsolutePath(folderUri, path) if not path or path == '' then return nil |