[hack] implement textDocument/rangeFormatting
[hack] implement textDocument/rangeFormatting

Summary:
This implements range-formatting.

(I've put in parsing for document-formatting as well since the two share lots of parsing, but it will require heavier work, which I'm leaving for a future diff.)

This current diff involved fixing an off-by-one bug in ServerFormat.go_ide. That was only ever invoked in one place (clientIde.ml) and had never been hooked up to Nuclide.

Reviewed By: arxanas

Differential Revision: D4805304

fbshipit-source-id: ec24b7014ce2bcbf6f204dc2d3f7f6c403e09043

jamesgpearce/flow,fletcherw/flow,nmote/flow,facebook/flow,popham/flow,ylu1317/flow,popham/flow,samwgoldman/flow,samwgoldman/flow,mroch/flow,claudiopro/flow,fletcherw/flow,jamesgpearce/flow,samwgoldman/flow,ylu1317/flow,JonathanUsername/flow,mroch/flow,TiddoLangerak/flow,gabelevi/flow,nmote/flow,jamesgpearce/flow,jamesgpearce/flow,MichaelDeBoey/flow,JonathanUsername/flow,fletcherw/flow,gabelevi/flow,mroch/flow,samwgoldman/flow,ylu1317/flow,facebook/flow,MichaelDeBoey/flow,popham/flow,facebook/flow,fletcherw/flow,facebook/flow,TiddoLangerak/flow,claudiopro/flow,AgentME/flow,MichaelDeBoey/flow,gabelevi/flow,facebook/flow,nmote/flow,popham/flow,claudiopro/flow,MichaelDeBoey/flow,JonathanUsername/flow,AgentME/flow,ylu1317/flow,nmote/flow,popham/flow,fletcherw/flow,AgentME/flow,gabelevi/flow,gabelevi/flow,JonathanUsername/flow,JonathanUsername/flow,samwgoldman/flow,facebook/flow,nmote/flow,AgentME/flow,JonathanUsername/flow,nmote/flow,mroch/flow,ylu1317/flow,gabelevi/flow,mroch/flow,TiddoLangerak/flow,TiddoLangerak/flow,claudiopro/flow,samwgoldman/flow,fletcherw/flow,popham/flow,jamesgpearce/flow,JonathanUsername/flow,TiddoLangerak/flow,popham/flow,nmote/flow,samwgoldman/flow,jamesgpearce/flow,claudiopro/flow,mroch/flow,jamesgpearce/flow,MichaelDeBoey/flow,gabelevi/flow,mroch/flow,facebook/flow,AgentME/flow