Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tracecompass-dev] vscode-trace-extension UI feature question

Hi,

The feature is not fully available. There had been some preliminary proof-of-concept in connection with item properties view. If in the map the key "Source" is available and the value has a "file:line" pattern then a registered callback is called [1]. The Theia integration implements that callback method and tries to open the file using Theia APIs [2]. The VsCode integration also implements that callback method, but it only prints the file and line number in the console [3], hence opening of a source file using VsCode APIs is not implemented and needs to be added.

So, to make it work first the VsCode callback has to be implemented properly. Besides that, the detection of Source locations in the traces might need some refinement to handle other use cases than the PoC we had. 

Item properties are currently only populated by selecting a row in the Events Table or by selecting a TimeGraph view state event. So, for the Events Table that means that there needs to be a column with "file:line" content. The Item Properties view show the source value as clickable hyperlink, I think.

The Trace Compass team doesn't have any plans to work on that in the near future. But if you'd like to propose some pull requests for that, we'll help merging this feature.

Best Regards,
Bernd






From: tracecompass-dev <tracecompass-dev-bounces@xxxxxxxxxxx> on behalf of Greg Savin via tracecompass-dev <tracecompass-dev@xxxxxxxxxxx>
Sent: October 7, 2024 5:19 PM
To: tracecompass-dev@xxxxxxxxxxx <tracecompass-dev@xxxxxxxxxxx>
Cc: Greg Savin <gsavin@xxxxxxxx>
Subject: [tracecompass-dev] vscode-trace-extension UI feature question
 
Hi All,

Does the UI of vscode-trace-extension expose a way to jump from a trace event to a corresponding source code location, similar to the way the events table in classic-Eclipse-based Trace Compass has an "Open Source Code" context menu item that makes use of the ITmfSourceLookup API?

Regards,
Greg S.

Back to the top