Fixed self detection for snippet completions
This commit is contained in:
parent
7063abec92
commit
8ddd80b788
@ -353,17 +353,15 @@ fn nodeToCompletion(
|
||||
break :param_check true;
|
||||
}
|
||||
|
||||
if (type_node.cast(std.zig.ast.Node.SimplePrefixOp)) |prefix_op| {
|
||||
if (type_node.tag == .PtrType) {
|
||||
if (type_node.castTag(.PtrType)) |ptr_type| {
|
||||
if (try analysis.resolveTypeOfNode(&document_store, arena, .{
|
||||
.node = prefix_op.rhs,
|
||||
.node = ptr_type.rhs,
|
||||
.handle = handle,
|
||||
})) |resolved_prefix_op| {
|
||||
if (std.meta.eql(in_container, resolved_prefix_op))
|
||||
break :param_check true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
break :param_check false;
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user