I'm trying to get internal content to display in VS code and the code that prepares the artifact locations does not align with the code that consumes the artifact location.
Debugging this myself, I altered Line 117 in uriRebaser.ts to check just for sarif:. I am not sure if this is the correct fix, but I was able to embed content and have it work.
I'm trying to get internal content to display in VS code and the code that prepares the artifact locations does not align with the code that consumes the artifact location.
https://github.com/microsoft/sarif-vscode-extension/blob/a1740e766122c1759d9f39d580c18b82d9e0dea4/src/shared/index.ts#L193-L200 Notice that Line 194 refers to links as
sarif://
and Line 198 refers to them assarif:
. This causes the consuming code to not recognize internal references (which are required to besarif://
): https://github.com/microsoft/sarif-vscode-extension/blob/a1740e766122c1759d9f39d580c18b82d9e0dea4/src/extension/uriRebaser.ts#L116-L117The Virtual Document handler expects the links to be
sarif:
otherwise the extra forward slashes break the link parsing. https://github.com/microsoft/sarif-vscode-extension/blob/a1740e766122c1759d9f39d580c18b82d9e0dea4/src/extension/index.ts#L276-L278Debugging this myself, I altered Line 117 in uriRebaser.ts to check just for
sarif:
. I am not sure if this is the correct fix, but I was able to embed content and have it work.