Plugin interaction
Christoph Cullmann
christoph at cullmann.io
Sat Sep 12 15:36:24 BST 2020
On 2020-04-14 06:58, vlasov at academ.org wrote:
> Hi all,
>
> I'm developing some advanced features for two languages, namely flow
> [1] and Russell [2], and I want to use LSP plugin for interaction with
> language server. For this purpose I need to establish interaction
> between my plugins and LSP plugin so that I could pass a message to a
> plugin and receive an answer via a callback. Right now I don't see a
> possibility to do it via the current KTextEditor::Plugin interface.
> Maybe it is worth adding a method like
>
> virtual void passMessage(const QString& message, void (callback)(const
> QString& answer)) {
> callback(QString());
> }
>
> to the KTextEditor::Plugin with the default implementation ?
Hi,
Sorry I missed this. Search and project plugin communicate via Qt
properties, for generic dispatch of stuff one could just use the Qt meta
type system and invoke.
Greetings
Christoph
>
> Regards, Dmitry Vlasov
>
>
> Links:
> ------
> [1] https://github.com/area9innovation/flow9
> [2] https://github.com/dmitry-vlasov/russell-flow
--
Ignorance is bliss...
https://cullmann.io | https://kate-editor.org
More information about the KWrite-Devel
mailing list