1 write to SubjectBuffer
Microsoft.VisualStudio.LanguageServices (1)
Snippets\SnippetExpansionClient.cs (1)
104
SubjectBuffer
= subjectBuffer;
27 references to SubjectBuffer
Microsoft.VisualStudio.LanguageServices (27)
Snippets\SnippetExpansionClient.cs (27)
126
.SelectMatchingExtensionValues(ExtensionOrderer.Order(_allArgumentProviders),
SubjectBuffer
.ContentType)
144
pFunc = new SnippetFunctionSimpleTypeName(this,
SubjectBuffer
, bstrFieldName, param, _threadingContext);
147
pFunc = new SnippetFunctionClassName(this,
SubjectBuffer
, bstrFieldName, _threadingContext);
150
pFunc = new SnippetFunctionGenerateSwitchCases(this,
SubjectBuffer
, bstrFieldName, param, _threadingContext);
217
var endPositionTrackingSpan = isFullSnippetFormat ? _languageHelper.InsertEmptyCommentAndGetEndPositionTrackingSpan(ExpansionSession, TextView,
SubjectBuffer
) : null;
219
var formattingSpan = CommonFormattingHelpers.GetFormattingSpan(
SubjectBuffer
.CurrentSnapshot, snippetTrackingSpan.GetSpan(
SubjectBuffer
.CurrentSnapshot));
221
SubjectBuffer
.FormatAndApplyToBuffer(formattingSpan, EditorOptionsService, CancellationToken.None);
231
var currentStartPosition = snippetTrackingSpan.GetStartPoint(
SubjectBuffer
.CurrentSnapshot).Position;
252
endTrackingSpan.GetSpan(
SubjectBuffer
.CurrentSnapshot),
275
var endSnapshotSpan = endTrackingSpan.GetSpan(
SubjectBuffer
.CurrentSnapshot);
276
SubjectBuffer
.Delete(endSnapshotSpan.Span);
281
var line =
SubjectBuffer
.CurrentSnapshot.GetLineFromPosition(endSnapshotSpan.Start.Position);
288
var formattingOptions =
SubjectBuffer
.GetLineFormattingOptions(EditorOptionsService, explicitFormat: false);
291
SubjectBuffer
.Delete(new Span(line.Start.Position, line.Length));
292
_ =
SubjectBuffer
.CurrentSnapshot.GetSpan(new Span(line.Start.Position, 0));
492
var triggerSpan =
SubjectBuffer
.CurrentSnapshot.GetSpan(startPositionInSubjectBuffer, endPositionInSubjectBuffer - startPositionInSubjectBuffer);
534
var document =
SubjectBuffer
.CurrentSnapshot.GetOpenDocumentInCurrentContextWithChanges();
565
if (_signatureHelpControllerProvider.GetController(TextView,
SubjectBuffer
) is { } controller)
574
var editorCommandHandlerService = _editorCommandHandlerServiceFactory.GetService(TextView,
SubjectBuffer
);
730
var document =
SubjectBuffer
.CurrentSnapshot.GetOpenDocumentInCurrentContextWithChanges();
806
var document =
SubjectBuffer
.CurrentSnapshot.GetOpenDocumentInCurrentContextWithChanges();
896
var position =
SubjectBuffer
.CurrentSnapshot.GetPosition(adjustedTextSpan.iStartLine, adjustedTextSpan.iStartIndex);
1058
var documentWithImports =
SubjectBuffer
.CurrentSnapshot.GetOpenDocumentInCurrentContextWithChanges();
1066
var addImportOptions =
SubjectBuffer
.GetAddImportPlacementOptions(EditorOptionsService, fallbackOptions, languageServices, documentWithImports.AllowImportsInHiddenRegions());
1067
var formattingOptions =
SubjectBuffer
.GetSyntaxFormattingOptions(EditorOptionsService, fallbackOptions, languageServices, explicitFormat: false);
1121
var subjectBufferSpanCollection = TextView.BufferGraph.MapDownToBuffer(snapshotSpan, SpanTrackingMode.EdgeExclusive,
SubjectBuffer
);