34 references to ExpansionSession
Microsoft.VisualStudio.LanguageServices (34)
Snippets\SnippetExpansionClient.cs (30)
162
if (
ExpansionSession
== null)
170
if (
ExpansionSession
.TryGetHeaderNode("Description", out var descriptionNode)
210
ExpansionSession
.GetSnippetSpan(fullSnippetSpan);
217
var endPositionTrackingSpan = isFullSnippetFormat ? _languageHelper.InsertEmptyCommentAndGetEndPositionTrackingSpan(
ExpansionSession
, TextView, SubjectBuffer) : null;
233
ExpansionSession
, currentStartPosition, cancellationToken);
243
RoslynDebug.AssertNotNull(
ExpansionSession
);
244
if (SetEndPositionIfNoneSpecified(
ExpansionSession
))
260
ExpansionSession
.SetEndSpan(new VsTextSpan
402
if (
ExpansionSession
!= null)
408
var tabbedInsideSnippetField = VSConstants.S_OK ==
ExpansionSession
.GoToNextExpansionField(fCommitIfLast: _state.IsFullMethodCallSnippet ? 1 : 0);
412
ExpansionSession
.EndCurrentExpansion(fLeaveCaret: 1);
423
if (
ExpansionSession
!= null)
425
var tabbedInsideSnippetField = VSConstants.S_OK ==
ExpansionSession
.GoToPreviousExpansionField();
429
ExpansionSession
.EndCurrentExpansion(fLeaveCaret: 1);
440
if (
ExpansionSession
!= null)
442
ExpansionSession
.EndCurrentExpansion(fLeaveCaret: 1);
465
if (
ExpansionSession
!= null)
470
var hitWithinField = VSConstants.S_OK ==
ExpansionSession
.GoToNextExpansionField(fCommitIfLast: 0);
474
ExpansionSession
.EndCurrentExpansion(fLeaveCaret: leaveCaret ? 1 : 0);
777
if (
ExpansionSession
is null)
793
ExpansionSession
.EndCurrentExpansion(fLeaveCaret: 1);
810
ExpansionSession
.EndCurrentExpansion(fLeaveCaret: 1);
832
if (
ExpansionSession
.GetSnippetSpan(textSpan) != VSConstants.S_OK)
838
if (
ExpansionSession
.GetFieldSpan(firstField, textSpan) != VSConstants.S_OK)
848
if (
ExpansionSession
.GetFieldSpan(lastField, textSpan) != VSConstants.S_OK)
869
if (
ExpansionSession
.GetFieldValue(PlaceholderSnippetField, out var placeholderValue) == VSConstants.S_OK &&
887
if (
ExpansionSession
.GetFieldValue(previousParameter.Name, out var previousValue) == VSConstants.S_OK)
937
if (
ExpansionSession
.GetEndSpan(textSpan) == VSConstants.S_OK)
941
ExpansionSession
.SetEndSpan(textSpan[0]);
949
if (
ExpansionSession
== null)
Snippets\SnippetFunctions\SnippetFunctionClassName.cs (1)
36
if (snippetExpansionClient.
ExpansionSession
.GetFieldSpan(FieldName, surfaceBufferFieldSpan) != VSConstants.S_OK)
Snippets\SnippetFunctions\SnippetFunctionGenerateSwitchCases.cs (1)
71
if (snippetExpansionClient.
ExpansionSession
?.GetFieldSpan(fieldName, surfaceBufferFieldSpan) != VSConstants.S_OK)
Snippets\SnippetFunctions\SnippetFunctionSimpleTypeName.cs (2)
58
if (snippetExpansionClient.
ExpansionSession
== null)
63
if (snippetExpansionClient.
ExpansionSession
.GetFieldSpan(_fieldName, surfaceBufferFieldSpan) != VSConstants.S_OK)