redhat-developer / redhat-developer/vscode-java

The editor can't switch to the new created method

Open
#765 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement navigation
Dominant language
TypeScript
Stars
2.3k
Forks
546
Avg merge
20h 1m
Merged PRs (30d)
11

Description

Environment
  • Operating System:Windows/Mac/Linux
  • JDK version: jdk11.01
  • Visual Studio Code version: 1.30.2
  • Java extension version:0.37.0(build 4)
Steps To Reproduce
  1. Open .\resources\eclipse\simple-app.
  2. Select Foo.java file, invoke class code snippet to generate code as below
package app;

/**
* Foo
*/
public class Foo {


}
  1. Select the code action of Create method 'call()' in type 'Foo' to fix the error.
Current Result

The editor can't switch to the new created method, as below
image

Expected Result

It will jump to the new created method automatically

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue with resources/eclipse/simple-app and Foo.java using the class code snippet and the Create method 'call()' code action. Trace the editor's navigation after the method is generated, then verify that the editor automatically jumps to the new method on Windows, macOS, or Linux.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, typescript, vscode
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.