summaryrefslogtreecommitdiff
path: root/script/workspace/require-path.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-02-23 17:56:26 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-02-23 17:56:26 +0800
commit3de3402c82c4ea46f69d0a96bea7faf1ad68ea06 (patch)
tree32827d7d1e7c0b1ecd5386cd638498176d9aa866 /script/workspace/require-path.lua
parentf8e2955268708728a1f83743d0b2000d2e089539 (diff)
parentb37ebceffe695defd7e7976e653ce127618614c0 (diff)
downloadlua-language-server-3de3402c82c4ea46f69d0a96bea7faf1ad68ea06.zip
Merge commit 'b37ebceffe695defd7e7976e653ce127618614c0' into 3.0
Diffstat (limited to 'script/workspace/require-path.lua')
-rw-r--r--script/workspace/require-path.lua3
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