SDK tracepoint injection fails when region is a single line inside a torch profiler context

If you have the following code:

33 with torch.profiler.profile(….) as prof: 
34     some_func()

and you mark line 34 in the VSCode editor as the tracepoint, the trace marker won’t show up when you run a profile.

If you have more than 1 line as follows:

33 with torch.profiler.profile(….) as prof: 
34     some_func()
35     ...some_other_code...

and then you place the tracepoint on line 34, it’ll work fine.

We’re working on figuring out what the issue is.