Merge branch 'master' of github.com:zigtools/zls

This commit is contained in:
Alexandros Naskos 2021-04-05 19:45:12 +03:00
commit 6d13591d02
No known key found for this signature in database
GPG Key ID: 02BF2E72B0EA32D2

View File

@ -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,