Skip to content
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

Send normalized canonical path to debug adapter always #232791

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nisargjhaveri
Copy link
Member

Fix #232088.

VS Code sends inconsistent paths across different setBreakpoints requests in the same session, in case the debug adapter sends differently cased path in Source as part of stack resolution or other responses. This is common in case insensitive file systems and can create issues for underlying debug adapter or debuggers like lldb.

We already normalize drive letter on Windows before sending it to debug adapter to be consistent. Extend this to normalize and use the canonical path for the entire path, instead of just normalizing the drive letter. This makes different setBreakpoints requests have consistent path string for the same path in case-insensitive file systems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Case mismatch in setBreakpoints requests in a single session
2 participants