We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c63e0b3 + 985190c commit 927d248Copy full SHA for 927d248
lib/elixir_sense/providers/hover/docs.ex
@@ -59,10 +59,15 @@ defmodule ElixirSense.Providers.Hover.Docs do
59
60
@type doc :: module_doc | function_doc | type_doc | variable_doc | attribute_doc | keyword_doc
61
62
+ @type position :: {pos_integer, pos_integer}
63
+ @type range :: %{begin: position, end: position}
64
+ @type docs_info :: %{docs: [doc], range: range}
65
+
66
@builtin_functions BuiltinFunctions.all()
67
|> Enum.map(&elem(&1, 0))
68
|> Kernel.--([:exception, :message])
69
70
+ @spec docs(String.t(), pos_integer, pos_integer, keyword()) :: docs_info | nil
71
def docs(code, line, column, options \\ []) do
72
case NormalizedCode.Fragment.surround_context(code, {line, column}) do
73
:none ->
0 commit comments