Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ide-dev] Auto content assist

> The foremost issue is what Mickael Istria mentioned: the completion API needs to be adapted to work in asynchronous mode, instead of in the UI thread. Otherwise, enabling auto-invocation of completion is almost certain to be a grief to the user.

I disagree with that. The existing JDT content assist is expected to return results fast. Slow completion processors are flagged and disabled. So, there won't be more delay than when you currently type '.' or invoke Ctrl+Space. Did you try it before commenting here?

Dani



From:        Bruno Medeiros <bruno.do.medeiros@xxxxxxxxx>
To:        Discussions about the IDE <ide-dev@xxxxxxxxxxx>
Date:        21.04.2017 19:18
Subject:        Re: [ide-dev] Auto content assist
Sent by:        ide-dev-bounces@xxxxxxxxxxx




The issue is not whether to use a workaround or not - it's quite easy to add a preference that auto-invokes completion with any keypress.

The foremost issue is what Mickael Istria mentioned: the completion API needs to be adapted to work in asynchronous mode, instead of in the UI thread. Otherwise, enabling auto-invocation of completion is almost certain to be a grief to the user.

On 21 April 2017 at 16:42, Daniel Megert <daniel_megert@xxxxxxxxxx> wrote:
There's no need for a regex or adding more complexity. Entering the characters is just a current hack/workaround. What we would have to add is support to support auto-completion at any position after the specified delay.

Dani




From:        
"Eric Moffatt" <emoffatt@xxxxxxxxxx>
To:        
ide-dev@xxxxxxxxxxx
Date:        
21.04.2017 17:39
Subject:        
Re: [ide-dev] Auto content assist
Sent by:        
ide-dev-bounces@xxxxxxxxxxx





Good point....would an exclusion string or RegExp work ?
 
Perhaps it's irrelevant; the concept of content assist 'trigger' sounds like it's language specific (in more ways than one...;-). Is there an LSP concept for this ? To get the best experience we need to have as much context as possible to filter / rank the results (things like whether the editor is expecting a field, methods with different args...).
 
Just for my interest do you know how close preference change approach comes to mimicking IJ ?
 
Eric
 
----- Original message -----
From: Doug Schaefer <
dschaefer@xxxxxxxxxxxxxx>
Sent by:
ide-dev-bounces@xxxxxxxxxxx
To: Discussions about the IDE <
ide-dev@xxxxxxxxxxx>
Cc:
Subject: Re: [ide-dev] Auto content assist
Date: Fri, Apr 21, 2017 10:54 AM


What if I’m using Unicode characters in my identifiers, do I have to enter all 32000? Sorry, that workaround is a bit silly. And it sounds like there are a lot of issues to solve before we even get there anyway.
 
Doug
 

From:
<
ide-dev-bounces@xxxxxxxxxxx> on behalf of Eric Moffatt <emoffatt@xxxxxxxxxx>
Reply-To:
Discussions about the IDE <
ide-dev@xxxxxxxxxxx>
Date:
Friday, April 21, 2017 at 10:20 AM
To:
"
ide-dev@xxxxxxxxxxx" <ide-dev@xxxxxxxxxxx>
Subject:
Re: [ide-dev] Auto content assist

 
For at least some editors (java) this can be controlled through preferences...Preferences->Java->Editor->content assist has a value called 'Auto-activation triggers for java'. it's defaults to '.' but if you change it to 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ.' then it'll always invoke content assist (much closer to the IJ feel).
 
Onwards,
Eric
 
 
----- Original message -----
From: Mickael Istria <
mistria@xxxxxxxxxx>
Sent by:
ide-dev-bounces@xxxxxxxxxxx
To:
ide-dev@xxxxxxxxxxx
Cc:
Subject: Re: [ide-dev] Auto content assist
Date: Fri, Apr 21, 2017 6:18 AM


On 04/21/2017 04:25 AM, Doug Schaefer wrote:
Then I switched back to Eclipse to do some CDT work and typed the beginning of an identifier and expected content assist to just pop up. I forgot that I had to ask the editor to pop it up for me. Auto content assist is one of those features that once you start using it just becomes natural.
It's also a reason why some people do prefer IJ for Java development. Auto content-assist is a must-have nowadays.
--
Mickael Istria
Eclipse developer for
Red Hat Developers
My blog - My Tweets
_______________________________________________
ide-dev mailing list

ide-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit

https://dev.eclipse.org/mailman/listinfo/ide-dev
 

_______________________________________________
ide-dev mailing list

ide-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit

https://dev.eclipse.org/mailman/listinfo/ide-dev
 

_______________________________________________
ide-dev mailing list

ide-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit

https://dev.eclipse.org/mailman/listinfo/ide-dev



_______________________________________________
ide-dev mailing list

ide-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit

https://dev.eclipse.org/mailman/listinfo/ide-dev



--

Bruno Medeiros
https://twitter.com/brunodomedeiros_______________________________________________
ide-dev mailing list
ide-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/ide-dev



Back to the top