Skip to content

Commit

Permalink
Fix missing nodes in outline (#990)
Browse files Browse the repository at this point in the history
* Remove some boilerplate from test

* Fix missing nodes in outline
  • Loading branch information
matklad authored Feb 11, 2023
1 parent 0d3b0e9 commit 73d6264
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/analysis.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 3 additions & 0 deletions tests/lsp_features/document_symbol.zig
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ test "documentSymbol - nested struct with self" {
\\};
,
\\Variable Foo
\\ Variable Self
\\ Function foo
\\ Variable Bar
);
}

Expand Down

0 comments on commit 73d6264

Please sign in to comment.