Re: Plugin interaction

Christoph Cullmann <[email protected]>
Newsgroups gmane.comp.kde.devel.kwrite
Message-ID <[email protected]>
On 2020-04-14 06:58, [email protected] 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.