Skip to content

Commit

Permalink
fixup! nixd/Eval: rename attrpathInfo -> packageInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
inclyc committed Jul 16, 2024
1 parent 62efb7c commit 94af9c0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nixd/include/nixd/Eval/AttrSetProvider.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class AttrSetProvider : public lspserver::LSPServer {
lspserver::Callback<AttrPathCompleteResponse> Reply);

/// \brief Provide option information on given attrpath.
void onOptionInfo(const PackageInfoParams &AttrPath,
void onOptionInfo(const OptionInfoParams &AttrPath,
lspserver::Callback<OptionInfoResponse> Reply);

/// \brief Complete attrpath entries. However dive into submodules while
Expand Down
6 changes: 5 additions & 1 deletion nixd/include/nixd/Protocol/AttrSet.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ constexpr inline std::string_view Exit = "exit";
using EvalExprParams = std::string;
using EvalExprResponse = std::optional<std::string>;

using PackageInfoParams = std::vector<std::string>;
/// A list of strings that "select"s into a attribute set.
using Selector = std::vector<std::string>;

using PackageInfoParams = Selector;
using OptionInfoParams = Selector;

struct PackageDescription {
std::optional<std::string> Name;
Expand Down

0 comments on commit 94af9c0

Please sign in to comment.