File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -231,13 +231,17 @@ public AutoBuild() {
231231 Env .systemEnv ()
232232 .getInt (
233233 "LGTM_INDEX_TYPESCRIPT_INSTALL_DEPS_TIMEOUT" , INSTALL_DEPENDENCIES_DEFAULT_TIMEOUT );
234- this .virtualSourceRoot = new VirtualSourceRoot ( LGTM_SRC , toRealPath ( Paths . get ( EnvironmentVariables . getScratchDir ())) );
234+ this .virtualSourceRoot = makeVirtualSourceRoot ( );
235235 setupFileTypes ();
236236 setupXmlMode ();
237237 setupMatchers ();
238238 this .state = new ExtractorState ();
239239 }
240240
241+ protected VirtualSourceRoot makeVirtualSourceRoot () {
242+ return new VirtualSourceRoot (LGTM_SRC , toRealPath (Paths .get (EnvironmentVariables .getScratchDir ())));
243+ }
244+
241245 private String getEnvVar (String envVarName ) {
242246 return getEnvVar (envVarName , null );
243247 }
Original file line number Diff line number Diff line change 2828import com .semmle .js .extractor .ExtractorState ;
2929import com .semmle .js .extractor .FileExtractor ;
3030import com .semmle .js .extractor .FileExtractor .FileType ;
31+ import com .semmle .js .extractor .VirtualSourceRoot ;
3132import com .semmle .util .data .StringUtil ;
3233import com .semmle .util .exception .UserError ;
3334import com .semmle .util .files .FileUtil ;
@@ -137,6 +138,11 @@ protected DependencyInstallationResult preparePackagesAndDependencies(Set<Path>
137138 return DependencyInstallationResult .empty ;
138139 }
139140
141+ @ Override
142+ protected VirtualSourceRoot makeVirtualSourceRoot () {
143+ return VirtualSourceRoot .none ; // not used in these tests
144+ }
145+
140146 @ Override
141147 protected void extractXml () throws IOException {
142148 Files .walkFileTree (
You can’t perform that action at this time.
0 commit comments