Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [Dltk-dev] Code completion fails to work with no prefix

Hi Gerald,

The change was intended to model the JDT behavior - it does not display all template proposals on the blank line.

I have just introduced the new method
protected boolean isValidPrefix(String prefix) in CVS HEAD (to be released as 1.0 in September) so you can override it if needed.

Regards,
Alex


Gerald Rosenberg wrote:
Upgrading my plugin to DLTK 0.95 from 0.91 (if memory serves).

In the earlier version, code completion (ctrl-space) on a blank line used to pull up all templates for the current partition.

With 0.95, code completion on a blank line now produces a message in the status bar: No completions available.

Looks like ScriptTemplateCompletionProcessor#computeCompletionProposals (line 83) absolutely requires a prefix.

Was this an intended change? Is there a preferred way to get back the old behavior?

Thanks.

_______________________________________________
dltk-dev mailing list
dltk-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/dltk-dev


Back to the top