vscode-java-dependency
vscode-java-dependency copied to clipboard
Should not call command when opening a non Java file
[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.
java.resolvePath is used to sync the tree node with the editor. So it makes sense that triggering the command as long as the file shows in the Project explorer.
But I also noticed that this command will also get triggered when the active edit is not a file related one, (for example, when focusing on the output channel), I think that should be fixed.
Project Explorer only show classpaths. .gitignore is not the case, and won't be displayed by Explorer.