Skip to content

Commit 9238d01

Browse files
authored
Ensure environment variables are always strings in launch.json (#9728)
* Ensure environment variables are always strings. * Add news item
1 parent 9e893bf commit 9238d01

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

news/2 Fixes/9568.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Ensure environment variables are always strings in `launch.json`.

package.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1155,7 +1155,10 @@
11551155
"env": {
11561156
"type": "object",
11571157
"description": "Environment variables defined as a key value pair. Property ends up being the Environment Variable and the value of the property ends up being the value of the Env Variable.",
1158-
"default": {}
1158+
"default": {},
1159+
"additionalProperties": {
1160+
"type": "string"
1161+
}
11591162
},
11601163
"envFile": {
11611164
"type": "string",
@@ -1282,7 +1285,10 @@
12821285
"env": {
12831286
"type": "object",
12841287
"description": "Environment variables defined as a key value pair. Property ends up being the Environment Variable and the value of the property ends up being the value of the Env Variable.",
1285-
"default": {}
1288+
"default": {},
1289+
"additionalProperties": {
1290+
"type": "string"
1291+
}
12861292
},
12871293
"envFile": {
12881294
"type": "string",

0 commit comments

Comments
 (0)