Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid snipped inserted when completing fun with record argument #458

Closed
lukaszsamson opened this issue Jan 12, 2021 · 1 comment · Fixed by #461
Closed

Invalid snipped inserted when completing fun with record argument #458

lukaszsamson opened this issue Jan 12, 2021 · 1 comment · Fixed by #461
Labels
bug Something isn't working

Comments

@lukaszsamson
Copy link
Collaborator

Environment

  • Elixir & Erlang versions (elixir --version): 1.11.3, otp 23.2
  • Editor or IDE name (e.g. Emacs/VSCode): vscode
  • Editor Plugin/LSP Client name: 0.62

Logs

With a function taking record

def do_sth(My.record(x: x0, y: y0)) do
   ...
end

Completion after pipe operator results in

a
|> do_sth(y: y0))

Completion with no pipe works fine.

@lukaszsamson lukaszsamson added the bug Something isn't working label Jan 12, 2021
@lukaszsamson
Copy link
Collaborator Author

The bug is somewhere in ElixirLS.LanguageServer.Providers.Completion.function_snippet as elixir_sense returns valid data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant