36 references to ExpansionSession
Microsoft.VisualStudio.LanguageServices (33)
Snippets\AbstractSnippetExpansionClient.cs (29)
165
if (
ExpansionSession
== null)
173
if (
ExpansionSession
.TryGetHeaderNode("Description", out var descriptionNode)
213
ExpansionSession
.GetSnippetSpan(fullSnippetSpan);
236
ExpansionSession
, currentStartPosition, cancellationToken);
246
RoslynDebug.AssertNotNull(
ExpansionSession
);
247
if (SetEndPositionIfNoneSpecified(
ExpansionSession
))
263
ExpansionSession
.SetEndSpan(new VsTextSpan
405
if (
ExpansionSession
!= null)
411
var tabbedInsideSnippetField = VSConstants.S_OK ==
ExpansionSession
.GoToNextExpansionField(fCommitIfLast: _state.IsFullMethodCallSnippet ? 1 : 0);
415
ExpansionSession
.EndCurrentExpansion(fLeaveCaret: 1);
426
if (
ExpansionSession
!= null)
428
var tabbedInsideSnippetField = VSConstants.S_OK ==
ExpansionSession
.GoToPreviousExpansionField();
432
ExpansionSession
.EndCurrentExpansion(fLeaveCaret: 1);
443
if (
ExpansionSession
!= null)
445
ExpansionSession
.EndCurrentExpansion(fLeaveCaret: 1);
468
if (
ExpansionSession
!= null)
473
var hitWithinField = VSConstants.S_OK ==
ExpansionSession
.GoToNextExpansionField(fCommitIfLast: 0);
477
ExpansionSession
.EndCurrentExpansion(fLeaveCaret: leaveCaret ? 1 : 0);
780
if (
ExpansionSession
is null)
796
ExpansionSession
.EndCurrentExpansion(fLeaveCaret: 1);
813
ExpansionSession
.EndCurrentExpansion(fLeaveCaret: 1);
835
if (
ExpansionSession
.GetSnippetSpan(textSpan) != VSConstants.S_OK)
841
if (
ExpansionSession
.GetFieldSpan(firstField, textSpan) != VSConstants.S_OK)
851
if (
ExpansionSession
.GetFieldSpan(lastField, textSpan) != VSConstants.S_OK)
872
if (
ExpansionSession
.GetFieldValue(PlaceholderSnippetField, out var placeholderValue) == VSConstants.S_OK &&
890
if (
ExpansionSession
.GetFieldValue(previousParameter.Name, out var previousValue) == VSConstants.S_OK)
940
if (
ExpansionSession
.GetEndSpan(textSpan) == VSConstants.S_OK)
944
ExpansionSession
.SetEndSpan(textSpan[0]);
952
if (
ExpansionSession
== null)
Snippets\SnippetFunctions\SnippetFunctionClassName.cs (1)
37
if (snippetExpansionClient.
ExpansionSession
.GetFieldSpan(FieldName, surfaceBufferFieldSpan) != VSConstants.S_OK)
Snippets\SnippetFunctions\SnippetFunctionGenerateSwitchCases.cs (1)
74
if (snippetExpansionClient.
ExpansionSession
?.GetFieldSpan(fieldName, surfaceBufferFieldSpan) != VSConstants.S_OK)
Snippets\SnippetFunctions\SnippetFunctionSimpleTypeName.cs (2)
63
if (snippetExpansionClient.
ExpansionSession
== null)
68
if (snippetExpansionClient.
ExpansionSession
.GetFieldSpan(_fieldName, surfaceBufferFieldSpan) != VSConstants.S_OK)
Microsoft.VisualStudio.LanguageServices.CSharp (2)
Snippets\SnippetExpansionClient.cs (2)
66
RoslynDebug.AssertNotNull(
ExpansionSession
);
69
if (
ExpansionSession
.GetEndSpan(endSpanInSurfaceBuffer) != VSConstants.S_OK)
Microsoft.VisualStudio.LanguageServices.VisualBasic (1)
Snippets\SnippetExpansionClient.vb (1)
83
If
ExpansionSession
.GetEndSpan(endSpanInSurfaceBuffer) <> VSConstants.S_OK Then