diff options
author | Rebecca Turner <rbt@sent.as> | 2023-11-08 18:29:39 -0800 |
---|---|---|
committer | Rebecca Turner <rbt@sent.as> | 2023-11-08 18:29:39 -0800 |
commit | 7f6f395e6c3faf3d164930994f7f571df703255b (patch) | |
tree | 25e448242f86334c4dc304d699e3222ae2620cd3 /script | |
parent | 8e880ad5eee0178e32819819eef315d462f4ae65 (diff) | |
download | lua-language-server-7f6f395e6c3faf3d164930994f7f571df703255b.zip |
Revert "Fix backwards compatability with `Lua.workspace.checkThirdParty`"
This reverts commit 13a24eef2329cdc19008421666af51e50d6c0889.
Diffstat (limited to 'script')
-rw-r--r-- | script/library.lua | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/script/library.lua b/script/library.lua index 290b5b33..4446797a 100644 --- a/script/library.lua +++ b/script/library.lua @@ -610,13 +610,9 @@ local function check3rd(uri) end local checkThirdParty = config.get(uri, 'Lua.workspace.checkThirdParty') -- Backwards compatability: `checkThirdParty` used to be a boolean. - -- Note: `checkThirdParty` is defined as a string, so if a boolean is - -- supplied, it's converted to a string by the `config.config` module. - -- Hence we check for the strings `'true'` and `'false`' here, rather than - -- the boolean literals. - if checkThirdParty == 'Disable' or checkThirdParty == 'false' then + if not checkThirdParty or checkThirdParty == 'Disable' then return - elseif checkThirdParty == 'true' then + elseif checkThirdParty == true then checkThirdParty = 'Ask' end local scp = scope.getScope(uri) |