microsoft / sarif-vscode-extension

SARIF Microsoft Visual Studio Code extension
MIT License
107 stars 48 forks source link

Add the ability to display the uri of an artifact instead of the one linked by a provided index. #545

Open jnix-abk opened 6 months ago

jnix-abk commented 6 months ago

When displaying the artifact location on a result item, if there is ALSO an index value, I would like to still show the uri of the result item while navigating to the uri of the artifact linked by the index value. This will allow me to produce SARIF files with no content and then link to the content elsewhere when needed.

The change proposed is: https://github.com/microsoft/sarif-vscode-extension/blob/a1740e766122c1759d9f39d580c18b82d9e0dea4/src/shared/index.ts#L199 From: : undefined; To: : runArtLoc?.uri ?? undefined;