mirror of
https://github.com/MaskRay/ccls.git
synced 2025-02-07 17:32:14 +00:00
Flush sessions on textDocument/didOpen
This commit is contained in:
parent
958422e77f
commit
1afb6c3988
@ -7,6 +7,8 @@
|
|||||||
#include "timer.h"
|
#include "timer.h"
|
||||||
#include "working_files.h"
|
#include "working_files.h"
|
||||||
|
|
||||||
|
#include <loguru.hpp>
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
// Open, view, change, close file
|
// Open, view, change, close file
|
||||||
struct Ipc_TextDocumentDidOpen
|
struct Ipc_TextDocumentDidOpen
|
||||||
@ -65,6 +67,9 @@ struct TextDocumentDidOpenHandler
|
|||||||
entry.filename, params.args.size() ? params.args : entry.args,
|
entry.filename, params.args.size() ? params.args : entry.args,
|
||||||
true /*is_interactive*/, params.textDocument.text, cache_manager),
|
true /*is_interactive*/, params.textDocument.text, cache_manager),
|
||||||
true /* priority */);
|
true /* priority */);
|
||||||
|
|
||||||
|
clang_complete->FlushSession(entry.filename);
|
||||||
|
LOG_S(INFO) << "Flushed clang complete sessions for " << entry.filename;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
REGISTER_MESSAGE_HANDLER(TextDocumentDidOpenHandler);
|
REGISTER_MESSAGE_HANDLER(TextDocumentDidOpenHandler);
|
||||||
|
Loading…
Reference in New Issue
Block a user