2 Object.defineProperty(exports, "__esModule", { value: true });
3 exports.openPlayground = void 0;
4 const coc_nvim_1 = require("coc.nvim");
5 const tools_1 = require("./tools");
6 const binaries_1 = require("../binaries");
7 async function openPlayground(document) {
8 return runGoplay(document.getText());
10 exports.openPlayground = openPlayground;
11 async function runGoplay(code) {
13 const stdout = await (0, tools_1.execTool)(binaries_1.GOPLAY, ['-'], code);
14 coc_nvim_1.window.showMessage(stdout);
18 coc_nvim_1.window.showMessage(`${err}`, "error");
22 //# sourceMappingURL=playground.js.map