Skip to content

Commit 35a360f

Browse files
committed
Start pipe with a value
1 parent 5c984bf commit 35a360f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/server/lib/lexical/server/provider/handlers/workspace_symbol.ex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ defmodule Lexical.Server.Provider.Handlers.WorkspaceSymbol do
2626
end
2727

2828
defp gather_symbols(%Project{} = project, %WorkspaceSymbol{} = request) do
29-
Api.workspace_symbols(project, request.query)
29+
project
30+
|> Api.workspace_symbols(request.query)
3031
|> tap(fn symbols -> Logger.info("syms #{inspect(Enum.take(symbols, 5))}") end)
3132
|> Enum.map(&to_response/1)
3233
end

0 commit comments

Comments
 (0)