Commit 132763e0 authored by Mark Nauwelaerts's avatar Mark Nauwelaerts
Browse files

lscplient: also update state on document reload signal

parent 69bbb046
......@@ -2334,6 +2334,7 @@ public:
if (doc) {
connect(doc, &KTextEditor::Document::textChanged, this, &self_type::onTextChanged, Qt::UniqueConnection);
connect(doc, &KTextEditor::Document::documentUrlChanged, this, &self_type::onDocumentUrlChanged, Qt::UniqueConnection);
connect(doc, &KTextEditor::Document::reloaded, this, &self_type::updateState, Qt::UniqueConnection);
}
// only consider basename (full path may have been custom specified)
auto lspServer = QFileInfo(server->cmdline().front()).fileName();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment