From b6ea121808cc247b8f3748ccf22ecfc4d84d8c90 Mon Sep 17 00:00:00 2001 From: Asger F Date: Mon, 15 Apr 2019 12:11:05 +0100 Subject: [PATCH] TS: Make full TS extraction the default in AutoBuild --- .../extractor/src/com/semmle/js/extractor/AutoBuild.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/javascript/extractor/src/com/semmle/js/extractor/AutoBuild.java b/javascript/extractor/src/com/semmle/js/extractor/AutoBuild.java index 61093e7bdb4..2cab91b2483 100644 --- a/javascript/extractor/src/com/semmle/js/extractor/AutoBuild.java +++ b/javascript/extractor/src/com/semmle/js/extractor/AutoBuild.java @@ -136,7 +136,7 @@ import java.util.stream.Stream; * * *

Additionally, if the environment variable LGTM_INDEX_TYPESCRIPT is set to "basic" - * (default) or "full", files with one of the extensions supported by {@link FileType#TYPESCRIPT} + * or "full" (default), files with one of the extensions supported by {@link FileType#TYPESCRIPT} * (currently ".ts" and ".tsx") are also included. In case of "full", type information from the * TypeScript compiler is extracted as well. * @@ -190,7 +190,7 @@ public class AutoBuild { this.outputConfig = new ExtractorOutputConfig(LegacyLanguage.JAVASCRIPT); this.trapCache = mkTrapCache(); this.typeScriptMode = - getEnumFromEnvVar("LGTM_INDEX_TYPESCRIPT", TypeScriptMode.class, TypeScriptMode.BASIC); + getEnumFromEnvVar("LGTM_INDEX_TYPESCRIPT", TypeScriptMode.class, TypeScriptMode.FULL); this.defaultEncoding = getEnvVar("LGTM_INDEX_DEFAULT_ENCODING"); setupFileTypes(); setupMatchers();