UI Component for lsp4jakarta: Jakarta Version Selection Prompt when Multiple Versions Detected

Aperta
#705 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
55/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
java
Ambito
desktop, devtools

Direzione di ricerca

Start by tracing how LTE handles JSON requests from the LSP4Jakarta language server; no source files or tests are named in the issue. Review UFO slide 18 for the dialog design, then identify the request and response flow. Done means Eclipse displays the detected versions, returns the selected version, and supports the described change-version action.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Summary

Implement the UI version-selection prompt in Liberty Tools for Eclipse (LTE) that is triggered when the LSP4Jakarta language server detects multiple Jakarta EE versions on the project classpath.

Background

As part of the version-aware LSP4Jakarta support (Jakarta EE 9, 10, and 11), the language server performs version detection. When a single version is found, it is used automatically without any prompt. When multiple versions are detected (e.g., EJB 10 and Validation 11 coexist on the class path), the language server sends a json request to the LTE client that includes the list of detected Jakarta EE versions. LTE must present this list to the user so they can select their desired version.

The user prompt design is captured in the UFO slide deck (slide 18 – "User Prompt Design").
This issue covers the LTE-specific implementation of that dialog and the associated "Change Jakarta version" action.

Change Jakarta version: Let’s add a 'Change Jakarta Version' option in the IDE. So users can switch from their current selection instead of being stuck. That way, we can stop showing repeated warnings about multiple versions. We should show the currently selected version clearly, so they know what they’re switching from.

Extended Client Capabilities — jakartaVersionSelector

LTE must declare the capability in the extended client capabilities block sent to LSP4Jakarta during initialization:
true — enables the version-selection popup. LSP4Jakarta will send a version-prompt request to the client when a conflict is detected.
false — disables the feature. LSP4Jakarta falls back to its default behaviour and will not send version-prompt requests.

LTE client capability flow: https://ibm.box.com/s/rl73k61m0bklbxxvu437bm67smb7khq6

Acceptance Criteria

  • LTE handles the dialog request from the language server that carries the list of detected
    Jakarta EE versions.
  • A version-selection dialog is displayed in Eclipse showing the versions received in the
    dialog request.
  • The user's selection is communicated back to the language server so version-specific
    diagnostics, quick fixes, and snippets are applied.
  • Change Jakarta version option from IDE
  • Add extendedClientCapabilities setting for jakartaVersionSelector

References

Lingua principale
Java
Stelle
16
Fork
20
Merge medio
16h 1m
PR unite (30g)
7

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di OpenLiberty/liberty-tools-eclipse

Tutte le issue di OpenLiberty/liberty-tools-eclipse

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.