diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-02-23 17:56:26 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-02-23 17:56:26 +0800 |
commit | 3de3402c82c4ea46f69d0a96bea7faf1ad68ea06 (patch) | |
tree | 32827d7d1e7c0b1ecd5386cd638498176d9aa866 /script/workspace/require-path.lua | |
parent | f8e2955268708728a1f83743d0b2000d2e089539 (diff) | |
parent | b37ebceffe695defd7e7976e653ce127618614c0 (diff) | |
download | lua-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.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 |