diff --git a/src/compiler/commandLineParser.ts b/src/compiler/commandLineParser.ts index 338200b5d1a..92b2a35f429 100644 --- a/src/compiler/commandLineParser.ts +++ b/src/compiler/commandLineParser.ts @@ -665,21 +665,6 @@ namespace ts { const options = extend(existingOptions, compilerOptions); const typingOptions: TypingOptions = convertTypingOptionsFromJsonWorker(json["typingOptions"], basePath, errors, configFileName); - // Contains the properties on the json we don't recognize, but the - // host might so we return them as a property bag. This allows the host to handle - // them, but doesn't have to deal with removing comments from the source json. - const other: any = {}; - - const knownProperties = ["compilerOptions", "typingOptions", "files", "exclude"]; - - for (const prop in json) { - if (ts.indexOf(knownProperties, prop) >= 0) { - continue; - } - - other[prop] = json[prop]; - } - options.configFilePath = configFileName; const fileNames = getFileNames(errors); @@ -688,7 +673,7 @@ namespace ts { options, fileNames, typingOptions, - other, + raw: json, errors }; diff --git a/src/compiler/types.ts b/src/compiler/types.ts index aede79fe237..7a850a22701 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -2592,7 +2592,7 @@ namespace ts { options: CompilerOptions; typingOptions?: TypingOptions; fileNames: string[]; - other?: any; + raw?: any; errors: Diagnostic[]; } diff --git a/src/services/shims.ts b/src/services/shims.ts index 21f2454d7c3..6fbc86d9fc7 100644 --- a/src/services/shims.ts +++ b/src/services/shims.ts @@ -1009,7 +1009,7 @@ namespace ts { options: configFile.options, typingOptions: configFile.typingOptions, files: configFile.fileNames, - other: configFile.other, + raw: configFile.raw, errors: realizeDiagnostics(configFile.errors, "\r\n") }; });