The ExpansionFunction object must be implemented by the language service to support expansion functions. The values are returned by the language service itself through an ExpansionFunction object. An expansion function is a named function that is embedded in a snippet template and returns one or more values to be placed in a field. The MPF does not support expansion functions. When the Source class is instantiated, the CreateExpansionProvider method in the LanguageService class is called to obtain an ExpansionProvider object (note that the base LanguageService class always returns a new ExpansionProvider object for each Source object). Support is managed through the ExpansionProvider class. The managed package framework (MPF) supports most snippet functionality, from reading the template to inserting the snippet and enabling the special edit mode. Managed Package Framework Support for Code Snippets ![]() ![]() This will improve the performance of your language service and let you take advantage of new editor features. We recommend that you begin to use the new editor API as soon as possible.
0 Comments
Leave a Reply. |