MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / ClearFile

Method ClearFile

CodeFormatServer/src/VFS/VirtualFileSystem.cpp:85–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85void VirtualFileSystem::ClearFile(std::string_view uri) {
86 std::string stringUri(uri);
87 auto opFileId = _uriDB.Query(stringUri);
88 if (opFileId.has_value()) {
89 auto fieldId = opFileId.value();
90 _uriDB.Delete(stringUri);
91 _fileDB.Delete(fieldId);
92 _lineIndexDB.Delete(fieldId);
93 }
94}
95//
96//void LanguageServer::DiagnosticFile(std::string_view uri, std::string_view prevId,
97// std::shared_ptr<lsp::DocumentDiagnosticReport> report) {

Callers 1

OnCloseMethod · 0.80

Calls 3

QueryMethod · 0.45
valueMethod · 0.45
DeleteMethod · 0.45

Tested by

no test coverage detected