Browse Source

Language protocol: added go to declaration through control/apple-left mouse click

merge-requests/365/head
eidheim 8 years ago
parent
commit
f61eda58d0
  1. 7
      src/source_language_protocol.cc

7
src/source_language_protocol.cc

@ -431,6 +431,13 @@ void Source::LanguageProtocolView::setup_navigation_and_refactoring() {
Info::get().print("No declaration found");
return offset;
};
get_declaration_or_implementation_locations=[this]() {
std::vector<Offset> offsets;
auto offset=get_declaration_location();
if(offset)
offsets.emplace_back(std::move(offset));
return offsets;
};
}
if(capabilities.references) {

Loading…
Cancel
Save