IVsCommandWindowCompletion::SetCompletionContext Method (String^, IVsTextLines^, array<TextSpan>^, Object^)
Visual Studio 2015
Sets the current context for statement completion.
Assembly: Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)
int SetCompletionContext( String^ pszFilePath, IVsTextLines^ pBuffer, array<TextSpan>^ ptsCurStatement, Object^ punkContext )
Parameters
- pszFilePath
-
Type:
System::String^
[in] The path to the file containing the current statement.
- pBuffer
-
Type:
Microsoft.VisualStudio.TextManager.Interop::IVsTextLines^
[in] The text buffer containing the current statement.
- ptsCurStatement
-
Type:
array<Microsoft.VisualStudio.TextManager.Interop::TextSpan>^
[in] The current statement’s text span.
- punkContext
-
Type:
System::Object^
[in] may be used to pass additional context in future. If none is available, NULL is passed.
The debugger calls this method whenever the current statement changes, such as when stepping, changing stack frames, or hitting a breakpoint. The command window listens for this event and calls the appropriate method, such as SetCompletionContext on the current language service.
Show: