Adds support to execute moonscript with synapse inside vscode.
To use:
Execute this or put in auto-exec:
local ws = syn.websocket.connect("ws://localhost:5555")
local localPlayer = game.Players.LocalPlayer
ws:Send("auth:" .. localPlayer.Name)
ws.OnMessage:Connect(function(message)
local fn, err = loadstring(message)
if err then
print(err)
ws:Send("execution-error:" .. err)
return
end
fn()
end)
Then, create a file with moonscript code (VALID CODE!)
Then, press execute and enjoy!