You can register repo roots under any directory passed with --add-dir, and duplicates now say so clearly.
What's wrong with this entry?
The SDK register_repo_root request no longer requires the target to be a strict subdirectory of cwd, and now reports an already-registered directory as its own error instead of a subdirectory failure.
- the path is realpathed and confirmed to be a directory before anything else
- accepted locations are directories under cwd or under any directory passed at launch via cliArg sources, that is
--add-diror the SDKadditionalDirectories - registering a directory that is already a working directory fails with a dedicated error
- on success, DirectoryAdded hooks are dispatched; hook failures are debug-logged and do not fail the request
- the request schema description was rewritten to match
- previously this threw
register_repo_root: ... is not a subdirectory of cwd
register_repo_root: directory is already a registered working directory
Strings lifted out of the shipped bundle, so the claim above can be checked against them.
Related
Other releases about the same thing. Found by shared names or similar wording; neither means one caused the other.
-
v2.1.246
Permission rules and extra directories read one consistent settings snapshot
Both mention additional directory