File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
apps/elixir_ls_debugger/lib/debugger Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -12,13 +12,15 @@ defmodule ElixirLS.Debugger.Completions do
12
12
when type in [ :function , :macro ] do
13
13
% {
14
14
type: "function" ,
15
+ detail: Atom . to_string ( type ) ,
15
16
label: "#{ name } /#{ arity } " ,
16
17
text: snippet || name
17
18
}
18
19
end
19
20
20
21
def map ( % {
21
22
type: :module ,
23
+ subtype: subtype ,
22
24
name: name
23
25
} ) do
24
26
text =
@@ -29,6 +31,7 @@ defmodule ElixirLS.Debugger.Completions do
29
31
30
32
% {
31
33
type: "module" ,
34
+ detail: if ( subtype != nil , do: Atom . to_string ( subtype ) ) ,
32
35
label: name ,
33
36
text: text
34
37
}
@@ -46,10 +49,18 @@ defmodule ElixirLS.Debugger.Completions do
46
49
47
50
def map ( % {
48
51
type: :field ,
52
+ subtype: subtype ,
49
53
name: name
50
54
} ) do
55
+ detail =
56
+ case subtype do
57
+ :struct_field -> "struct field"
58
+ :map_key -> "map key"
59
+ end
60
+
51
61
% {
52
62
type: "field" ,
63
+ detail: detail ,
53
64
label: name
54
65
}
55
66
end
You can’t perform that action at this time.
0 commit comments