Browse Source

Language client: improved search for lsp configuration response file

master
eidheim 1 month ago
parent
commit
a589edeaff
  1. 3
      src/source_language_protocol.cpp

3
src/source_language_protocol.cpp

@ -680,7 +680,8 @@ void LanguageProtocol::Client::handle_server_request(const boost::variant<size_t
write_response(id, "{}"); write_response(id, "{}");
} }
else if(method == "workspace/configuration") { else if(method == "workspace/configuration") {
auto search_path = root_path; auto current_view = Notebook::get().get_current_view();
auto search_path = current_view && filesystem::file_in_path(current_view->file_path, root_path) ? current_view->file_path.parent_path() : root_path;
auto file = '.' + language_id + "-lsp-configuration-response.json"; auto file = '.' + language_id + "-lsp-configuration-response.json";
boost::filesystem::path settings_path; boost::filesystem::path settings_path;
while(true) { while(true) {

Loading…
Cancel
Save