Integrated: 8366691: JShell should support a more convenient completion
Jan Lahoda
jlahoda at openjdk.org
Wed Nov 12 07:18:15 UTC 2025
On Tue, 2 Sep 2025 13:05:01 GMT, Jan Lahoda <jlahoda at openjdk.org> wrote:
> JShell tool has the code completion feature in the terminal, allowing to tab-complete inputs. The JShell engine also has an API to compute the completions. But, the API is more suitable for a terminal-based UI, not for a GUI.
>
> The goal in this PR is to provide an API that would allow better code completions in GUI frontends for JShell.
>
> The main idea here is that the user of the API will get information could the context and `Element` that can continue the current input, and can produce UI elements/strings out of this information as necessary.
>
> The apidiff for the current API is available here:
> https://cr.openjdk.org/~jlahoda/8366691/JDK-8366691.00/
This pull request has now been integrated.
Changeset: 76a0732b
Author: Jan Lahoda <jlahoda at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/76a0732ba5c0f3159ed0ebc5fcb2dfb7117b38cd
Stats: 954 lines in 8 files changed: 792 ins; 73 del; 89 mod
8366691: JShell should support a more convenient completion
Reviewed-by: asotona
-------------
PR: https://git.openjdk.org/jdk/pull/27049
More information about the compiler-dev
mailing list