Skip to content

feat: POC support relative problem path when inside a VSCode workspace#595

Open
dqhieuu wants to merge 1 commit into
agrawal-d:mainfrom
dqhieuu:main
Open

feat: POC support relative problem path when inside a VSCode workspace#595
dqhieuu wants to merge 1 commit into
agrawal-d:mainfrom
dqhieuu:main

Conversation

@dqhieuu
Copy link
Copy Markdown

@dqhieuu dqhieuu commented Oct 25, 2025

Why: I use git to store my code files across machines with different OSes, and since the problem paths are absolute, they don't work between machines.

Main points:

  • Use workspace root as the relative root
  • Remove srcPath entirely, encode the entire path in the file name. Path ./a/b/c/file.cpp becomes file name a$$b$$c$$file.cpp. Pros:
    • O(1) lookup
    • Doesn't need to deserialize JSON to find the file name
    • Easy to update the path when the code file is moved/renamed.

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.

1 participant