mirror of
https://github.com/lune-org/lune.git
synced 2025-04-10 13:30:53 +01:00
16 lines
No EOL
450 B
Lua
16 lines
No EOL
450 B
Lua
local process = require("@lune/process")
|
|
local stdio = require("@lune/stdio")
|
|
|
|
local child = process.spawn("luau-lsp", { "lsp" })
|
|
|
|
while true do
|
|
child.stdin:write("hello world")
|
|
local buf = child.stdout:read()
|
|
|
|
if buffer.len(buf) == 0 then
|
|
break
|
|
end
|
|
|
|
stdio.write(buffer.tostring(buf) .. "\n")
|
|
-- stdio.write(buffer.tostring(child.stderr:read() .. child.stderr:read() .. child.stderr:read() .. child.stderr:read()))
|
|
end |