Skip to content

Commit

Permalink
fix regression in erlang module completions
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszsamson committed Dec 11, 2020
1 parent 7bde044 commit c7ea1ed
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -262,12 +262,18 @@ defmodule ElixirLS.LanguageServer.Providers.Completion do
name
end

insert_text =
case name do
":" <> rest -> rest
other -> other
end

%__MODULE__{
label: label,
kind: kind,
detail: detail,
documentation: summary,
insert_text: name,
insert_text: insert_text,
filter_text: name,
priority: 14,
tags: metadata_to_tags(metadata)
Expand Down

0 comments on commit c7ea1ed

Please sign in to comment.