mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 12:11:04 +01:00
Implement lsp/formatting for Carbon::LanguageServer (#7688)
Implements formatting support within LSP. Current implementation performs while file formatting, we just replace file with output of Carbon::Format() https://github.com/carbon-language/carbon-lang/pull/7687 independently improves formatting so that this output is somewhat decent. Assisted-With: Gemini / Antigravity
This commit is contained in:
@@ -76,6 +76,7 @@ IncomingMessages::IncomingMessages(clang::clangd::Transport* transport,
|
||||
AddCallHandler("textDocument/declaration", &HandleDefinition);
|
||||
AddCallHandler("textDocument/definition", &HandleDefinition);
|
||||
AddCallHandler("textDocument/documentSymbol", &HandleDocumentSymbol);
|
||||
AddCallHandler("textDocument/formatting", &HandleFormatting);
|
||||
AddCallHandler("textDocument/hover", &HandleHover);
|
||||
AddCallHandler("textDocument/references", &HandleReferences);
|
||||
AddCallHandler("textDocument/typeDefinition", &HandleTypeDefinition);
|
||||
|
||||
Reference in New Issue
Block a user