massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-go / lib / utils / modify-tags.js
index 8dbc2233adbe7412597f2633260b382dbaf22341..ca80186705eea02813c1807b7f35184135ed084b 100644 (file)
@@ -76,7 +76,7 @@ async function runGomodifytags(document, args) {
 }
 async function execGomodifytags(args, input) {
     try {
-        const stdout = await tools_1.execTool(binaries_1.GOMODIFYTAGS, args, input);
+        const stdout = await (0, tools_1.execTool)(binaries_1.GOMODIFYTAGS, args, input);
         const mods = JSON.parse(stdout);
         return {
             range: {
@@ -94,7 +94,7 @@ async function execGomodifytags(args, input) {
 function fileArchive(fileName, fileContents) {
     return fileName + '\n' + Buffer.byteLength(fileContents, 'utf8') + '\n' + fileContents;
 }
-// https://github.com/microsoft/vscode-go/blob/master/src/util.ts#L84
+// https://github.com/golang/vscode-go/blob/master/src/util.ts#L84
 function byteOffsetAt(document, position) {
     const offset = document.offsetAt(position);
     const text = document.getText();