Implementing a Legacy Language Service

Note

This article applies to Visual Studio 2015. If you're looking for the latest Visual Studio documentation, use the version selector at the top left. We recommend upgrading to Visual Studio 2019. Download it here

You can use classes in the managed package framework (MPF) to implement a legacy language service that supports a wide variety of features, such as syntax highlighting, brace matching, and IntelliSense completion.

Legacy language services are implemented as part of a VSPackage, but the newer way to implement language service features is to use MEF extensions. To find out more about the new way to implement a language service, see Editor and Language Service Extensions.

Note

We recommend that you begin to use the new editor API as soon as possible. This will improve the performance of your language service and let you take advantage of new editor features.

In This Section

Legacy Language Service Overview
An overview of the language service features that are supported in MPF.

Implementing a Legacy Language Service
Describes what is required to implement a language service by using MPF.

Registering a Legacy Language Service
Describes the steps that are required to register an MPF-based language service with Visual Studio.

Legacy Language Service Parser and Scanner
Describes the two parsers that are required to implement all the features of a language service by using the MPF.

Walkthrough: Creating a Legacy Language Service
Provides the basic steps that are required to implement an MPF language service in a VSPackage.

Walkthrough: Getting a List of Installed Code Snippets (Legacy Implementation)
Demonstrates the techniques of retrieving a list of installed code snippets.

Legacy Language Service Features
Provides links to topics that detail what must be done to implement all the features of a language service by using MPF.