Skip to content

Commit e72ca97

Browse files
authored
Use uniqueItems for settings (#20375)
Leaves string arrays alone that are used as arguments to external tools as we can't know if unique values are valid or not. Closes #7881
1 parent 69e9625 commit e72ca97

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

package.json

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,8 @@
393393
"default": [],
394394
"description": "%python.autoComplete.extraPaths.description%",
395395
"scope": "resource",
396-
"type": "array"
396+
"type": "array",
397+
"uniqueItems": true
397398
},
398399
"python.condaPath": {
399400
"default": "",
@@ -436,7 +437,8 @@
436437
]
437438
},
438439
"scope": "machine",
439-
"type": "array"
440+
"type": "array",
441+
"uniqueItems": true
440442
},
441443
"python.experiments.optOutFrom": {
442444
"default": [],
@@ -449,7 +451,8 @@
449451
]
450452
},
451453
"scope": "machine",
452-
"type": "array"
454+
"type": "array",
455+
"uniqueItems": true
453456
},
454457
"python.formatting.autopep8Args": {
455458
"default": [],
@@ -648,7 +651,8 @@
648651
"type": "string"
649652
},
650653
"scope": "resource",
651-
"type": "array"
654+
"type": "array",
655+
"uniqueItems": true
652656
},
653657
"python.linting.lintOnSave": {
654658
"default": true,
@@ -1052,7 +1056,8 @@
10521056
"type": "string"
10531057
},
10541058
"scope": "machine",
1055-
"type": "array"
1059+
"type": "array",
1060+
"uniqueItems": true
10561061
},
10571062
"python.venvPath": {
10581063
"default": "",

0 commit comments

Comments
 (0)