-
Notifications
You must be signed in to change notification settings - Fork 406
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] Browsing jar dependencies contents #3160
Comments
JDT-LS is simply a language server, so we'd have no control over how this would look visually. We just send the data, and it's up to clients to render it. However, it seems to me like Maybe this could nicely display the contents of a JAR file as well. |
Yeah, indeed, i am not looking for the view. Rather, the data model, which will be used to construct the view, and it will be handled by client specific implementation. A jar can contain either other sub dirs or some resources which are not only class files. However, I am not sure if jdtls supports uris to such resources. In addition to that, it would be nice to have a complimentary way to fetch the jar dependencies for the current project, coming from either the user config or build systems like maven, gradle, etc. |
The Project Manager for Java in VS Code supports it: I don't know whether this involves special requests to a Microsoft extension or if jdt.ls provides those OOTB. @testforstephen @jdneo ? |
I think it's coming from https://github.com/microsoft/vscode-java-dependency/blob/6aaf68428f0abac4e224d698ab98c83897c52285/jdtls.ext/com.microsoft.jdtls.ext.core/src/com/microsoft/jdtls/ext/core/CommandHandler.java#L30-L31 , which appears to be based on the Java model. So if we wanted to do this through document symbols, we could possibly move the code into JDT-LS and then just call it for https://github.com/microsoft/vscode-java-dependency/blob/main/jdtls.ext/com.microsoft.jdtls.ext.core/src/com/microsoft/jdtls/ext/core/PackageCommand.java#L366-L382 It appears to be computed on-demand. So you expand an entry and it sends the request for elements.
|
Yes, it is. I'm ok to put the logic handling into JDT.LS and let the project manager act as a UI presenter. I'm not quite sure is if we want to make it kind of public API in JDT.LS, can we put it as it is now, or we need to redesign the request and response properly. |
Similarly to Eclipse or intellij, it would be great if jdt uris supported directories or jars. The application of this being the aplity for a user to be browsing the contents of a jar dependency as if it were a filetree. There is probably more to this, but this ticket can serve as a starter / idea.
The text was updated successfully, but these errors were encountered: