vscode-java-dependency icon indicating copy to clipboard operation
vscode-java-dependency copied to clipboard

Should not call command when opening a non Java file

Open testforstephen opened this issue 5 years ago • 2 comments
trafficstars

[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.

testforstephen avatar May 12 '20 03:05 testforstephen

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.

jdneo avatar Sep 04 '20 09:09 jdneo

Project Explorer only show classpaths. .gitignore is not the case, and won't be displayed by Explorer.

testforstephen avatar Sep 04 '20 09:09 testforstephen