Skip to content

Add regex support for sourceFileMap #3022

@yh-sb

Description

@yh-sb

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions