Skip to content

Commit

Permalink
Get more specific with the filter
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinGrote committed Oct 18, 2024
1 parent 87b7b01 commit ded43a6
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,15 @@ public override async Task<InlayHintContainer> Handle(InlayHintParams request, C

IEnumerable<InlayHint> inlayHints =
from s in symbolReferences
where s.Type == SymbolType.Variable | s.Type == SymbolType.Parameter
where s.Type is SymbolType.Variable or SymbolType.Parameter
select new InlayHint
{
Kind = InlayHintKind.Type,
Kind = s.Type is SymbolType.Parameter ? InlayHintKind.Parameter : InlayHintKind.Type,
// TODO: Integrate ScriptPositionAdapter once rename PR is merged
Position = new Position(
s.ScriptRegion.StartLineNumber - 1,
s.ScriptRegion.StartColumnNumber - 1),
s.ScriptRegion.StartColumnNumber - 1
),
Label = "TypeGoesHere:" //Fixme: Get the type of the symbol
};

Expand Down

0 comments on commit ded43a6

Please sign in to comment.