diff --git a/src/PowerShellEditorServices/Services/TextDocument/Handlers/InlayHintHandler.cs b/src/PowerShellEditorServices/Services/TextDocument/Handlers/InlayHintHandler.cs index 0559d979b..7a05b489e 100644 --- a/src/PowerShellEditorServices/Services/TextDocument/Handlers/InlayHintHandler.cs +++ b/src/PowerShellEditorServices/Services/TextDocument/Handlers/InlayHintHandler.cs @@ -61,13 +61,15 @@ public override async Task Handle(InlayHintParams request, C IEnumerable 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 };