From 38fbba35ffa282fc523791002062dec6c93451d7 Mon Sep 17 00:00:00 2001 From: Matt Bierner Date: Tue, 7 Feb 2017 15:57:22 -0800 Subject: [PATCH] Use types tsconfig option where possible --- extensions/configuration-editing/src/typings/ref.d.ts | 2 +- extensions/configuration-editing/tsconfig.json | 7 +++++-- extensions/extension-editing/src/typings/ref.d.ts | 1 - extensions/extension-editing/tsconfig.json | 5 ++++- extensions/git/src/typings/refs.d.ts | 2 +- extensions/git/tsconfig.json | 5 ++++- extensions/javascript/src/typings/ref.d.ts | 2 +- extensions/javascript/tsconfig.json | 3 +++ extensions/markdown/src/typings/ref.d.ts | 2 +- extensions/markdown/tsconfig.json | 5 ++++- extensions/php/src/typings/refs.d.ts | 2 +- extensions/php/tsconfig.json | 5 ++++- extensions/typescript/src/typings/ref.d.ts | 2 +- extensions/typescript/tsconfig.json | 5 ++++- extensions/vscode-api-tests/src/typings/ref.d.ts | 2 +- extensions/vscode-api-tests/tsconfig.json | 5 ++++- extensions/vscode-colorize-tests/src/typings/ref.d.ts | 7 ------- extensions/vscode-colorize-tests/tsconfig.json | 6 +++++- 18 files changed, 44 insertions(+), 24 deletions(-) delete mode 100644 extensions/vscode-colorize-tests/src/typings/ref.d.ts diff --git a/extensions/configuration-editing/src/typings/ref.d.ts b/extensions/configuration-editing/src/typings/ref.d.ts index bc057c55878..9660f58180a 100644 --- a/extensions/configuration-editing/src/typings/ref.d.ts +++ b/extensions/configuration-editing/src/typings/ref.d.ts @@ -4,4 +4,4 @@ *--------------------------------------------------------------------------------------------*/ /// -/// + diff --git a/extensions/configuration-editing/tsconfig.json b/extensions/configuration-editing/tsconfig.json index 3fd4b7cd117..8fe6c19e8cc 100644 --- a/extensions/configuration-editing/tsconfig.json +++ b/extensions/configuration-editing/tsconfig.json @@ -6,9 +6,12 @@ "lib": [ "es2015" ], - "strictNullChecks": true + "strictNullChecks": true, + "types": [ + "node" + ] }, "exclude": [ "node_modules" ] -} +} \ No newline at end of file diff --git a/extensions/extension-editing/src/typings/ref.d.ts b/extensions/extension-editing/src/typings/ref.d.ts index bc057c55878..216911a680e 100644 --- a/extensions/extension-editing/src/typings/ref.d.ts +++ b/extensions/extension-editing/src/typings/ref.d.ts @@ -4,4 +4,3 @@ *--------------------------------------------------------------------------------------------*/ /// -/// diff --git a/extensions/extension-editing/tsconfig.json b/extensions/extension-editing/tsconfig.json index 90ac01c2d39..1f4a5a743af 100644 --- a/extensions/extension-editing/tsconfig.json +++ b/extensions/extension-editing/tsconfig.json @@ -5,7 +5,10 @@ "es2015" ], "module": "commonjs", - "outDir": "./out" + "outDir": "./out", + "types": [ + "node" + ] }, "exclude": [ "node_modules" diff --git a/extensions/git/src/typings/refs.d.ts b/extensions/git/src/typings/refs.d.ts index 954bab971e3..5e95d7a766e 100644 --- a/extensions/git/src/typings/refs.d.ts +++ b/extensions/git/src/typings/refs.d.ts @@ -5,4 +5,4 @@ /// /// -/// + diff --git a/extensions/git/tsconfig.json b/extensions/git/tsconfig.json index bed30f8826c..77471cf3a6c 100644 --- a/extensions/git/tsconfig.json +++ b/extensions/git/tsconfig.json @@ -7,7 +7,10 @@ "module": "commonjs", "outDir": "./out", "strictNullChecks": true, - "experimentalDecorators": true + "experimentalDecorators": true, + "types": [ + "node" + ] }, "exclude": [ "node_modules" diff --git a/extensions/javascript/src/typings/ref.d.ts b/extensions/javascript/src/typings/ref.d.ts index bc057c55878..9660f58180a 100644 --- a/extensions/javascript/src/typings/ref.d.ts +++ b/extensions/javascript/src/typings/ref.d.ts @@ -4,4 +4,4 @@ *--------------------------------------------------------------------------------------------*/ /// -/// + diff --git a/extensions/javascript/tsconfig.json b/extensions/javascript/tsconfig.json index 551261ed46d..15ec75fbe49 100644 --- a/extensions/javascript/tsconfig.json +++ b/extensions/javascript/tsconfig.json @@ -5,6 +5,9 @@ "outDir": "./out", "lib": [ "es2015" + ], + "types": [ + "node" ] }, "exclude": [ diff --git a/extensions/markdown/src/typings/ref.d.ts b/extensions/markdown/src/typings/ref.d.ts index bc057c55878..9660f58180a 100644 --- a/extensions/markdown/src/typings/ref.d.ts +++ b/extensions/markdown/src/typings/ref.d.ts @@ -4,4 +4,4 @@ *--------------------------------------------------------------------------------------------*/ /// -/// + diff --git a/extensions/markdown/tsconfig.json b/extensions/markdown/tsconfig.json index 7e8097e8fb4..7dcf0a0250c 100644 --- a/extensions/markdown/tsconfig.json +++ b/extensions/markdown/tsconfig.json @@ -12,7 +12,10 @@ "noImplicitAny": true, "noImplicitReturns": true, "noUnusedLocals": true, - "noUnusedParameters": true + "noUnusedParameters": true, + "types": [ + "node" + ] }, "exclude": [ "node_modules" diff --git a/extensions/php/src/typings/refs.d.ts b/extensions/php/src/typings/refs.d.ts index bc057c55878..9660f58180a 100644 --- a/extensions/php/src/typings/refs.d.ts +++ b/extensions/php/src/typings/refs.d.ts @@ -4,4 +4,4 @@ *--------------------------------------------------------------------------------------------*/ /// -/// + diff --git a/extensions/php/tsconfig.json b/extensions/php/tsconfig.json index 90ac01c2d39..1f4a5a743af 100644 --- a/extensions/php/tsconfig.json +++ b/extensions/php/tsconfig.json @@ -5,7 +5,10 @@ "es2015" ], "module": "commonjs", - "outDir": "./out" + "outDir": "./out", + "types": [ + "node" + ] }, "exclude": [ "node_modules" diff --git a/extensions/typescript/src/typings/ref.d.ts b/extensions/typescript/src/typings/ref.d.ts index bc057c55878..9660f58180a 100644 --- a/extensions/typescript/src/typings/ref.d.ts +++ b/extensions/typescript/src/typings/ref.d.ts @@ -4,4 +4,4 @@ *--------------------------------------------------------------------------------------------*/ /// -/// + diff --git a/extensions/typescript/tsconfig.json b/extensions/typescript/tsconfig.json index 2e44abefad4..c698f6c2cd8 100644 --- a/extensions/typescript/tsconfig.json +++ b/extensions/typescript/tsconfig.json @@ -11,7 +11,10 @@ "noImplicitAny": true, "noImplicitReturns": true, "noUnusedLocals": true, - "noUnusedParameters": true + "noUnusedParameters": true, + "types": [ + "node" + ] }, "exclude": [ "node_modules", diff --git a/extensions/vscode-api-tests/src/typings/ref.d.ts b/extensions/vscode-api-tests/src/typings/ref.d.ts index 88a4b528289..f72e30c116d 100644 --- a/extensions/vscode-api-tests/src/typings/ref.d.ts +++ b/extensions/vscode-api-tests/src/typings/ref.d.ts @@ -5,4 +5,4 @@ /// /// -/// + diff --git a/extensions/vscode-api-tests/tsconfig.json b/extensions/vscode-api-tests/tsconfig.json index 620857bb06f..24088312b1d 100644 --- a/extensions/vscode-api-tests/tsconfig.json +++ b/extensions/vscode-api-tests/tsconfig.json @@ -7,7 +7,10 @@ "es2015" ], "sourceMap": true, - "strictNullChecks": true + "strictNullChecks": true, + "types": [ + "node" + ] }, "exclude": [ "node_modules" diff --git a/extensions/vscode-colorize-tests/src/typings/ref.d.ts b/extensions/vscode-colorize-tests/src/typings/ref.d.ts deleted file mode 100644 index b5848321017..00000000000 --- a/extensions/vscode-colorize-tests/src/typings/ref.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -/// -/// diff --git a/extensions/vscode-colorize-tests/tsconfig.json b/extensions/vscode-colorize-tests/tsconfig.json index 099a940aa2e..114e199c1e9 100644 --- a/extensions/vscode-colorize-tests/tsconfig.json +++ b/extensions/vscode-colorize-tests/tsconfig.json @@ -6,7 +6,11 @@ "lib": [ "es2015" ], - "sourceMap": true + "sourceMap": true, + "types": [ + "mocha", + "node" + ] }, "exclude": [ "node_modules"