mirror of
https://github.com/MaskRay/ccls.git
synced 2025-01-19 12:05:50 +00:00
Fix textDocument/didClose to use TextDocumentIdentifier
This commit is contained in:
parent
45cb0b8cc5
commit
feb0249350
@ -6,7 +6,7 @@
|
||||
namespace {
|
||||
struct Ipc_TextDocumentDidClose : public IpcMessage<Ipc_TextDocumentDidClose> {
|
||||
struct Params {
|
||||
lsTextDocumentItem textDocument;
|
||||
lsTextDocumentIdentifier textDocument;
|
||||
};
|
||||
|
||||
const static IpcId kIpcId = IpcId::TextDocumentDidClose;
|
||||
|
@ -356,7 +356,7 @@ void WorkingFiles::OnChange(const lsTextDocumentDidChangeParams& change) {
|
||||
}
|
||||
}
|
||||
|
||||
void WorkingFiles::OnClose(const lsTextDocumentItem& close) {
|
||||
void WorkingFiles::OnClose(const lsTextDocumentIdentifier& close) {
|
||||
std::lock_guard<std::mutex> lock(files_mutex);
|
||||
|
||||
std::string filename = close.uri.GetPath();
|
||||
|
@ -104,7 +104,7 @@ struct WorkingFiles {
|
||||
|
||||
WorkingFile* OnOpen(const lsTextDocumentItem& open);
|
||||
void OnChange(const lsTextDocumentDidChangeParams& change);
|
||||
void OnClose(const lsTextDocumentItem& close);
|
||||
void OnClose(const lsTextDocumentIdentifier& close);
|
||||
|
||||
// If |filter_paths| is non-empty, only files which contain any of the given
|
||||
// strings. For example, {"foo", "bar"} means that every result has either the
|
||||
|
Loading…
Reference in New Issue
Block a user