Fix missing nodes in outline (#990)

* Remove some boilerplate from test

* Fix missing nodes in outline
This commit is contained in:
Alex Kladov 2023-02-11 19:20:01 +00:00 committed by GitHub
parent 0d3b0e9965
commit 73d6264cab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -1851,6 +1851,7 @@ fn addOutlineNodes(allocator: std.mem.Allocator, tree: Ast, child: Ast.Node.Inde
.error_set_decl,
=> return,
.container_decl,
.container_decl_trailing,
.container_decl_arg,
.container_decl_arg_trailing,
.container_decl_two,

View File

@ -32,6 +32,9 @@ test "documentSymbol - nested struct with self" {
\\};
,
\\Variable Foo
\\ Variable Self
\\ Function foo
\\ Variable Bar
);
}