diff --git a/src/analysis.zig b/src/analysis.zig index 0d97623..ec10dc2 100644 --- a/src/analysis.zig +++ b/src/analysis.zig @@ -2607,8 +2607,8 @@ fn makeScopeInternal( try error_completions.put(allocator, .{ .label = tree.tokenSlice(i), .kind = .Constant, - .insertTextFormat = .PlainText, .insertText = tree.tokenSlice(i), + .insertTextFormat = .PlainText, }, {}); } } @@ -2677,6 +2677,8 @@ fn makeScopeInternal( try enum_completions.put(allocator, .{ .label = name, .kind = .Constant, + .insertText = name, + .insertTextFormat = .PlainText, .documentation = if (try getDocComments(allocator, tree, decl, .Markdown)) |docs| .{ .kind = .Markdown, .value = docs,