How many packages it should search in at most (A folder is treated
as a package if there is a package.json file directly in it)
Normally workspaces only have 2 layer of packages, so by default
I assume a monorepo. You can change this to 1 if using a
single-project repo, or to something larger like Infinity if you
have something more unique. For example searching from inside the
node_modules folder will definitely need you to find more than
2 package.json files. But normally your cwd won't be inside there.
Default
2
OptionalmaxResults?: number
If the search term is package.json, this has the same effect
as maxPackages. Both conditions can stop the search, the smaller one
will be the stronger.
How many packages it should search in at most (A folder is treated as a package if there is a
package.jsonfile directly in it)Normally workspaces only have 2 layer of packages, so by default I assume a monorepo. You can change this to 1 if using a single-project repo, or to something larger like
Infinityif you have something more unique. For example searching from inside the node_modules folder will definitely need you to find more than 2 package.json files. But normally yourcwdwon't be inside there.