I think LSP's (language service provider) could be used to build interesting UX in text editors.
As a boring example: "git add this hunk" could be offered as a code action by a git LSP.
Nowadays said command is usually an editor native command. With an LSP, the benefit would be that it'd "just work" across editors.
Though that might end up being a pandora's box for the protocol.