"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.activeTextDocument = activeTextDocument;
const coc_nvim_1 = require("coc.nvim");
async function activeTextDocument() {
    const doc = await coc_nvim_1.workspace.document;
    if (doc.filetype != 'go') {
        throw "Not a go document";
    }
    return doc.textDocument;
}
//# sourceMappingURL=editor.js.map