Skip to content

Commit

Permalink
Include symbols in language server
Browse files Browse the repository at this point in the history
  • Loading branch information
vipentti committed Dec 8, 2023
1 parent f71d7ec commit 69a093f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Visp.LanguageServer/LanguageServer.fs
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,8 @@ let findAllSymbolDetails (syms: ResizeArray<_>) expr =
Syntax.rangeOfName name |> textRangeToSyntaxRange
)
)
| SynExpr.Symbol sym ->
syms.Add(SymbolDetails.Variable(sym.Text, false, sym.Range |> textRangeToSyntaxRange))
| _ -> ()

()
Expand Down

0 comments on commit 69a093f

Please sign in to comment.