Skip to content

Commit 8539943

Browse files
arunchndrakhera99
andauthored
fix bug with option not working when clicked (#74781) (#74786)
Co-authored-by: Ankita Khera <40616383+akhera99@users.noreply.github.com>
1 parent 70df1fd commit 8539943

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/VisualStudio/CSharp/Impl/Options/CSharpVisualStudioCopilotOptionsService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public async Task<bool> IsCopilotOptionEnabledAsync(string optionName)
7777
var settingManager = await _settingsManagerTask.ConfigureAwait(false);
7878
// The bool setting is persisted as 0=None, 1=True, 2=False, so it needs to be retrieved as an int.
7979
return settingManager.TryGetValue($"{CopilotOptionNamePrefix}.{optionName}", out int isEnabled) == GetValueResult.Success
80-
&& isEnabled == 1;
80+
&& isEnabled != 2;
8181
}
8282

8383
public Task<bool> IsCodeAnalysisOptionEnabledAsync()

0 commit comments

Comments
 (0)