Skip to content

Commit

Permalink
Merge pull request #934 from erlang-ls/933-fix-support-for-snippets
Browse files Browse the repository at this point in the history
[#933] Fix support for snippets
  • Loading branch information
robertoaloi authored Mar 8, 2021
2 parents 04c2c4f + 708180c commit fab7423
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions apps/els_lsp/src/els_snippets_server.erl
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
%%==============================================================================
-define(SERVER, ?MODULE).
-define(TABLE, snippets).
-define(CUSTOM_DIR, ).

%%==============================================================================
%% Type Definitions
Expand Down Expand Up @@ -116,7 +115,7 @@ snippets_from_escript() ->
Name = escript:script_name(),
{ok, Sections} = escript:extract(Name, []),
Archive = proplists:get_value(archive, Sections),
Fun = fun("erlang_ls/priv/snippets/" ++ N, _GetInfo, GetBin, Acc) ->
Fun = fun("els_lsp/priv/snippets/" ++ N, _GetInfo, GetBin, Acc) ->
[{N, GetBin()}|Acc];
(_Name, _GetInfo, _GetBin, Acc) ->
Acc
Expand Down

0 comments on commit fab7423

Please sign in to comment.