Skip to content

Commit a05f52a

Browse files
Freed-Wusumneko
authored andcommitted
Fix lua-language-server --check (#2683)
1 parent 1d515a0 commit a05f52a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

script/cli/check.lua

+6-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,12 @@ local util = require 'utility'
88

99
local numThreads = tonumber(NUM_THREADS or 1)
1010

11-
local exe = arg[-1]
11+
local exe
12+
local minIndex = -1
13+
while arg[minIndex] do
14+
exe = arg[minIndex]
15+
minIndex = minIndex - 1
16+
end
1217
-- TODO: is this necessary? got it from the shell.lua helper in bee.lua tests
1318
if platform.os == 'windows' and not exe:match('%.[eE][xX][eE]$') then
1419
exe = exe..'.exe'

0 commit comments

Comments
 (0)