Skip to content

Commit 77b2946

Browse files
Merge branch 'master' into doc-update
2 parents 15e6ed8 + 5623a84 commit 77b2946

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

make.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,13 @@ if lm.notest then
9393
end
9494

9595
lm:rule "run-bee-test" {
96-
"$bin/lua-language-server" .. exe, "$in",
96+
args = { "$bin/lua-language-server" .. exe, "$in" },
9797
description = "Run test: $in.",
9898
pool = "console",
9999
}
100100

101101
lm:rule "run-unit-test" {
102-
"bin/lua-language-server" .. exe, "$in",
102+
args = { "bin/lua-language-server" .. exe, "$in" },
103103
description = "Run test: $in.",
104104
pool = "console",
105105
}

script/cli/check.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ lclient():start(function (client)
8585
.. ('0'):rep(#tostring(max) - #tostring(i))
8686
.. tostring(i) .. '/' .. tostring(max)
8787
io.write(output)
88+
io.flush()
8889
end
8990
end
9091
io.write('\x0D')

script/global.d.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,3 +94,7 @@ SOCKET = 0
9494

9595
-- Allowing the use of the root directory or home directory as the workspace
9696
FORCE_ACCEPT_WORKSPACE = false
97+
98+
-- Trust all plugins that are being loaded by workspace config files.
99+
-- This is potentially unsafe for normal use and meant for usage in CI environments only.
100+
TRUST_ALL_PLUGINS = false

script/plugin.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ end
7373
---@async
7474
---@param scp scope
7575
local function checkTrustLoad(scp)
76+
if TRUST_ALL_PLUGINS then
77+
return true
78+
end
7679
local pluginPath = scp:get('pluginPath')
7780
local filePath = LOGPATH .. '/trusted'
7881
local trusted = util.loadFile(filePath)

0 commit comments

Comments
 (0)