From d3c32e6929c236ce36c3fbeacae113046b9c3098 Mon Sep 17 00:00:00 2001 From: Erich Gamma Date: Thu, 28 Jan 2016 14:42:10 +0100 Subject: [PATCH] Fixes #2455 --- extensions/typescript/package.json | 4 ++++ .../typescript/schemas/tsconfig.schema.json | 24 +++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 extensions/typescript/schemas/tsconfig.schema.json diff --git a/extensions/typescript/package.json b/extensions/typescript/package.json index 4fee29b5494..860f887fdd3 100644 --- a/extensions/typescript/package.json +++ b/extensions/typescript/package.json @@ -114,6 +114,10 @@ { "fileMatch": "tsconfig.json", "url": "http://json.schemastore.org/tsconfig" + }, + { + "fileMatch": "tsconfig.json", + "url": "./schemas/tsconfig.schema.json" } ] } diff --git a/extensions/typescript/schemas/tsconfig.schema.json b/extensions/typescript/schemas/tsconfig.schema.json new file mode 100644 index 00000000000..3096875d67b --- /dev/null +++ b/extensions/typescript/schemas/tsconfig.schema.json @@ -0,0 +1,24 @@ +{ + "title": "JSON schema for the JavaScript configuration file", + "type": "object", + "default": { + "compilerOptions": { + "module": "commonjs" + }, + "exclude": [ + "node_modules" + ] + }, + "properties": { + "compilerOptions": { + "type": "object", + "description": "Instructs the JavaScript language service how to validate .js files", + "properties": { + "allowJs": { + "description": "Includes JS (requires TypeScript 1.8)", + "type": "boolean" + } + } + } + } +} \ No newline at end of file -- GitLab