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

13 lines
432 B
JavaScript
Raw Normal View History

2021-03-09 22:18:08 +00:00
"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