mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-29 14:54:56 +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:
@@ -32,6 +32,7 @@ auto HandleInitialize(
|
||||
|
||||
llvm::json::Object capabilities{{"declarationProvider", true},
|
||||
{"definitionProvider", true},
|
||||
{"documentFormattingProvider", true},
|
||||
{"documentSymbolProvider", true},
|
||||
{"hoverProvider", true},
|
||||
{"positionEncoding", encoding},
|
||||
|
||||
Reference in New Issue
Block a user