nixd
|
Main RPC class for attrset provider. More...
#include <AttrSetProvider.h>
Additional Inherited Members | |
Protected Attributes inherited from lspserver::LSPServer | |
HandlerRegistry | Registry |
template<class T > | |
llvm::unique_function< void(const T &) | mkOutNotifiction )(llvm::StringRef Method, OutboundPort *O=nullptr) |
template<class ParamTy , class ResponseTy > | |
llvm::unique_function< void(const ParamTy &, Callback< ResponseTy >) | mkOutMethod )(llvm::StringRef Method, OutboundPort *O=nullptr) |
Main RPC class for attrset provider.
Definition at line 31 of file AttrSetProvider.h.
AttrSetProvider::AttrSetProvider | ( | std::unique_ptr< lspserver::InboundPort > | In, |
std::unique_ptr< lspserver::OutboundPort > | Out ) |
Definition at line 160 of file AttrSetProvider.cpp.
void AttrSetProvider::onAttrPathComplete | ( | const AttrPathCompleteParams & | Params, |
lspserver::Callback< AttrPathCompleteResponse > | Reply ) |
Complete attrpath entries.
Definition at line 216 of file AttrSetProvider.cpp.
References lspserver::error(), nixd::fromJSON(), and nixt::selectStrings().
void AttrSetProvider::onAttrPathInfo | ( | const AttrPathInfoParams & | AttrPath, |
lspserver::Callback< AttrPathInfoResponse > | Reply ) |
Query attrpath information.
Definition at line 193 of file AttrSetProvider.cpp.
References lspserver::error(), nixd::fromJSON(), and nixt::selectStrings().
void AttrSetProvider::onEvalExpr | ( | const EvalExprParams & | Name, |
lspserver::Callback< EvalExprResponse > | Reply ) |
Eval an expression, use it for furthur requests.
Definition at line 175 of file AttrSetProvider.cpp.
References lspserver::error(), and nixd::fromJSON().
void AttrSetProvider::onOptionComplete | ( | const AttrPathCompleteParams & | Params, |
lspserver::Callback< OptionCompleteResponse > | Reply ) |
Complete attrpath entries. However dive into submodules while selecting.
FIXME: suppport list names. i.e. foo.*.submodule
Definition at line 286 of file AttrSetProvider.cpp.
References lspserver::error(), nixd::fromJSON(), nixt::isOption(), nixd::OptionField::Name, nixt::selectOptions(), and nixt::toSymbols().
void AttrSetProvider::onOptionInfo | ( | const AttrPathInfoParams & | AttrPath, |
lspserver::Callback< OptionInfoResponse > | Reply ) |
Provide option information on given attrpath.
Definition at line 259 of file AttrSetProvider.cpp.
References lspserver::error(), nixd::fromJSON(), nixt::selectOptions(), and nixt::toSymbols().