-
-
Notifications
You must be signed in to change notification settings - Fork 678
Refactor resolving paths in asc #846
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
Conversation
|
That code is still quite hard to grasp, so I tried to clean it up even more. While necessary imo I do hope that I don't break it. Also added a little something for |
|
Looking at the test, having it depend on something else is a key part, and I think it's a fair assumption that the root of the project there is a |
|
Turned out that |
|
One remaining problem seems to be that there can't be multiple modules of the same name, depended upon by different sub-modules, due to naming everything |
It was testing if it could find an different location for a entry. In |
|
Thanks, so instead of renaming |
|
Also figured that having multiple packages of the same name will require some sort of support by the compiler itself, since it only requests |
|
Yeah that is what I've found. I also think in that PR we should add compiler errors that return the real location of the file. This is handy for several reasons, but currently I find it useful because I can do (ctrl/Cmd) + click on the file name and it will open it to the line of the file in my IDE. |
This PR refactors path resolving in asc by moving the logic into its own function. There's also a new API now to obtain the source text in source map post-processing that fixes #831.
cc @willemneal - does this look good to you?