We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
powershell
1 parent 653bbdc commit 77e3a49Copy full SHA for 77e3a49
lua/copilot/client.lua
@@ -50,7 +50,8 @@ function M.get_node_version()
50
local node = config.get("copilot_node_command")
51
52
local cmd = node .. " --version"
53
- local cmd_output = table.concat(vim.fn.systemlist(cmd, nil, false))
+ local cmd_output_table = vim.fn.systemlist(cmd, nil, false)
54
+ local cmd_output = cmd_output_table[#cmd_output_table]
55
local cmd_exit_code = vim.v.shell_error
56
57
local node_version = string.match(cmd_output, "^v(%S+)") or ""
0 commit comments