Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion nixd/lib/Controller/Completion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ struct ExceedSizeError : std::exception {
};

void addItem(std::vector<CompletionItem> &Items, CompletionItem Item) {
Items.emplace_back(std::move(Item));
if (Items.size() >= MaxCompletionSize) {
throw ExceedSizeError();
}
Items.emplace_back(std::move(Item));
}

bool hasConcreteChild(const Node &N) {
Expand Down
2 changes: 1 addition & 1 deletion nixd/tools/nixd/test/completion/options-incomplete.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
CHECK: "id": 1,
CHECK-NEXT: "jsonrpc": "2.0",
CHECK-NEXT: "result": {
CHECK-NEXT: "isIncomplete": false,
CHECK-NEXT: "isIncomplete": true,
```


Expand Down
Loading