Encountered a node.js issue where fs.readdirSync wasn't reliably reading the filesystem after doing a clean install of the vscode extension and running npm install. I'm not sure why I just started encountering this error now but this PR rewrites the getDirectoryContent function to not use recursive with fs.readdirSync and adds error handling to be cautious
Encountered a node.js issue where
fs.readdirSync
wasn't reliably reading the filesystem after doing a clean install of the vscode extension and running npm install. I'm not sure why I just started encountering this error now but this PR rewrites thegetDirectoryContent
function to not userecursive
withfs.readdirSync
and adds error handling to be cautiousI was using node
v18.17.1
which is the version others had the issue on https://github.com/nodejs/node/issues/51773Also allow collection names and namespaces to be initialized with underscores in them _