Ok, I'll operate under this assumption.
My current approach would be that I try to map the command id
that I get back from the language server to a registred action in
the IDE. If I find one I just call it with whatever parameters
came back from the language server.
The idea is to provide two generic actions "apply text edit"
(which applies changes to the current editor) and "apply workspace
edit" (which applies changes to multiple files in the workspace).
Language server launchers are free to provide more actions as they
see fit.
Does that sound like a plan?
/Thomas
On 03.03.2017 19:42, Tyler Jewell
wrote:
I believe that
all changes are ultimately saved before the actions are
invoked. Otherwise you end up into situations where there can
be weird race conditions.
Vitalii, Evgen,
Anatoliy, or Dmitry would have the precise answer.
_______________________________________________
che-dev mailing list
che-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/che-dev