June 29th, 2023
0 reactions

Java on Visual Studio Code – June 2023

Senior Program Manager

Hi everyone, welcome to the our June update for Visual Studio Code for Java! In this blog we are going to provide you an update about our code completion performance improvement, user experience enhancements in both unit testing and project creation, so let’s get started!

Code Completion Performance Improvement

Faster code completion is a crucial aspect of any developer tool that can greatly enhance coding productivity. In the past, we have heard from our users they felt Java code completion was slow sometimes which has impacted their work. As a result, we have been researching into how to make it faster and as a result, we have actually made significant progress.

We will write a detailed blog later highlighting the technical details but here is some preliminary result between version 1.16 (2023-03) and version 1.19 pre-release (2023-05)

Latency reduction (compared to 1.16) p99 p95 p90 p80 p50
1.19 pre-release (2023-05-19) 56% 50% 46% 36% 32%

We hope the code completion performance improvement can bring you better coding experience and we will continue to enhance the performance, reliability and compatibility of the Java language support in Visual Studio Code Java. In the next few months we will roll out a series of performance updates, please stay tuned!

Support postDebugTask in Test Runner for Java

In latest release of Test Runner for Java (part of Extension Pack for Java), we have added the support for attribute postDebugTask. This attribute will launch a task at the very end of a debug session. This will be very useful if developer needs to perform some cleanup task after the unit testing is done. For example, cleaning up databases. You can configure the task in the following way:

Settings.json