News

Auto Completions Speed Up in Java on Visual Studio Code

Java jockeys using Microsoft's Visual Studio Code editor will see faster code completions thanks to a new language server.

"With the recent 1.0 release of the Java Language Server, we have made substantial improvement on the performance of auto-completion," said Nick Zhu, senior program manager, in a Nov. 24 post outlining what's new in the regular monthly update (October) of Java on VS Code.

That language server -- providing language-specific "smarts" such as code completion in VS Code -- was developed in cooperation with Red Hat, resulting in the Language Support for Java(TM) by Red Hat extension in the VS Code marketplace.

Speed improvements with the new server were said to boost all three phases of the code completion engine: searching the indexer to find proposals;converting proposals into completion items; and calculating code snippet proposals.

"The chart below compares the code completion response time between recent versions," Zhu continued. "For common scenarios such as completing types and constructor names, the code completion performance is improved significantly compared to previous versions (v0.80, v0.81 and v.0.82)."

Code Completion Improvements
[Click on image for larger view.] Code Completion Improvements (source: Microsoft).

Although Zhu said code completion was now a lot faster, there is more work to be done, with future plans including:

  • Lazy Resolve TextEdit: "Since most language clients don't support lazy resolve text edit for the completion items, the Java language server must calculate the text edits for all completion items in the completion response. This is the cause of most expensive calculations. We're collaborating with the client authors to explore the support for lazy resolving text edit."
  • More Efficient Indexer: "Current index data is insufficient for some code completion scenarios such as constructor. For example, the constructor completion needs to know whether the class has generic type arguments and decide whether to add a diamond <> to the constructor reference. The constructor index table hasn't included such type argument info, we have to resolve them from Java models, which is expensive. We're considering optimizing the index schema to include more information."

The Red Hat for Java tool is nearing 13 million installations, making it one of the top extensions in the marketplace.

About the Author

David Ramel is an editor and writer at Converge 360.

comments powered by Disqus

Featured

  • Mastering Blazor Authentication and Authorization

    At the Visual Studio Live! @ Microsoft HQ developer conference set for August, Rockford Lhotka will explain the ins and outs of authentication across Blazor Server, WebAssembly, and .NET MAUI Hybrid apps, and show how to use identity and claims to customize application behavior through fine-grained authorization.

  • Linear Support Vector Regression from Scratch Using C# with Evolutionary Training

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the linear support vector regression (linear SVR) technique, where the goal is to predict a single numeric value. A linear SVR model uses an unusual error/loss function and cannot be trained using standard simple techniques, and so evolutionary optimization training is used.

  • Low-Code Report Says AI Will Enhance, Not Replace DIY Dev Tools

    Along with replacing software developers and possibly killing humanity, advanced AI is seen by many as a death knell for the do-it-yourself, low-code/no-code tooling industry, but a new report belies that notion.

  • Vibe Coding with Latest Visual Studio Preview

    Microsoft's latest Visual Studio preview facilitates "vibe coding," where developers mainly use GitHub Copilot AI to do all the programming in accordance with spoken or typed instructions.

  • Steve Sanderson Previews AI App Dev: Small Models, Agents and a Blazor Voice Assistant

    Blazor creator Steve Sanderson presented a keynote at the recent NDC London 2025 conference where he previewed the future of .NET application development with smaller AI models and autonomous agents, along with showcasing a new Blazor voice assistant project demonstrating cutting-edge functionality.

Subscribe on YouTube