Partilhar via


LanguageService.OnParseComplete(ParseRequest) Method

Definition

Override this method if you need to do any post-parse work on the main UI thread. Be sure to call this base method in order to get the dynamic help context updated.

public:
 virtual void OnParseComplete(Microsoft::VisualStudio::Package::ParseRequest ^ req);
 virtual void OnParseComplete(Microsoft::VisualStudio::Package::ParseRequest const & req);
public virtual void OnParseComplete (Microsoft.VisualStudio.Package.ParseRequest req);
abstract member OnParseComplete : Microsoft.VisualStudio.Package.ParseRequest -> unit
override this.OnParseComplete : Microsoft.VisualStudio.Package.ParseRequest -> unit
Public Overridable Sub OnParseComplete (req As ParseRequest)

Parameters

req
ParseRequest

[in] The ParseRequest containing the parse request information for the just completed parse operation.

Remarks

This method is called from the Source object when a background parse has been completed. This method is not called when any other parse operation is executed. The background parse operation is typically over the entire source and gathers information such as matching pairs of language constructs (such as braces, parentheses, and brackets), methods, and class members. This information is gathered and later used in handling IntelliSense tool tips.

You should call the base method before or after your implementation of this method.

The base method updates the help context by calling the SetUserContextDirty method.

Note

This method is called on the main thread and not the background thread so the IVsTextView object in the ParseRequest structure can be used.

Applies to