diff --git a/.github/workflows/lint_build_publish.yml b/.github/workflows/lint_build_publish.yml
index b8b9e36..fbd758a 100644
--- a/.github/workflows/lint_build_publish.yml
+++ b/.github/workflows/lint_build_publish.yml
@@ -10,7 +10,7 @@ jobs:
runs-on: windows-latest
steps:
- name: Checkout repository
- uses: actions/checkout@v4
+ uses: actions/checkout@v6
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v2
@@ -18,14 +18,14 @@ jobs:
vs-version: '[17.0, )'
- name: Setup .NET
- uses: actions/setup-dotnet@v4
+ uses: actions/setup-dotnet@v5
with:
dotnet-version: 8.0.x # dotnet 9 breaks "dotnet format" command: https://github.com/dotnet/sdk/issues/43017
- name: Format check
run: dotnet format --verify-no-changes --verbosity diagnostic
- - uses: actions/cache@v4
+ - uses: actions/cache@v5
with:
path: ~/.nuget/packages
key: nuget-${{ hashFiles('**/*.csproj') }}
@@ -44,7 +44,7 @@ jobs:
DeployExtension: False
- name: Upload Cycode.VisualStudio.Extension.14.0-16.0 artifact
- uses: actions/upload-artifact@v4
+ uses: actions/upload-artifact@v7
with:
name: Cycode.VisualStudio.Extension.14.0-16.0
if-no-files-found: error
@@ -52,7 +52,7 @@ jobs:
path: src/extension/Cycode.VisualStudio.Extension.14.0-16.0/bin/Release/Cycode.VisualStudio.Extension.14.0-16.0.vsix
- name: Upload Cycode.VisualStudio.Extension.17.0 artifact
- uses: actions/upload-artifact@v4
+ uses: actions/upload-artifact@v7
with:
name: Cycode.VisualStudio.Extension.17.0
if-no-files-found: error
@@ -106,7 +106,7 @@ jobs:
name: Smoke test (${{ matrix.vs-name }})
steps:
- name: Download Cycode.VisualStudio.Extension.17.0 artifact
- uses: actions/download-artifact@v4
+ uses: actions/download-artifact@v8
with:
name: Cycode.VisualStudio.Extension.17.0
diff --git a/src/extension/Cycode.VisualStudio.Extension.Shared/Cli/DTO/AiRemediationResult.cs b/src/extension/Cycode.VisualStudio.Extension.Shared/Cli/DTO/AiRemediationResult.cs
index b265dd4..87e8d14 100644
--- a/src/extension/Cycode.VisualStudio.Extension.Shared/Cli/DTO/AiRemediationResult.cs
+++ b/src/extension/Cycode.VisualStudio.Extension.Shared/Cli/DTO/AiRemediationResult.cs
@@ -1,5 +1,7 @@
using Newtonsoft.Json;
+#nullable enable
+
namespace Cycode.VisualStudio.Extension.Shared.Cli.DTO;
public class AiRemediationResult {
diff --git a/src/extension/Cycode.VisualStudio.Extension.Shared/Cli/DTO/StatusResult.cs b/src/extension/Cycode.VisualStudio.Extension.Shared/Cli/DTO/StatusResult.cs
index 8e0d357..8e50c19 100644
--- a/src/extension/Cycode.VisualStudio.Extension.Shared/Cli/DTO/StatusResult.cs
+++ b/src/extension/Cycode.VisualStudio.Extension.Shared/Cli/DTO/StatusResult.cs
@@ -1,5 +1,7 @@
using Newtonsoft.Json;
+#nullable enable
+
namespace Cycode.VisualStudio.Extension.Shared.Cli.DTO;
public class StatusResult {
diff --git a/src/extension/Cycode.VisualStudio.Extension.Shared/Components/TreeView/Nodes/FileNode.cs b/src/extension/Cycode.VisualStudio.Extension.Shared/Components/TreeView/Nodes/FileNode.cs
index c0caeac..189d599 100644
--- a/src/extension/Cycode.VisualStudio.Extension.Shared/Components/TreeView/Nodes/FileNode.cs
+++ b/src/extension/Cycode.VisualStudio.Extension.Shared/Components/TreeView/Nodes/FileNode.cs
@@ -3,5 +3,5 @@
namespace Cycode.VisualStudio.Extension.Shared.Components.TreeView.Nodes;
public class FileNode : BaseNode {
- public BitmapSource Icon { get; set; }
+ public new BitmapSource Icon { get; set; }
}
\ No newline at end of file
diff --git a/src/extension/Cycode.VisualStudio.Extension.Shared/Components/ViolationCards/SastViolationCardControl.xaml b/src/extension/Cycode.VisualStudio.Extension.Shared/Components/ViolationCards/SastViolationCardControl.xaml
index d081667..a67c70e 100644
--- a/src/extension/Cycode.VisualStudio.Extension.Shared/Components/ViolationCards/SastViolationCardControl.xaml
+++ b/src/extension/Cycode.VisualStudio.Extension.Shared/Components/ViolationCards/SastViolationCardControl.xaml
@@ -39,7 +39,7 @@
-
+
diff --git a/src/extension/Cycode.VisualStudio.Extension.Shared/Components/ViolationCards/SastViolationCardControl.xaml.cs b/src/extension/Cycode.VisualStudio.Extension.Shared/Components/ViolationCards/SastViolationCardControl.xaml.cs
index d3efca8..a719b69 100644
--- a/src/extension/Cycode.VisualStudio.Extension.Shared/Components/ViolationCards/SastViolationCardControl.xaml.cs
+++ b/src/extension/Cycode.VisualStudio.Extension.Shared/Components/ViolationCards/SastViolationCardControl.xaml.cs
@@ -35,7 +35,7 @@ public SastViolationCardControl(SastDetection detection) {
File.Text = detection.DetectionDetails.FileName;
Subcategory.Text = detection.DetectionDetails.Category;
- Language.Text = string.Join(", ", detection.DetectionDetails.Languages);
+ LanguageValue.Text = string.Join(", ", detection.DetectionDetails.Languages);
Dictionary engineIdToDisplayName = new() {
{ "5db84696-88dc-11ec-a8a3-0242ac120002", "Semgrep OSS (Orchestrated by Cycode)" },
diff --git a/src/extension/Cycode.VisualStudio.Extension.Shared/Services/SuggestedActions/SuggestedActionsSource.cs b/src/extension/Cycode.VisualStudio.Extension.Shared/Services/SuggestedActions/SuggestedActionsSource.cs
index 58944b7..6ca3080 100644
--- a/src/extension/Cycode.VisualStudio.Extension.Shared/Services/SuggestedActions/SuggestedActionsSource.cs
+++ b/src/extension/Cycode.VisualStudio.Extension.Shared/Services/SuggestedActions/SuggestedActionsSource.cs
@@ -41,14 +41,14 @@ CancellationToken cancellationToken
};
}
- public async Task HasSuggestedActionsAsync(
+ public Task HasSuggestedActionsAsync(
ISuggestedActionCategorySet requestedActionCategories,
SnapshotSpan range,
CancellationToken cancellationToken
) {
- if (TryUpdateTagger() == false) return false;
+ if (TryUpdateTagger() == false) return Task.FromResult(false);
- return _tagger.GetErrorTags(range).Count > 0;
+ return Task.FromResult(_tagger.GetErrorTags(range).Count > 0);
}
public event EventHandler SuggestedActionsChanged;