From 37d6ddab1035babb68a6db08b2c3530df3c4e808 Mon Sep 17 00:00:00 2001 From: elchananarb Date: Thu, 28 Nov 2024 16:19:58 +0200 Subject: [PATCH] change to Constants --- .../CxExtension/Services/ASCAService.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ast-visual-studio-extension/CxExtension/Services/ASCAService.cs b/ast-visual-studio-extension/CxExtension/Services/ASCAService.cs index dbc3894..f6e1cfb 100644 --- a/ast-visual-studio-extension/CxExtension/Services/ASCAService.cs +++ b/ast-visual-studio-extension/CxExtension/Services/ASCAService.cs @@ -6,6 +6,7 @@ using System.Threading.Tasks; using System.Timers; using System.IO; +using ast_visual_studio_extension.CxCLI; namespace ast_visual_studio_extension.CxExtension.Services { @@ -72,7 +73,7 @@ private async void OnDebounceTimerElapsed(object sender, ElapsedEventArgs e) CxAsca scanResult = await _cxWrapper.ScanAscaAsync( fileSource: tempFilePath, ascaLatestVersion: false, - agent: "Visual Studio" + agent: CxConstants.EXTENSION_AGENT ); if (scanResult.Error != null) @@ -212,7 +213,7 @@ private async Task InstallAscaAsync() await _cxWrapper.ScanAscaAsync( fileSource: "", ascaLatestVersion: true, - agent: "Visual Studio" + agent: CxConstants.EXTENSION_AGENT ); } }