Code Monkey home page Code Monkey logo

community.visualstudio.toolkit's Introduction

Community toolkit for Visual Studio extensions

A community driven effort for a better Visual Studio experience developing extensions.

Build status NuGet

The NuGet package Community.VisualStudio.Toolkit acts as a companion to the regular Visual Studio SDK packages with helper methods, classes and extension methods that makes writing extensions a lot easier.

Purpose

This package attempts to solve multiple issues with the current extensibility model.

Too much boilerplate is needed to do simple things

Base classes, helper methods, and extension methods encapsulate the complexity so you don't have to.

It's difficult to find what services and components to use

Now the most commmon services are all easy to get to from the main VS object. For instance, to write to the Statusbar, you can now write the following:

await VS.Notifiations.Statusbar.SetTextAsync("My statusbar text");

Best practices change with each version of VS. I can't keep up

The underlying implementation of the project uses the best practices for each version of VS it supports. This ensures that your extension is much more likely to handle threading correctly, and avoid hangs and crashes.

The API is dated and has lots of ugly COM legacy noise

The most common APIs of the old complex COM nature are wrapped to expose a modern async API. This makes it much easier to code against the API and you can avoid the EnvDTE object for most scenarios.

The API isn't async and getting threading right is too hard

All the base classes and helper methods are async by default. There are cases where they are not, but that is because it wouldn't be beneficial for them to be.

Only Microsoft can update the API and that doesn't scale

This is a living project where the whole community can contribute helpers on top of the official VS SDK. There is no need to wait for Microsoft to make an update, since this projet gives the ability to continue the work in a separate work stream.

Breaking changes in the API between VS version are painful

This project works around those changes in the implementation of its public contracts and interfaces. This means that what was a breaking change to the VS SDK, becomes an implementation detail of this project and no user will be affected.

Templates

For both project- and item templates that utilizes this NuGet packages, download the Extensibility Template Pack.

community.visualstudio.toolkit's People

Contributors

madskristensen avatar japj avatar sql-mistermagoo avatar bluetarpmedia avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.