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:
DavidLoftus authored and GitHub committed 2026-08-31 16:38:38 +00:00
1 parent f519cccaf2
commit dc2ee5bd5e
31 files changed
+379 -25

No files matched your search

@@ -32,6 +32,7 @@ auto HandleInitialize(
llvm::json::Object capabilities{{"declarationProvider", true},
{"definitionProvider", true},
{"documentFormattingProvider", true},
{"documentSymbolProvider", true},
{"hoverProvider", true},
{"positionEncoding", encoding},