Skip to content

Commit

Permalink
fix #1391
Browse files Browse the repository at this point in the history
  • Loading branch information
sumneko committed Jul 26, 2022
1 parent 983b74e commit 086410d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
* `FIX` [#1368](https://github.com/sumneko/lua-language-server/issues/1368)
* `FIX` [#1370](https://github.com/sumneko/lua-language-server/issues/1370)
* `FIX` [#1375](https://github.com/sumneko/lua-language-server/issues/1375)
* `FIX` [#1391](https://github.com/sumneko/lua-language-server/issues/1391)

## 3.5.0
`2022-7-19`
Expand Down
5 changes: 5 additions & 0 deletions script/library.lua
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,10 @@ local function check3rd(uri)
if not config.get(uri, 'Lua.workspace.checkThirdParty') then
return
end
local scp = scope.getScope(uri)
if not scp:get 'canCheckThirdParty' then
return
end
local thirdConfigs = load3rdConfig(uri) or false
if not thirdConfigs then
return
Expand All @@ -515,6 +519,7 @@ end
local function check3rdOfWorkspace(suri)
local scp = scope.getScope(suri)
scp:set('thirdConfigsCache', nil)
scp:set('canCheckThirdParty', true)
local id = 'check3rdOfWorkspace:' .. scp:getName()
await.close(id)
---@async
Expand Down

0 comments on commit 086410d

Please sign in to comment.