We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b642df commit 654cca0Copy full SHA for 654cca0
script/workspace/require-path.lua
@@ -154,14 +154,18 @@ local function removeVisiblePath(uri)
154
return
155
end
156
for _, scp in ipairs(workspace.folders) do
157
- scp:get('visiblePath')[path] = nil
+ if scp:get('visiblePath') then
158
+ scp:get('visiblePath')[path] = nil
159
+ end
160
---@type collector
161
local clt = scp:get('requireName')
162
if clt then
163
clt:dropUri(uri)
164
165
- scope.fallback:get('visiblePath')[path] = nil
166
+ if scope.fallback:get('visiblePath') then
167
+ scope.fallback:get('visiblePath')[path] = nil
168
169
170
local clt = scope.fallback:get('requireName')
171
0 commit comments