-
Notifications
You must be signed in to change notification settings - Fork 13.2k
[Release-2.0] Fix 9662: Visual Studio 2015 with TS2.0 gives incorrect @types path resolution errors #9867
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Release-2.0] Fix 9662: Visual Studio 2015 with TS2.0 gives incorrect @types path resolution errors #9867
Changes from 1 commit
eb055b1
11e3821
c463808
b269ab9
f949e0e
6f3cf9a
502b036
4c1829f
5ee16bf
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1158,8 +1158,8 @@ namespace ts { | |
| const typeReferences: string[] = getAutomaticTypeDirectiveNames(options, host); | ||
|
|
||
| if (typeReferences) { | ||
| const inferredRoot = getInferredTypesRoot(options, rootNames, host); | ||
| const containingFilename = combinePaths(inferredRoot, "__inferred type names__.ts"); | ||
| // This containgFilename needs to matched with the one used in managed-side | ||
| const containingFilename = "__inferred type names__.ts" | ||
|
||
| const resolutions = resolveTypeReferenceDirectiveNamesWorker(typeReferences, containingFilename); | ||
| for (let i = 0; i < typeReferences.length; i++) { | ||
| processTypeReferenceDirective(typeReferences[i], resolutions[i]); | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit:
matched->matchandcontaingFilename->containingFilename