Skip to content

Commit b2fa89f

Browse files
committed
Validate setting types at runtime
Because settings can be arbitrary JSON we should validate their type when reading them in. TypeScript provides a bit of a false sense of security here since at runtime they can be whatever the user wants, and then the extension falls over in wierd and wonderful ways. Add some basic type checking methods to make sure we're working with booleans, constrained strings/strings, or arrays of strings. Issue: #2007
1 parent 0dadcf8 commit b2fa89f

File tree

1 file changed

+203
-88
lines changed

1 file changed

+203
-88
lines changed

0 commit comments

Comments
 (0)