Fix function snippets not working with details

This commit is contained in:
Auguste Rame 2022-07-08 10:51:14 +02:00 committed by Auguste Rame
parent a96532aa65
commit 0f3eb1df36

View File

@ -1307,8 +1307,6 @@ fn formatDetailledLabel(item: *types.CompletionItem, alloc: std.mem.Allocator) !
return;
}
item.insertText = item.label;
item.insertTextFormat = .PlainText;
item.detail = item.label;
item.labelDetails = .{ .detail = it[s .. e + 1], .description = it[e + 1 ..] };