From 7346db4c141ccd73552a0e69e8dab3f61687eb2c Mon Sep 17 00:00:00 2001 From: Igor Lomba <114568996+igorlombacx@users.noreply.github.com> Date: Fri, 25 Aug 2023 15:49:54 +0100 Subject: [PATCH] Adding Learn More and Remediation Examples tabs in SAST (#135) * Adding Learn More and Remediation Examples tabs * Fix for sca vulnerabilities with no packages * PR review fix * remove empty line * remove unused import * remove empty line * fix for non utf8 characters in learn more * refactor in AddTextWithTitle and AddSectionTitle functions --------- Co-authored-by: hmmachadocx --- .../CxExtension/CxWindowControl.xaml | 121 +++++++++++- .../CxExtension/CxWindowControl.xaml.cs | 24 +-- .../Panels/ResultVulnerabilitiesPanel.cs | 182 ++++++++++++++++-- .../CxExtension/Panels/ResultsTreePanel.cs | 4 +- .../CxExtension/Utils/CxConstants.cs | 12 ++ .../CxWrapper/CxConstants.cs | 5 + .../CxWrapper/CxWrapper.cs | 22 +++ .../CxWrapper/Models/LearnMore.cs | 44 +++++ .../ast-visual-studio-extension.csproj | 1 + 9 files changed, 381 insertions(+), 34 deletions(-) create mode 100644 ast-visual-studio-extension/CxWrapper/Models/LearnMore.cs diff --git a/ast-visual-studio-extension/CxExtension/CxWindowControl.xaml b/ast-visual-studio-extension/CxExtension/CxWindowControl.xaml index f58768a..ea7ceef 100644 --- a/ast-visual-studio-extension/CxExtension/CxWindowControl.xaml +++ b/ast-visual-studio-extension/CxExtension/CxWindowControl.xaml @@ -491,7 +491,7 @@ - + @@ -638,8 +638,9 @@ + - + @@ -658,6 +659,122 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +