Summary
Add support for textDocument/inlineCompletion (LSP 3.18 feature) to the Liberty Language Server (liberty-ls) to provide inline completion suggestions (ghost text) for Liberty configuration files (server.env, bootstrap.properties).
Motivation
Inline completion provides a better developer experience by showing completion suggestions directly in the editor as grayed-out text at the cursor position, similar to GitHub Copilot. This is more intuitive than traditional completion popups and helps developers discover Liberty configuration properties faster.
Proposed Solution
Implement inline completion using an adapter pattern that reuses existing completion logic from LibertyPropertiesCompletionProvider. This ensures:
- Zero code duplication
- Consistency between traditional and inline completions
- Easy maintenance
Summary
Add support for
textDocument/inlineCompletion(LSP 3.18 feature) to the Liberty Language Server (liberty-ls) to provide inline completion suggestions (ghost text) for Liberty configuration files (server.env, bootstrap.properties).Motivation
Inline completion provides a better developer experience by showing completion suggestions directly in the editor as grayed-out text at the cursor position, similar to GitHub Copilot. This is more intuitive than traditional completion popups and helps developers discover Liberty configuration properties faster.
Proposed Solution
Implement inline completion using an adapter pattern that reuses existing completion logic from
LibertyPropertiesCompletionProvider. This ensures: