redhat-developer / redhat-developer/vscode-java

Can't go to definition

Open
#1,605 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

[Can't go to definition]

Environment
  • Operating System:ubuntu 16.0.4
  • JDK version:openjdk 11
  • Visual Studio Code version:1.48.2
  • Java extension version:0.67.0
Steps To Reproduce
  1. download aosp
  2. add folder './frameworks/base/services/core/java/com/android/server/policy' to workspace.(to use PhoneWindowManager.java)
  3. add folder './frameworks/base/core/java/android/content' to workspace.(to use Context.java)
  4. open PhoneWindowManager.java and find code 'Context mContext;'
  5. go to definition of Context

[Please attach a sample project reproducing the error]
project is too big
[Please attach logs]
null

Current Result

No definition found for Context

Expected Result

Open Context.java

Additional Informations

null

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 AOSP using PhoneWindowManager.java and Context.java in the two-folder workspace described. Start by checking how the Java extension handles definitions across those workspace folders; completion means Go to Definition opens Context.java instead of reporting no definition found.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, typescript, vscode
Domain
developer-experience, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.