Skip to content

Commit 51afb0d

Browse files
committed
remove deprecated command
1 parent 4b8c46d commit 51afb0d

File tree

2 files changed

+0
-24
lines changed

2 files changed

+0
-24
lines changed

apps/language_server/lib/language_server/protocol.ex

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -200,17 +200,6 @@ defmodule ElixirLS.LanguageServer.Protocol do
200200
end
201201
end
202202

203-
# TODO remove in ElixirLS 0.8
204-
defmacro macro_expansion(id, whole_buffer, selected_macro, macro_line) do
205-
quote do
206-
request(unquote(id), "elixirDocument/macroExpansion", %{
207-
"context" => %{"selection" => unquote(selected_macro)},
208-
"textDocument" => %{"text" => unquote(whole_buffer)},
209-
"position" => %{"line" => unquote(macro_line)}
210-
})
211-
end
212-
end
213-
214203
# Other utilities
215204

216205
defmacro range(start_line, start_character, end_line, end_character) do

apps/language_server/lib/language_server/server.ex

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -764,19 +764,6 @@ defmodule ElixirLS.LanguageServer.Server do
764764
end
765765
end
766766

767-
# TODO remove in ElixirLS 0.8
768-
defp handle_request(
769-
macro_expansion(_id, whole_buffer, selected_macro, macro_line),
770-
state = %__MODULE__{}
771-
) do
772-
IO.warn(
773-
"Custom `elixirDocument/macroExpansion` request is deprecated. Switch to command `executeMacro` via `workspace/executeCommand`"
774-
)
775-
776-
x = ElixirSense.expand_full(whole_buffer, selected_macro, macro_line)
777-
{:ok, x, state}
778-
end
779-
780767
defp handle_request(%{"method" => "$/" <> _}, state = %__MODULE__{}) do
781768
# "$/" requests that the server doesn't support must return method_not_found
782769
{:error, :method_not_found, nil, state}

0 commit comments

Comments
 (0)