Skip to content

Commit 086410d

Browse files
committed
fix #1391
1 parent 983b74e commit 086410d

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
* `FIX` [#1368](https://github.com/sumneko/lua-language-server/issues/1368)
1212
* `FIX` [#1370](https://github.com/sumneko/lua-language-server/issues/1370)
1313
* `FIX` [#1375](https://github.com/sumneko/lua-language-server/issues/1375)
14+
* `FIX` [#1391](https://github.com/sumneko/lua-language-server/issues/1391)
1415

1516
## 3.5.0
1617
`2022-7-19`

script/library.lua

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,10 @@ local function check3rd(uri)
504504
if not config.get(uri, 'Lua.workspace.checkThirdParty') then
505505
return
506506
end
507+
local scp = scope.getScope(uri)
508+
if not scp:get 'canCheckThirdParty' then
509+
return
510+
end
507511
local thirdConfigs = load3rdConfig(uri) or false
508512
if not thirdConfigs then
509513
return
@@ -515,6 +519,7 @@ end
515519
local function check3rdOfWorkspace(suri)
516520
local scp = scope.getScope(suri)
517521
scp:set('thirdConfigsCache', nil)
522+
scp:set('canCheckThirdParty', true)
518523
local id = 'check3rdOfWorkspace:' .. scp:getName()
519524
await.close(id)
520525
---@async

0 commit comments

Comments
 (0)