News

Visual Studio Extensions Getting Revamp

Microsoft is changing the model for Visual Studio extensions with the goal of making them easier to write, safer to use and more cloud-friendly.

Key to the revamp is changing from an in-process model to an out-of-process model, hopefully to eliminate extension-caused crashes and corruption of the Visual Studio IDE.

Without getting too technical, a Stack Overflow post describes the difference: "An inproc server runs in the same process as the calling application. It's close to a normal function call on a dll. Calling an outproc server, data needs to be marshalled across the process boundry which is an expensive operation. An inproc server is fast but it can bring down your application."

It's that "bring down your application" peskiness that Microsoft is trying to reduce.

"Tired of seeing a feature or Visual Studio crash because of an extension?" said Leslie Richardson, program manager, Visual Studio Debugging & Diagnostics, in an Oct. 28 blog post. "Today's in-proc extensions have minimal restrictions over how they can influence the IDE and other extensions. Thus, they are free to corrupt Visual Studio if the extension experiences an error or crash. One of our biggest changes to the Visual Studio extension model is that we are making extensions out-of-proc. This will help ensure increased isolation between internal and external extension APIs, where a buggy extension can crash without causing other extensions or the entire IDE to crash, hang, or slow down along with it."

Image Optimizer extension running in a GitHub Codespace
[Click on image for larger, animated GIF view.] Image Optimizer Extension Running in a GitHub Codespace (source: Microsoft).

On the easier-to-write front, the Visual Studio extension APIs will be redesigned, hopefully becoming more uniform and discoverable, with updated documentation.

"Extensions are cool to use but can be difficult to write," Richardson said. "Inconsistent APIs, overwhelming architecture, and having to ask your teammates how to implement what should be a basic command are common feedback items from extension writers."

Finally, another goal of the revamp is to make essential extensions available both on local machines and in remote implementations such as GitHub Codespaces, which allows for custom dev environments in the cloud that can be accessed from different machines.

"The current model's unrestricted access to the IDE and lack of asynchronous APIs don't make it ideal for a seamless, crash-less, and responsive client/server experience for Codespaces. To round out our new extensibility model goals, we will make your essential extensions available both locally and remotely," Richardson said.

Microsoft is soliciting feedback on the extension experience, for which the redesign is just getting started, with a survey.

About the Author

David Ramel is an editor and writer at Converge 360.

comments powered by Disqus

Featured

  • Hands On: New VS Code Insiders Build Creates Web Page from Image in Seconds

    New Vision support with GitHub Copilot in the latest Visual Studio Code Insiders build takes a user-supplied mockup image and creates a web page from it in seconds, handling all the HTML and CSS.

  • Naive Bayes Regression Using C#

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the naive Bayes regression technique, where the goal is to predict a single numeric value. Compared to other machine learning regression techniques, naive Bayes regression is usually less accurate, but is simple, easy to implement and customize, works on both large and small datasets, is highly interpretable, and doesn't require tuning any hyperparameters.

  • VS Code Copilot Previews New GPT-4o AI Code Completion Model

    The 4o upgrade includes additional training on more than 275,000 high-quality public repositories in over 30 popular programming languages, said Microsoft-owned GitHub, which created the original "AI pair programmer" years ago.

  • Microsoft's Rust Embrace Continues with Azure SDK Beta

    "Rust's strong type system and ownership model help prevent common programming errors such as null pointer dereferencing and buffer overflows, leading to more secure and stable code."

  • Xcode IDE from Microsoft Archrival Apple Gets Copilot AI

    Just after expanding the reach of its Copilot AI coding assistant to the open-source Eclipse IDE, Microsoft showcased how it's going even further, providing details about a preview version for the Xcode IDE from archrival Apple.

Subscribe on YouTube

Upcoming Training Events