massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-go / lib / utils / playground.js
index 8da462578a4e2c77fb5d752d8b35073e5e053046..9fef7962f5afd41dcb9065d5bc4b64f774acbea3 100644 (file)
@@ -10,12 +10,12 @@ async function openPlayground(document) {
 exports.openPlayground = openPlayground;
 async function runGoplay(code) {
     try {
-        const stdout = await tools_1.execTool(binaries_1.GOPLAY, ['-'], code);
-        coc_nvim_1.workspace.showMessage(stdout);
+        const stdout = await (0, tools_1.execTool)(binaries_1.GOPLAY, ['-'], code);
+        coc_nvim_1.window.showMessage(stdout);
         return true;
     }
     catch (err) {
-        coc_nvim_1.workspace.showMessage(`${err}`, "error");
+        coc_nvim_1.window.showMessage(`${err}`, "error");
         return false;
     }
 }