diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-02-21 15:34:04 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-02-21 15:34:04 +0800 |
commit | e4588e924ae897f4b6d5d6133200a6d85dc4dfe0 (patch) | |
tree | 2f69040f10034b75f4347e5ca8ffa7838020e4a4 /script/workspace | |
parent | d59f9824a567aa1a18b5e0e794efdb2e658bbb35 (diff) | |
download | lua-language-server-e4588e924ae897f4b6d5d6133200a6d85dc4dfe0.zip |
fix runtime errors
Diffstat (limited to 'script/workspace')
-rw-r--r-- | script/workspace/require-path.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/script/workspace/require-path.lua b/script/workspace/require-path.lua index f0a75eb1..56c94424 100644 --- a/script/workspace/require-path.lua +++ b/script/workspace/require-path.lua @@ -148,6 +148,9 @@ end local function removeVisiblePath(uri) local path = furi.decode(uri) path = workspace.normalize(path) + if not path then + return + end for _, scp in ipairs(workspace.folders) do scp:get('visiblePath')[path] = nil ---@type collector |