eclipse-wildwebdeveloper / eclipse-wildwebdeveloper/wildwebdeveloper

Javascript: Jump to declaration still not at JSDT's level

Aperta
#674 5 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

upstream-typescript-language-server
Lingua principale
Java
Stelle
201
Fork
76
Merge medio
4g 7h
PR unite (30g)
21

Descrizione

Hi,
I've been stuck with Eclipse Luna for years now, because of it being (along with Mars) the last version where JSDT worked fine (syntax coloring unbroken).

Your tool seems finally to get close to JSDT in certain aspects, surpass it in others.

But really: the most useful feature in a tool like this (even more important than syntax coloring) is the Jump to declaration ! How can anyone work without it when the project becomes more and more complex ?

And WWD doesn't come close the JSDT regarding Jump to declaration. Or I'm missing something. It works in the same file, when there are prototype functions, but look at this example:

(function ()
{
var global = this || window;
var _Ctrls = null;
_Ctrls = global.Ctrls =
{
test: function()
{
//////
},
test2: function()
{
_Ctrl.test();
}
};
})

Typing F3 (Jump to declaration) on the test() call would give a message like "The operation is not applicable to the current selection etc..."
In JSDT it would take me to the test function declaration. It would even take me to it when called in another javascript file in the same project !

Can anyone tell if this a final behavior or is there a chance to fix it ?

Regards

Guida per i contributori

Apri la guida per i contributori

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.

Direzione di ricerca

Riproducete l’esempio JavaScript fornito in Eclipse e invocate F3 sulla chiamata test(). Confrontate il comportamento all’interno di un singolo file e tra file JavaScript dello stesso progetto con il comportamento di JSDT descritto. Il lavoro è completato quando Jump to declaration raggiunge la dichiarazione della funzione test invece di segnalare che l’operazione non è applicabile.

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

Valutazione

Stack tecnologico
javascript
Ambito
developer-experience, tooling
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.