Skip to content

Commit

Permalink
- Fixed incorrect availability info on C# constants
Browse files Browse the repository at this point in the history
  • Loading branch information
wmjordan committed Dec 16, 2022
1 parent 1b80185 commit 03601a6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Codist/QuickInfo/CSharpQuickInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,9 @@ async Task<QuickInfoItem> InternalGetQuickInfoItemAsync(IAsyncQuickInfoSession s
}
}
if (Config.Instance.QuickInfoOptions.MatchFlags(QuickInfoOptions.OverrideDefaultDocumentation)) {
qiContent.Add(await ShowAvailabilityAsync(doc, token, cancellationToken).ConfigureAwait(false));
if (isConvertedType == false) {
qiContent.Add(await ShowAvailabilityAsync(doc, token, cancellationToken).ConfigureAwait(false));
}
ctor = node.Parent as ObjectCreationExpressionSyntax;
OverrideDocumentation(node, qiWrapper,
ctor?.Type == node ? semanticModel.GetSymbolInfo(ctor, cancellationToken).Symbol ?? symbol
Expand Down

0 comments on commit 03601a6

Please sign in to comment.