include enum fields in enum completion set

This commit is contained in:
Techatrix
2023-05-29 23:59:20 +02:00
parent a6f7e80ea3
commit 9f9bf9eba8
2 changed files with 15 additions and 2 deletions

View File

@@ -300,6 +300,16 @@ test "completion - enum" {
.{ .label = "alpha", .kind = .Enum },
.{ .label = "beta", .kind = .Enum },
});
try testCompletion(
\\const E = enum {
\\ alpha,
\\ beta,
\\};
\\const foo: E = .<cursor>
, &.{
.{ .label = "alpha", .kind = .Enum },
.{ .label = "beta", .kind = .Enum },
});
}
test "completion - error union" {