mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 20:11:12 +01:00
language-server: Stub out support for some messages we don't handle yet. (#7637)
This suppresses warnings for unhandled messages where we currently have nothing to do. No functionality change, except for less spam in the VS Code output tab. Assisted-by: Claude Code
This commit is contained in:
@@ -115,6 +115,19 @@ auto HandleDidChangeTextDocument(
|
||||
}
|
||||
}
|
||||
|
||||
// Implements `textDocument/didSave`:
|
||||
// https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocument_didSave
|
||||
auto HandleDidSaveTextDocument(
|
||||
Context& /*context*/,
|
||||
const clang::clangd::DidSaveTextDocumentParams& /*params*/) -> void {
|
||||
// Saving doesn't change the content we're tracking: we always use the text
|
||||
// provided by the client, which is already up-to-date from `didChange`. We
|
||||
// handle this rather than warning about an unsupported notification.
|
||||
// TODO: Other open files that import this one may now be stale, because they
|
||||
// read it from disk rather than from the client. Re-check them here, or
|
||||
// handle `workspace/didChangeWatchedFiles` instead.
|
||||
}
|
||||
|
||||
// Implements `textDocument/didClose`:
|
||||
// https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocument_didClose
|
||||
auto HandleDidCloseTextDocument(
|
||||
|
||||
Reference in New Issue
Block a user