AutoCompletion popup after custom symbol ?

Hi!

I want to set the autocompletion to popup after colon in my custom language plugin.
Is there a way to do this ? Maybe regestering some provider ?

Thanks

8 comments
Comment actions Permalink

Implement your completion data:


and register the completion data:

0
Comment actions Permalink

I did this:

and this:


However in the second implementation my custom action in my handler is called while in the first one not. But it still does not popup the completion automatically.

0
Comment actions Permalink

Seems, the first and second blocks of code are same... Please explain what you did.

0
Comment actions Permalink

The difference is in the filter you pass to CompletionVariant:

in the first case it was

and in the second just

0
Comment actions Permalink

It's my mistake. Sure, use the variant without NotFilter:

0
Comment actions Permalink

So the problem is that this variant is processed because it's handler is called instead of the default one,
but i cannot pop it up automatically.

I tried doing

but to no avail.

0
Comment actions Permalink

I registered the fixed completion variant from my first message (don't use NotFilter in variant constructor) and if I type "^" symbol in the attribute name then the MyCompletionData.completeReference() method is called.

0
Comment actions Permalink

I can't get it working like this.
I get completeReference only after ctrl+space.

Could you please post your whole completionData class ?

0

Please sign in to leave a comment.