13 lines
432 B
JavaScript
13 lines
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
|