Do not show tests in container completions
This commit is contained in:
parent
bd3f0460ba
commit
b417e64e10
@ -2702,14 +2702,14 @@ fn makeScopeInternal(
|
|||||||
);
|
);
|
||||||
const name = getDeclName(tree, decl) orelse continue;
|
const name = getDeclName(tree, decl) orelse continue;
|
||||||
|
|
||||||
if (try scopes.items[scope_idx].decls.fetchPut(name, .{ .ast_node = decl })) |existing| {
|
|
||||||
// TODO Record a redefinition error.
|
|
||||||
}
|
|
||||||
|
|
||||||
if (tags[decl] == .test_decl) {
|
if (tags[decl] == .test_decl) {
|
||||||
try tests.append(allocator, decl);
|
try tests.append(allocator, decl);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
if (try scopes.items[scope_idx].decls.fetchPut(name, .{ .ast_node = decl })) |existing| {
|
||||||
|
// TODO Record a redefinition error.
|
||||||
|
}
|
||||||
|
|
||||||
if (!can_have_enum_completions)
|
if (!can_have_enum_completions)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user