Use current state to compute format edit range

Previously, the server computed the "whole document" edit range from the
formatted document, which produced weird results if the formatter
removed lines, etc (e.g. `{\n}` --> `{}`).

Now, we use the current state to compute the edit range, as intended.

Fixed: 103606
Change-Id: I99b373f73667ce1c4284f98dc56a159d55820c80
Reviewed-on: https://fuchsia-review.googlesource.com/c/fidl-misc/+/707825
Reviewed-by: Alex Zaslavsky <azaslavsky@google.com>
Reviewed-by: Solly Ross <sollyross@google.com>
1 file changed
tree: cf49da19a5a4161c4347a7293291299be17e5220
  1. fidl-lsp/
  2. fidldev/
  3. fidlviz/
  4. mu-fidl/
  5. vscode-language-fidl/
  6. .gitignore
  7. .vscodeignore
  8. AUTHORS
  9. CONTRIBUTING.md
  10. LICENSE
  11. PATENTS
  12. README.md
README.md

Fuchsia Open Source Template Repository

This repository is a template that we will use when creating new open source repositories for Fuchsia.