Microsoft Enhances Java Tooling in VS Code and Azure

Microsoft has updated Java tooling in its Visual Studio Code extension and the Azure Toolkit for IntelliJ, showcasing a host of new features.

For Visual Studio Code, the Extension Pack for Java now nearly supports JDK 21, introduced in September 2023. Out of 15 newly supported features, two remain in preview: Unnamed Patterns and Variables, and Unnamed Classes and Instance Main Methods. Developers who don't need those two work-in-progress features can already use JDK 21 in VS Code.

Devs who don't need those two work-in-progress features can already use JDK 21 in VS Code.

Other updates affect:

  • Test Coverage UX: Two updates were made to streamline the Test Coverage experience for a more intuitive and informative workflow. VS Code's Insider's recently introduced Test Coverage feature had limitations: Users needed to choose a specific non-intuitive option to see results, and there was no visual indicator in the code editor. The latest pre-release version addresses both issues such that devs can now view test coverage with a single click on the "Run Test with Coverage" button, located next to "Debug Test," and coverage information will be directly displayed within the editor, making it easier to see which parts of code are covered by tests.
  • Java Language Server Status UX: Before, the status icon was only visible when a Java file was open, which was not ideal for users involved in polyglot projects with multiple file types. Now the status icon is more accessible and is displayed whenever the Java extension is active, irrespective of the file type currently open. This change allows users to easily monitor the status of the Java Language Server without the need to have a Java file open.
  • "Editor Content Out of Sync" Issue: An issue that caused editor content to be out of sync with the Java Language Server, resulting in false compilation errors, was fixed, resulting in a "a notable reduction of occurrences."

On the Azure side, the Azure Toolkit for IntelliJ's January 2024 update brings a number of improvements, including:

  • Azure Key Vault support: The team added support to create and manage Azure Key Vault resources in Azure Explorer. "This feature enables you to create, show and download your secrets, keys, and certificates conveniently in IntelliJ IDEA," Microsoft said. "Moreover, it can also reduce the risk of exposing sensitive data by storing them in a centralized and encrypted vault."
  • Project scaffolding based on Azure Samples: This update addresses challenges associated with choosing and combining Azure modules together in the scaffolding process, such as Azure Functions, Event Hubs, Azure SQL Database, and other cloud services. The team integrated Azure Samples (GitHub repositories with code samples and examples for various Azure services and features) into its toolkit. "This enhancement lets you reuse existing code and templates to save your time and effort," Microsoft said.
  • Azure Kubernetes experience enhancement: "When Java developers use Azure Toolkit to manage their Azure Kubernetes resources, they often need more access to interact with their clusters and view/edit their configurations to customize their needs. In the latest release, we have improved this experience to open Azure Kubernetes clusters with Kubernetes plugin from IntelliJ IDEA in a shortcut way."

 

About the Author

David Ramel is an editor and writer for Converge360.