Today we are excited to announce the 1.0 release of Language Support for Java™ by Red Hat on Visual Studio Code. We believe this is a significant milestone for Java support on Visual Studio Code and the result of a multi-year collaboration between Microsoft, Red Hat and the entire Visual Studio Code and Java community. This release wouldn’t have been possible without your support and we want to thank everyone who has provided feedback or made contributions.
Release highlights
When we started with our very first release, our goal was to provide an outstanding Java development experience on Visual Studio Code. Since then, we have maintained a release cycle of 1-2 times per month, through many iterations. In this 1.0 release, we want to highlight some improvements.
Java 17 support
Our focus has always been to support the latest technology provided by the Java language whenever possible. In our 1.0 release, Java 17 is now officially supported on our Java extensions.
For a complete demo to showcase the latest Java 17 support, please visit the video here
Performance improvements
Performance is also another area of improvement in this release. Thanks to the new features in the LSP specification, we were able to defer certain computations for better performance in many scenarios. In addition, default JVM options are used to improve the user experience of larger and more complicated projects. Last but not least, we made many smaller improvements to boost responsiveness of the language server.
Type hierarchy
Type hierarchy can now be easily accessed in Visual Studio Code! This is a feature that was introduced recently and has been one of the top asks in the Java community.
Source lookup
Currently, developers can quickly locate the source code of a library. Now we have expanded this support to unmanaged projects. As long as the library comes from Maven Central repo, we can resolve its sources. More advanced configurations are supported as well.
More code actions
Usability is another area we continue to improve. We have adopted more code actions to provide an easier development experience.
Gradle Kotlin (.kts) support
We already support Gradle projects using Groovy scripts, but we heard the need for Kotlin support from the community and now provide basic support for this. Our hope is that we can continue to expand upon this and deliver a great experience for Kotlin in the future.
Java journey on Visual Studio Code
The language support for Java™ by Red Hat extension is a fundamental piece of the Java expansion pack and offers essential components such as Java code editing, completion, refactoring and navigation. Over the past few years, Microsoft have been working together closely with Red Hat and adding new features to this language server. We have also been fine-tuning the performance of the language server and improving the stability by addressing issues and bugs.
In addition to the main Java language support, we have built various Java extensions based on the language server and expanded the Java tooling features on Visual Studio Code including project management, build tools support for Maven/Gradle, and better testing support. Our goal behind is to provide the best Java development experience possible on Visual Studio Code.
Going Forward
Going forward, we have planned many items for the Java language support on Visual Studio Code. Some of those improvements are:
- Make it easier to configure compiler error/warnings and code formatting options
- More useful auto-completion suggestions (eg. Postfix completion)
- Keep adopting convenient code actions (eg. new Java language features) and eventually reach feature parity with those provided by the Eclipse Java IDE
- Further improving the overall performance of the language server and startup time
- Embedding a Java runtime in the extension to improve the overall “Getting Started” experience
We believe the 1.0 release of the language support for Java™ by Red Hat is an important step for the overall Java journey on Visual Studio Code, and we still have a long way to go. Going forward, we plan to collaborate with Red Hat and invest in fundamental Java language support and we are committed to delivering an outstanding Java development experience.
As always, your feedback is critical to our product improvement so please don’t hesitate to give it a try. You can follow this link to get started on Java using Visual Studio Code.
0 comments