Repository navigation
[WIP] add project.resolveNonRealpath to return non-realpath compared to project.resolvePath - #10856
dirk-thomas wants to merge 2 commits into
Conversation
|
The current patch changes each
The existing methods of Currently this PR monkey patches the I am not yet sure why the one test needed to be updated in the second commit (in order to pass). But I would like to get feedback on the general approach. Any comments are welcome. |
|
@dirk-thomas Could you explain what you'd like to do with this API when and if we add it? Are you planning on using it in packages of your own, or submitting later PRs to make existing packages use this API? |
|
Please see the referenced issue #9879 for some more information. The immediate use case would be the Atom I plan to provide patches to the |
|
Ah ok, thanks for the explanation. I would definitely be ok with adding an API for this to |
|
For the naming imo the best would be to have If you prefer Once we agree on the current state of the patch (only changing |
Good point. What about |
…override TextBuffer.getPath to continue returning a normalized realpath, add TextBuffer.getUnresolvedPath
|
I was able to rebase to master and remove some code from the patch since now I am just not sure what a good name for the new method on |
|
@maxbrunsfeld Can you please take another look at the updated PR when you have some time. Thank you. |
|
I think
|
|
Ok, thank you for the feedback. I will get on those items as soon as I find a spare minute. |
|
This problem was addressed in #13545. |
|
Great. Thanks! |
This PR is trying to address #9879.
The first commit simply changes the semantic ofSee newer comment for current behavior.project.resolvePath()to return a non-realpath. Since this might break the callers expectation I will try to keep the semantic of existing API on-top as outlined in #9879 (comment) as necessary.