Skip to content

Commit

Permalink
Display the "AI Secure Coding Assistant..." label text
Browse files Browse the repository at this point in the history
  • Loading branch information
elchananarb committed Nov 27, 2024
1 parent aa32ad3 commit 04a391d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ast-visual-studio-extension/CxPreferences/CxPreferencesUI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,13 +106,17 @@ private async void AscaCheckBox_CheckedChanged(object sender, EventArgs e)
cxPreferencesModule.AscaCheckBox = isChecked;
if (isChecked)
{
// Display the "AI Secure Coding Assistant..." label text
label1.Visible = true;
CxCLI.CxWrapper cxWrapper = new CxCLI.CxWrapper(GetCxConfig(), GetType());
_ascaService = ASCAService.GetInstance(cxWrapper);
await _ascaService.InitializeASCAAsync();

}
else
{
// Hide the "AI Secure Coding Assistant..." label text
label1.Visible = false;
// If ASCA is disabled, dispose the service if it exists
if (_ascaService != null)
{
Expand Down

0 comments on commit 04a391d

Please sign in to comment.