Skip to content

Commit ba4cd43

Browse files
timhughAntoineGS
authored andcommitted
revert to original get_execute_command
1 parent 164b017 commit ba4cd43

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

lua/copilot/lsp/nodejs.lua

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,11 @@ end
9595

9696
---@return table
9797
function M.get_execute_command()
98-
local cmd = { M.node_command }
99-
table.insert(cmd, M.server_path or M.get_server_path())
100-
table.insert(cmd, "--stdio")
101-
return cmd
98+
return {
99+
M.node_command,
100+
M.server_path or M.get_server_path(),
101+
"--stdio",
102+
}
102103
end
103104

104105
---@param node_command? string

0 commit comments

Comments
 (0)