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