microsoft / microsoft/vscode-java-dependency

Should not call command when opening a non Java file

Open
#262 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug Discussing
Dominant language
TypeScript
Stars
199
Forks
105
Avg merge
1d 22h
Merged PRs (30d)
27

Description

[Trace - 11:42:08 AM] Sending request 'workspace/executeCommand - (25)'.
Params: {
"command": "java.resolvePath",
"arguments": [
"file:///c%3A/Work/testresource/maven-modular/.gitignore"
]
}

Anytime you open a file (e.g. .gitignore), the dependency view will trigger some command, even though the file is not a Java resource.

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

Start by tracing the dependency view behavior around the workspace/executeCommand request and the java.resolvePath command. Reproduce the request when opening a .gitignore file, then verify that non-Java files no longer trigger the command while Java resources still do.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.