MCPcopy Create free account
hub / github.com/bajrangCoder/acode-plugin-packageAdder / loadFileContent

Method loadFileContent

src/main.js:343–351  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

341 }
342
343 async loadFileContent(url){
344 try {
345 const response = await fetch(url);
346 let data = await response.text();
347 return data;
348 } catch (e) {
349 this.closePlugin();
350 }
351 }
352
353 async addThroughDownload(filesArray){
354 let { activeFile } = editorManager;

Callers 1

addThroughDownloadMethod · 0.95

Calls 1

closePluginMethod · 0.95

Tested by

no test coverage detected