microsoft / microsoft/vscode-cpptools
Add regex support for sourceFileMap
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 6.2k
- Forks
- 1.7k
- Avg merge
- 14h 46m
- Merged PRs (30d)
- 61
Description
We need to translate paths from a compile-time unknown generated path names into a path vscode can find the files.
This could be solved with a regex, or similar.
For example translate "compiletime-srting-1" which is the same for build_dir and dl dir, but has different prefixes:
"sourceFileMap":
{
"${workspaceFolder}/build_dir/target-testlib_arm_eglibc-2.18_eabi_<compiletime-srting-1>": "${workspaceFolder}/dl/testlib_<compiletime-srting-1>"
}
It has also a lot of similar usecases.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the TypeScript extension's sourceFileMap handling; the payload names no specific file or test. Reproduce the build_dir and dl path example, then define how regex or equivalent mappings should resolve compile-time-generated names so VS Code can find the files, including similar cases.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, typescript
- Domain
- devtools
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100