Source::OnIdle Method (Boolean)

 

Called when no other events are being handled.

Namespace:   Microsoft.VisualStudio.Package
Assembly:  Microsoft.VisualStudio.Package.LanguageService.14.0 (in Microsoft.VisualStudio.Package.LanguageService.14.0.dll)

public:
virtual void OnIdle(
	bool periodic
)

Parameters

periodic
Type: System::Boolean

true if this call is a result of a periodic timer; otherwise, this is a truly idle call.

Performs various background tasks while the system is idle.

The base method starts a background parse if any of the source has been marked as dirty. The background parse is not started if a completion list or method tip tool tip is displayed or the minimum time delay (as specified by the CodeSenseDelay property) has not passed. This method is typically called from OnIdle.

See Implementing a Language Service (Managed Package Framework) for information about how a language service can implement an idle timer that calls this method.

Return to top
Show: