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

  • Microsoft Revamps Fledgling AutoGen Framework for Agentic AI

    Only at v0.4, Microsoft's AutoGen framework for agentic AI -- the hottest new trend in AI development -- has already undergone a complete revamp, going to an asynchronous, event-driven architecture.

  • IDE Irony: Coding Errors Cause 'Critical' Vulnerability in Visual Studio

    In a larger-than-normal Patch Tuesday, Microsoft warned of a "critical" vulnerability in Visual Studio that should be fixed immediately if automatic patching isn't enabled, ironically caused by coding errors.

  • Building Blazor Applications

    A trio of Blazor experts will conduct a full-day workshop for devs to learn everything about the tech a a March developer conference in Las Vegas keynoted by Microsoft execs and featuring many Microsoft devs.

  • Gradient Boosting Regression Using C#

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the gradient boosting regression technique, where the goal is to predict a single numeric value. Compared to existing library implementations of gradient boosting regression, a from-scratch implementation allows much easier customization and integration with other .NET systems.

  • Microsoft Execs to Tackle AI and Cloud in Dev Conference Keynotes

    AI unsurprisingly is all over keynotes that Microsoft execs will helm to kick off the Visual Studio Live! developer conference in Las Vegas, March 10-14, which the company described as "a must-attend event."

Subscribe on YouTube