Skip to content

Commit 4a664f8

Browse files
committed
Increase max completion items
1 parent 6e3a549 commit 4a664f8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

nixd/lib/Controller/Completion.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ namespace {
3131
/// Set max completion size to this value, we don't want to send large lists
3232
/// because of slow IO.
3333
/// Items exceed this size should be marked "incomplete" and recomputed.
34-
constexpr int MaxCompletionSize = 30;
34+
constexpr int MaxCompletionSize = 1000;
3535

3636
CompletionItemKind OptionKind = CompletionItemKind::Constructor;
3737
CompletionItemKind OptionAttrKind = CompletionItemKind::Class;

nixd/lib/Eval/AttrSetProvider.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ using namespace lspserver;
1414

1515
namespace {
1616

17-
constexpr int MaxItems = 30;
17+
constexpr int MaxItems = 1000;
1818

1919
void fillString(nix::EvalState &State, nix::Value &V,
2020
const std::vector<std::string_view> &AttrPath,

0 commit comments

Comments
 (0)