mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-15 04:08:32 +00: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:
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},
|
||||
|
||||
Reference in new issue
Block a user