Skip to content

Conversation

@jasonmalinowski
Copy link
Member

@jasonmalinowski jasonmalinowski commented Oct 17, 2025

Without this check, if the PDB in question used path map to create a relative path, it's possible for this check to pass and end up handing around relative paths to the rest of the system (and the VS Shell). This eventually causes other things to break that expect full paths.

Given a relative path would only work here by "luck" if the devenv current working directory happened to line up, it seems easiest just to assert it's an absolute path before going further.

Fixes #79014
Fixes https://developercommunity.visualstudio.com/t/When-external-C-code-file-opened-more-t/10802958 (or at least I think the case that appeared in the customer's private dump)

@jasonmalinowski jasonmalinowski self-assigned this Oct 17, 2025
@jasonmalinowski jasonmalinowski requested a review from a team as a code owner October 17, 2025 22:42
…paths

Without this check, if the PDB in question used path map to create a
relative path, it's possible for this check to pass and end up
handing around relative paths to the rest of the system (and the VS
Shell). This eventually causes other things to break that expect full
paths.

Given a relative path would only work here by "luck" if the devenv
current working directory happened to line up, it seems easiest just
to assert it's an absolute path before going further.

Fixes dotnet#79014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Visual Studio Go To Definition issue with relative paths in the miscellaneous workspace

5 participants