[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::TextDocumentDidChange:
case IpcId::TextDocumentDidClose: case IpcId::TextDocumentDidClose:
case IpcId::TextDocumentDidSave: case IpcId::TextDocumentDidSave:
case IpcId::TextDocumentFormatting:
case IpcId::TextDocumentRangeFormatting:
case IpcId::TextDocumentOnTypeFormatting:
case IpcId::TextDocumentRename: case IpcId::TextDocumentRename:
case IpcId::TextDocumentCompletion: case IpcId::TextDocumentCompletion:
case IpcId::TextDocumentSignatureHelp: case IpcId::TextDocumentSignatureHelp:

View File

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

View File

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