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

On 21 Apr 2017, at 11:39, Eric Moffatt wrote:

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...).

On LSP a server can let client know about the trigger characters with CompletionItem::triggerCharacters which is an array of characters.
JDT LS registers . @ # [1] for all clients.

On VS Code, the triggering of code completion on [a-z][A-Z]characters is the default behaviour and are not controlled by the language servers.

[1] https://github.com/eclipse/eclipse.jdt.ls/blob/4a1e63df5f3291fda4deb6a72d4d391b1fe4b22f/org.eclipse.jdt.ls.core/src/org/eclipse/jdt/ls/core/internal/handlers/InitHandler.java#L86

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: &lt;[ide-dev-bounces@xxxxxxxxxxx](<mailto:ide-dev-bounces@xxxxxxxxxxx>)&gt; on behalf of Eric Moffatt &lt;[emoffatt@xxxxxxxxxx](<mailto:emoffatt@xxxxxxxxxx>)&gt;

Reply-To: Discussions about the IDE &lt;[ide-dev@xxxxxxxxxxx](<mailto:ide-dev@xxxxxxxxxxx>)&gt;
Date: Friday, April 21, 2017 at 10:20 AM
To: "[ide-dev@xxxxxxxxxxx](<mailto:ide-dev@xxxxxxxxxxx>)" &lt;[ide-dev@xxxxxxxxxxx](<mailto:ide-dev@xxxxxxxxxxx>)&gt;
Subject: Re: [ide-dev] Auto content assist

For at least some editors (java) this can be controlled through preferences...Preferences-&gt;Java-&gt;Editor-&gt;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 &lt;[mistria@xxxxxxxxxx](<mailto:mistria@xxxxxxxxxx>)&gt;
Sent by: [ide-dev-bounces@xxxxxxxxxxx](<mailto:ide-dev-bounces@xxxxxxxxxxx>)
To: [ide-dev@xxxxxxxxxxx](<mailto: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](<http://developers.redhat.com>)
[My blog](<http://mickaelistria.wordpress.com>) \- [My Tweets](<http://twitter.com/mickaelistria>)

_______________________________________________

ide-dev mailing list
[ide-dev@xxxxxxxxxxx](<mailto: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