From fa34a83a4df2a684d3236627e9a35aa623085231 Mon Sep 17 00:00:00 2001 From: Andrew Wang Date: Tue, 29 Nov 2016 12:59:19 -0800 Subject: [PATCH] Fixing sourceFileMaps inner type (#999) SourceFileMaps are restricted to be strings, adding this so that the hints will show that it needs to be a string type. --- package.json | 6 ++++++ src/tools/OptionsSchema.json | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/package.json b/package.json index b0859c39a..8fb452dbd 100644 --- a/package.json +++ b/package.json @@ -560,6 +560,9 @@ "sourceFileMap": { "type": "object", "description": "Optional source file mappings passed to the debug engine. Example: '{ \"C:\\foo\":\"/home/user/foo\" }'", + "additionalProperties": { + "type": "string" + }, "default": { "": "" } @@ -807,6 +810,9 @@ "sourceFileMap": { "type": "object", "description": "Optional source file mappings passed to the debug engine. Example: '{ \"C:\\foo\":\"/home/user/foo\" }'", + "additionalProperties": { + "type": "string" + }, "default": { "": "" } diff --git a/src/tools/OptionsSchema.json b/src/tools/OptionsSchema.json index 32b64a5ed..5d599fa2b 100644 --- a/src/tools/OptionsSchema.json +++ b/src/tools/OptionsSchema.json @@ -281,6 +281,9 @@ "sourceFileMap": { "type": "object", "description": "Optional source file mappings passed to the debug engine. Example: '{ \"C:\\foo\":\"/home/user/foo\" }'", + "additionalProperties": { + "type": "string" + }, "default": { "": "" } @@ -344,6 +347,9 @@ "sourceFileMap": { "type": "object", "description": "Optional source file mappings passed to the debug engine. Example: '{ \"C:\\foo\":\"/home/user/foo\" }'", + "additionalProperties": { + "type": "string" + }, "default": { "": "" }