MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / registerFileHandler

Method registerFileHandler

src/lib/acode.js:975–977  ·  view source on GitHub ↗

* Register a custom file type handler * @param {string} id Unique identifier for the handler * @param {Object} options Handler configuration * @param {string[]} options.extensions File extensions to handle (without dots) * @param {function} options.handleFile Function that handles the file o

(id, options)

Source from the content-addressed store, hash-verified

973 * @param {function} options.handleFile Function that handles the file opening
974 */
975 registerFileHandler(id, options) {
976 fileTypeHandler.registerFileHandler(id, options);
977 }
978
979 /**
980 * Unregister a file type handler

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected