You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apply disableReferencedProjectLoad to getOriginalLocationEnsuringConfiguredProject (microsoft#44836)
* Apply disableReferencedProjectLoad to getOriginalLocationEnsuringConfiguredProject
* Reuse previously computed values and refine comments
* Add baselines for test matrix
this.createAndLoadConfiguredProject(configFileName,`Creating project for original file: ${originalFileInfo.fileName}${location!==originalLocation ? " for location: "+location.fileName : ""}`);
// If location was a project reference redirect, then `location` and `originalLocation` are the same.
3245
+
if(isSourceOfProjectReferenceRedirect){
3246
+
returnlocation;
3247
+
}
3248
+
3249
+
// Otherwise, if we found `originalLocation` via a source map instead, then we check whether it's in
3250
+
// an open project. If it is, we should search the containing project(s), even though the "default"
3251
+
// configured project isn't open. However, if it's not in an open project, we need to stick with
3252
+
// `location` (i.e. the .d.ts file) because otherwise we'll miss the references in that file.
3253
+
returnscriptInfo?.containingProjects.length
3254
+
? originalLocation
3255
+
: location;
3256
+
}
3257
+
3258
+
configuredProject=this.createAndLoadConfiguredProject(configFileName,`Creating project for original file: ${originalFileInfo.fileName}${location!==originalLocation ? " for location: "+location.fileName : ""}`);
0 commit comments