Make Ctrl+T more context-dependent
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 32/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- java, typescript, vscode
- Área
- developer-experience, tooling
Línea de trabajo
El payload no menciona archivos fuente ni pruebas; empieza reproduciendo Ctrl+T sobre métodos Java resaltados en VS Code y compara el comportamiento existente con Eclipse. Se considera terminado cuando el árbol sigue las implementaciones de métodos relevantes de la superclase y la subclase declaradas, y seleccionar un nodo navega a esa implementación del método en lugar de a la declaración del tipo.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Suggestion
When pressing Ctrl+T when highlighting a method, we see the method hierarchy instead of the type hierarchy and navigation leads us directly to the method's declaration within the selected type and not to the declaration of the type itself.
Use Cases
I want to be able to easily navigate to all implementations of subclasses as well as super classes of a certain method to better understand how a certain type affects implementation of the selected method.
Examples
Given the following class hierarchy:
class A {
public String generateGreeting() {
return "Hi!";
}
}
class B extends A {
@Override
public String generateGreeting() {
return "Hello!";
}
}
class C extends A {
@Override
public String generateGreeting() {
return "Guten Tag!";
}
}
When highlighting generateGreeting() and pressing Ctrl+T I want to see a tree where nodes represent classes implementing the highlighted method. The nodes' nesting represents the class hierarchy. The nodes shown depend on the declared type of the field/variable on the caller side. In case the method is highlighted at its declaration the declared type would be the class enclosing the method. All sub classes and super classes of the declared type implementing the method must be shown as nodes in the tree (not only sub classes). When clicking a node, VS Code navigates to the corresponding method implementation of the highlighted method, not to the beginning of the type declaration (current behavior):
Situation 1:
A a = new B();
a.generateGreeting();
Declared type would be A, so I want to see implementations of A.generateGreeting and B.generateGreeting and C.generateGreeting as nodes in the tree
Situation 2:
B b = new B();
b.generateGreeting();
Declared type would be B, so I want to see implementations of A.generateGreeting and B.generateGreeting as nodes in the tree, but not C.generateGreeting because it is neither a subclass nor a super class of B.
You could check Eclipse's behavior for an existing implementation.
- Lenguaje dominante
- TypeScript
- Estrellas
- 352
- Forks
- 166
- Merge medio
- 17 h 47 min
- PR fusionados (30 d)
- 32
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de microsoft/vscode-java-pack
-
Memory Leak in Linux Abiertoai-triaged bug
Dificultad 4/5 3-5 días Aptitud para principiantes 42/100
microsoft/vscode-java-pack#1543 · 8 comentarios · 4 reacciones ·
-
ai-triaged bug
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
microsoft/vscode-java-pack#1443 · 1 comentario · 2 reacciones ·
-
ai-triaged bug
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
microsoft/vscode-java-pack#1425 · 1 comentario ·
-
ai-triaged enhancement feature-request
Dificultad 5/5 Más de una semana Aptitud para principiantes 20/100
microsoft/vscode-java-pack#1423 · 2 comentarios · 1 reacción ·
-
ai-triaged area/jdtls bug needs-investigation
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
microsoft/vscode-java-pack#1420 · 1 comentario ·
Todos los issues de microsoft/vscode-java-pack
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
ontola/atomic-server#1625 ·
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
melgarafael/DeskcommCRM#1451 ·
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 82/100
-
bug via-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
bot:ai-assisted component:compact-js status:untriaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
midnightntwrk/midnight-sdk#403 ·