Skip to content

Handle /// references with absolute path #801

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

Merged
merged 2 commits into from
Oct 2, 2014
Merged

Handle /// references with absolute path #801

merged 2 commits into from
Oct 2, 2014

Conversation

mhegazy
Copy link
Contributor

@mhegazy mhegazy commented Oct 1, 2014

fixes #800

@DanielRosenwasser DanielRosenwasser changed the title Handel /// references with absolute path Handle /// references with absolute path Oct 1, 2014
@@ -4019,7 +4019,8 @@ module ts {

function processReferencedFiles(file: SourceFile, basePath: string) {
forEach(file.referencedFiles, ref => {
processSourceFile(normalizePath(combinePaths(basePath, ref.filename)), /* isDefaultLib */ false, file, ref.pos, ref.end);
var referencedFilename = isRootedDiskPath(ref.filename) ? ref.filename : combinePaths(basePath, ref.filename);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be worth factoring out into another function.

@DanielRosenwasser
Copy link
Member

👍

mhegazy added a commit that referenced this pull request Oct 2, 2014
Handle /// references with absolute path
@mhegazy mhegazy merged commit 060a8b6 into master Oct 2, 2014
@mhegazy mhegazy deleted the absolutePathRef branch October 2, 2014 00:03
@mhegazy
Copy link
Contributor Author

mhegazy commented Apr 15, 2016

@PeterDCarter i am afraid i do not understand the question. this is an old PR 1.5 years ago. do not think anything here is relevant. please file a new issue and provide a self contained repro for the problem.

@microsoft microsoft locked and limited conversation to collaborators Jun 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

///<reference doesn't work with absolute paths
2 participants