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

Deprecate providers #290

Merged
merged 1 commit into from
Mar 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions lib/elixir_sense.ex
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ defmodule ElixirSense do
iex> doc.docs |> String.split("\n") |> Enum.at(0)
"Converts `enumerable` to a list."
"""
@deprecated "providers will be dropped in the future"
@spec docs(String.t(), pos_integer, pos_integer, keyword) ::
%{
docs: nonempty_list(Docs.doc()),
Expand Down Expand Up @@ -102,6 +103,7 @@ defmodule ElixirSense do
iex> "#{Path.basename(path)}:#{to_string(line)}:#{to_string(column)}"
"module_with_functions.ex:6:3"
"""
@deprecated "providers will be dropped in the future"
@spec definition(String.t(), pos_integer, pos_integer, keyword) :: Location.t() | nil
def definition(code, line, column, options \\ []) do
case NormalizedCode.Fragment.surround_context(code, {line, column}) do
Expand Down Expand Up @@ -138,6 +140,7 @@ defmodule ElixirSense do
iex> "#{Path.basename(path)}:#{to_string(line)}:#{to_string(column)}"
"example_protocol.ex:7:3"
"""
@deprecated "providers will be dropped in the future"
@spec implementations(String.t(), pos_integer, pos_integer, keyword) :: [Location.t()]
def implementations(code, line, column, options \\ []) do
case NormalizedCode.Fragment.surround_context(code, {line, column}) do
Expand Down Expand Up @@ -211,6 +214,7 @@ defmodule ElixirSense do
name: "insert_at", metadata: %{app: :elixir}, snippet: nil, visibility: :public,
spec: "@spec insert_at(list(), integer(), any()) :: list()", summary: "Returns a list with `value` inserted at the specified `index`."}]
"""
@deprecated "providers will be dropped in the future"
@spec suggestions(String.t(), pos_integer, pos_integer, keyword()) :: [Suggestion.suggestion()]
def suggestions(code, line, column, options \\ []) do
hint = Source.prefix(code, line, column)
Expand Down Expand Up @@ -294,6 +298,7 @@ defmodule ElixirSense do
]
}
"""
@deprecated "providers will be dropped in the future"
@spec signature(String.t(), pos_integer, pos_integer, keyword) ::
Signature.signature_info() | :none
def signature(code, line, column, options \\ []) do
Expand Down Expand Up @@ -383,6 +388,7 @@ defmodule ElixirSense do
```

"""
@deprecated "providers will be dropped in the future"
@spec expand_full(String.t(), String.t(), pos_integer) :: Expand.expanded_code_map()
def expand_full(buffer, code, line) do
buffer_file_metadata = Parser.parse_string(buffer, true, true, {line, 1})
Expand All @@ -395,6 +401,7 @@ defmodule ElixirSense do
@doc """
Converts a string to its quoted form.
"""
@deprecated "providers will be dropped in the future"
@spec quote(String.t()) :: String.t()
def quote(code) do
Eval.quote(code)
Expand All @@ -412,6 +419,7 @@ defmodule ElixirSense do
iex> ElixirSense.match(code)
"# Bindings\n\nstatus = 404\n\nmessage = \"Not found\"\n\narg1 = 1"
"""
@deprecated "providers will be dropped in the future"
@spec match(String.t()) :: String.t()
def match(code) do
Eval.match_and_format(code)
Expand Down Expand Up @@ -448,6 +456,7 @@ defmodule ElixirSense do
}
]
"""
@deprecated "providers will be dropped in the future"
@spec references(
String.t(),
pos_integer,
Expand Down
Loading
Loading