Skip to content

Commit

Permalink
Merge pull request #75637 from genlu/otfdExcludeNamespace
Browse files Browse the repository at this point in the history
Don't show C# on-the-fly-doc for namespace symbols
  • Loading branch information
genlu authored Oct 26, 2024
2 parents dfa08b4 + 82c13da commit 57c4b92
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,8 @@ protected override NullableFlowState GetNullabilityAnalysis(SemanticModel semant
var (symbol, _, _) = await symbolService.GetSymbolProjectAndBoundSpanAsync(
document, position, cancellationToken).ConfigureAwait(false);

if (symbol is null)
// Don't show on-the-fly-docs for namespace symbols.
if (symbol is null || symbol.IsNamespace())
{
return null;
}
Expand Down

0 comments on commit 57c4b92

Please sign in to comment.