* adding the initial code for sorting on save setting
* adding code, it is working, but how to get the text editor options
* cleaning the code
* making the callback synchronous, why does waitUntil not work
* removed unwated edit
* previously the check on is text edit instance was throwing an error, now checking manually that it is working
* chaning the return type of `getOptionsForDocument` to udnefined by default
* Convert to TextEdit instances
---------
* temporarily changing the funcion onFromat to be able to trigger the sorting on real examples
* adding the DocumentSortingRequest
* accesssing directly the text edits from the request
* added code in order to provide the link between the json sorting capabiliites and vscode
* adapting to the new api output of the sort function
* instead of using await use then inside of the command that registers
* textEditor replaces window.activeTextEditor
* adding changes from review
* update service
* use SortOptions
---------
Co-authored-by: Martin Aeschlimann <martinae@microsoft.com>
* Adding the keepLines feature into the settings so the user can format while keeping the original line positions in json documents
* update service
* update dependencies
Co-authored-by: Martin Aeschlimann <martinae@microsoft.com>