Fix pluginSearchDirs schema (#12474)
* Fix `pluginSearchDirs` schema * `anyOf` -> `oneOf` * Fix test
This commit is contained in:
1 parent
067edce213
commit
ef3fe51380
2 files changed
+27
-4
No files matched your search
@@ -84,6 +84,19 @@ function optionToSchema(option) {
|
||||
}
|
||||
if (option.array) {
|
||||
schema = wrapWithArraySchema(schema);
|
||||
|
||||
// #10274
|
||||
if (option.name === "pluginSearchDirs") {
|
||||
schema = {
|
||||
oneOf: [
|
||||
schema,
|
||||
{
|
||||
enum: [false],
|
||||
description: "Disable plugin autoloading.",
|
||||
},
|
||||
],
|
||||
};
|
||||
}
|
||||
}
|
||||
return {
|
||||
description: option.description,
|
||||
|
||||
Reference in new issue
Block a user