Skip to content

Commit

Permalink
fixup! Add feature to strike out obsolete symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
sharwell committed Mar 26, 2024
1 parent 9764c54 commit 4aa6979
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
9 changes: 2 additions & 7 deletions src/Features/Lsif/Generator/Generator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -125,13 +125,8 @@ public async Task GenerateForProjectAsync(
{
QuickInfoOptions = options.SymbolDescriptionOptions.QuickInfoOptions with
{
IncludeNavigationHintsInQuickInfo = false,
},
ClassificationOptions = options.SymbolDescriptionOptions.ClassificationOptions with
{
// Make sure to include 'deprecated' in the semantic token modifiers where applicable
ClassifyObsoleteSymbols = true,
},
IncludeNavigationHintsInQuickInfo = false
}
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace Microsoft.CodeAnalysis.Classification;
internal readonly record struct ClassificationOptions
{
[DataMember] public bool ClassifyReassignedVariables { get; init; } = false;
[DataMember] public bool ClassifyObsoleteSymbols { get; init; } = false;
[DataMember] public bool ClassifyObsoleteSymbols { get; init; } = true;
[DataMember] public bool ColorizeRegexPatterns { get; init; } = true;
[DataMember] public bool ColorizeJsonPatterns { get; init; } = true;
[DataMember] public bool ForceFrozenPartialSemanticsForCrossProcessOperations { get; init; } = false;
Expand Down

0 comments on commit 4aa6979

Please sign in to comment.