semantic icon indicating copy to clipboard operation
semantic copied to clipboard

readProjectFromPaths has weird semantics

Open patrickt opened this issue 5 years ago • 0 comments

This function, as @robrix pointed out, is a little weird: its second parameter can be a file path rather than a directory, in which case the resulting project’s root is the parent directory of the provided file—and all files, not just the provided file, will be slurped into the resulting project. This is unintuitive behavior that we preserved because we were afraid to change the CLI interface, and we should just kill the CLI vagaries that allow for this behavior.

patrickt avatar Oct 22 '19 21:10 patrickt