Skip to content

Commit f7f8ef4

Browse files
committed
filter out protocol introspection functions from protocol functions completion
1 parent cc88cde commit f7f8ef4

File tree

1 file changed

+1
-0
lines changed
  • apps/language_server/lib/language_server/providers/completion/reducers

1 file changed

+1
-0
lines changed

apps/language_server/lib/language_server/providers/completion/reducers/protocol.ex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ defmodule ElixirLS.LanguageServer.Providers.Completion.Reducers.Protocol do
6969
else
7070
for {{name, arity}, {_type, args, docs, metadata, spec}} <-
7171
Introspection.module_functions_info(protocol),
72+
not match?(%{implementing: Protocol}, metadata),
7273
hint == "" or String.starts_with?("def", hint) or Matcher.match?("#{name}", hint) do
7374
%{
7475
type: :protocol_function,

0 commit comments

Comments
 (0)