redhat-developer / redhat-developer/vscode-java

Java support disabled in diff editor for staged files

Offen
#295 6 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

enhancement
Vorherrschende Sprache
TypeScript
Sterne
2.3k
Forks
546
Ø Merge
20 Std. 1 Min.
Gemergte PRs (30 T.)
11

Beschreibung

See: https://github.com/Microsoft/vscode/issues/34034

It is the case in some other vscode language extensions that one can go to definitions directly from the right hand pane of the diff editor (ie, from the pane that represents the current version of the file). This is great utility when looking at diffs, reviewing changes, etc.

This is currently the case for TS/JS and used to be the case for Go (there was some sort of regression). It would be great if Java supported this.

Environment
  • Operating System: Mac OS X, 10.11.6, Darwin x64 15.6.0
  • JDK version: 1.8.0_92
  • Visual Studio Code version: Code 1.16.0 (787b31c0474e6165390b5a5989c9619e3e16f953, 2017-09-06T16:12:42.401Z)
  • Java extension version: 0.9.0
Steps To Reproduce
  1. Open a diff editor where one of the panes is the current version of the file, e.g., by going to the source control view and (in the case of git) clicking on one of the diffs for the staged or working tree changes.
  2. Attempt to go to a definition.
Current Result

A message indicating that the definition was not found.

Expected Result

Go to Definition and other tooling (symbols, etc) should work in the pane that represents the current version of the file.

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Beginnen Sie damit, die Schritte in der VS Code-Ansicht zur Quellcodeverwaltung und im Diff-Editor mit einer gestagten oder Working-Tree-Java-Änderung nachzustellen. Verfolgen Sie, wie Go to Definition und Symbole im current-version-Bereich behandelt werden, und überprüfen Sie dann, dass diese Tools dort ohne die definition-not-found message funktionieren.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
java, vscode
Bereich
developer-experience, tooling
Issue-Typ
Feature
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.