miversen33 / netman.nvim

Neovim (Lua powered) Network Resource Manager
MIT License
337 stars 1 forks source link

New Async API Spec does not clarify how an "empty" Link should be reported #165

Closed miversen33 closed 1 year ago

miversen33 commented 1 year ago

Something I just stumbled on, when navigating the Async compliant ssh provider to an empty directory on a filesystem, it returns nothing except complete. No data is returned (which is compliant with the API as the API doesn't keep track of if data has been returned, just that the data that is returned is valid), and thus the consumer has absolutely no idea what happened and it is told the read was completed.

We should probably update the spec a bit to require the TYPE key in the data field with every data return (even empty data tables).

miversen33 commented 1 year ago

Closed with #166