sarif-tutorials icon indicating copy to clipboard operation
sarif-tutorials copied to clipboard

Can the location in the result object be clickable in web view?

Open dmsehuang opened this issue 3 years ago • 0 comments

I know when we double click the path in VS Code, the editor will bring us to the exact location of the error. Do we have similar feature in web view?

In my repo, I have a file named urls.md under the docs/docs2 folder and I define the location in the following way:

         "locations": [
            {
              "physicalLocation": {
                "artifactLocation": {
                  "uri": "docs/docs2/urls.md",
                },
                "region": {
                  "startLine": 11,
                  "startColumn": 7
                }
              }
            }
          ]

When I run this in an Azure Pipeline, the path is just not clickable. However, if I replaced the uri property with some an absolute url, such as https://bing.com, it is clickable.

dmsehuang avatar Feb 08 '22 21:02 dmsehuang