[formatting] Add missing cases

This commit is contained in:
Fangrui Song 2017-12-31 14:52:06 -08:00
parent 7529973014
commit c97bc5dbac
3 changed files with 9 additions and 0 deletions

View File

@ -268,6 +268,9 @@ void LaunchStdinLoop(Config* config,
case IpcId::TextDocumentDidChange:
case IpcId::TextDocumentDidClose:
case IpcId::TextDocumentDidSave:
case IpcId::TextDocumentFormatting:
case IpcId::TextDocumentRangeFormatting:
case IpcId::TextDocumentOnTypeFormatting:
case IpcId::TextDocumentRename:
case IpcId::TextDocumentCompletion:
case IpcId::TextDocumentSignatureHelp:

View File

@ -36,6 +36,10 @@ const char* IpcIdToString(IpcId id) {
return "textDocument/hover";
case IpcId::TextDocumentFormatting:
return "textDocument/formatting";
case IpcId::TextDocumentRangeFormatting:
return "textDocument/rangeFormatting";
case IpcId::TextDocumentOnTypeFormatting:
return "textDocument/onTypeFormatting";
case IpcId::TextDocumentReferences:
return "textDocument/references";
case IpcId::TextDocumentDocumentSymbol:

View File

@ -23,6 +23,8 @@ enum class IpcId : int {
TextDocumentDocumentHighlight,
TextDocumentHover,
TextDocumentFormatting,
TextDocumentRangeFormatting,
TextDocumentOnTypeFormatting,
TextDocumentReferences,
TextDocumentDocumentSymbol,
TextDocumentDocumentLink,