context-labs / autodoc

Experimental toolkit for auto-generating codebase documentation using LLMs
MIT License
1.93k stars 113 forks source link

fix: pass buffer to isText() #17

Closed Nilotaviano closed 1 year ago

Nilotaviano commented 1 year ago

isText with only the filename returns null for .sol files. The actual file content should be passed along with the file name to fix this.

Nilotaviano commented 1 year ago

Simple example:

->isText("Lens.sol")
null
->isText("Lens.sol", fs.readFileSync('Lens.sol'))
true
samheutmaker commented 1 year ago

Thanks for submitting this. I'll merge it tonight.