Add ZED_CUSTOM_JAVA_PACKAGE variable?

Aperta
#193 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
22/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
java, rust
Ambito
tooling

Direzione di ricerca

The request is for a Java counterpart to the ZED_CUSTOM_RUST_PACKAGE task variable, which the issue links to the Zed tasks variables documentation. Start by reading that page and the tip in issue #177, then check whether the variable is defined in this Java extension or in Zed core, since the payload does not show that. Done means a clear answer on where the variable belongs, and either a proposal or a change there that sets ZED_CUSTOM_JAVA_PACKAGE from the file's package declaration.

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

Descrizione

There's a nice tip at #177 about creating a debugger config item that makes it easy to run/debug the currently selected file. However this part:

"mainClass": "$ZED_STEM",

really needs to be prefixed with the Java package name in order to be truly generic.

In the list of zed variables there's one called ZED_CUSTOM_RUST_PACKAGE that looks like a Rust version of something that would work. Would it be possible to add something like ZED_CUSTOM_JAVA_PACKAGE for Java? Then we could have something like:

"mainClass": "$ZED_CUSTOM_JAVA_PACKAGE.$ZED_STEM",
Lingua principale
Rust
Stelle
225
Fork
47
Merge medio
3h 51m
PR unite (30g)
7

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

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 zed-extensions/java

Tutte le issue di zed-extensions/java

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.