nvim/coc/extensions/node_modules/coc-go/lib/editor.js

13 lines
No EOL
432 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.activeTextDocument = void 0;
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;
}
exports.activeTextDocument = activeTextDocument;
//# sourceMappingURL=editor.js.map