LSP Client advances. Some LSPs are responding fine.

This commit is contained in:
Martín Lucas Golini
2022-10-31 22:14:09 -03:00
parent ab9bd56a49
commit bc5188ec28
15 changed files with 646 additions and 137 deletions

View File

@@ -2,6 +2,7 @@
#include "lspclientserver.hpp"
#include <eepp/system/filesystem.hpp>
#include <eepp/system/iostreamstring.hpp>
#include <eepp/system/log.hpp>
using namespace EE::System;
@@ -12,6 +13,8 @@ LSPDocumentClient::LSPDocumentClient( LSPClientServer* server, TextDocument* doc
notifyOpen();
}
LSPDocumentClient::~LSPDocumentClient() {}
void LSPDocumentClient::onDocumentTextChanged() {
mModified = true;
++mVersion;
@@ -35,7 +38,6 @@ void LSPDocumentClient::onDocumentSaved( TextDocument* ) {
void LSPDocumentClient::onDocumentClosed( TextDocument* ) {
mServer->didClose( mDoc );
mDoc = nullptr;
}
void LSPDocumentClient::onDocumentDirtyOnFileSystem( TextDocument* ) {}