Giant blob of minor changes
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-go / lib / editor.js
1 "use strict";
2 Object.defineProperty(exports, "__esModule", { value: true });
3 exports.activeTextDocument = void 0;
4 const coc_nvim_1 = require("coc.nvim");
5 async function activeTextDocument() {
6     const doc = await coc_nvim_1.workspace.document;
7     if (doc.filetype != 'go') {
8         throw "Not a go document";
9     }
10     return doc.textDocument;
11 }
12 exports.activeTextDocument = activeTextDocument;
13 //# sourceMappingURL=editor.js.map