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

Method OnDidOpen

CodeFormatServer/src/LSP/LSPHandle.cpp:131–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129}
130
131std::shared_ptr<lsp::Serializable> LSPHandle::OnDidOpen(
132 std::shared_ptr<lsp::DidOpenTextDocumentParams> params) {
133 _server->GetVFS().UpdateFile(params->textDocument.uri, std::move(params->textDocument.text));
134 return nullptr;
135}
136
137std::shared_ptr<lsp::Serializable> LSPHandle::OnFormatting(
138 std::shared_ptr<lsp::DocumentFormattingParams> params) {

Callers

nothing calls this directly

Calls 1

UpdateFileMethod · 0.80

Tested by

no test coverage detected