1 write to SubjectBuffer
Microsoft.VisualStudio.LanguageServices (1)
Snippets\SnippetExpansionClient.cs (1)
105
SubjectBuffer
= subjectBuffer;
26 references to SubjectBuffer
Microsoft.VisualStudio.LanguageServices (26)
Snippets\SnippetExpansionClient.cs (26)
127
.SelectMatchingExtensionValues(ExtensionOrderer.Order(_allArgumentProviders),
SubjectBuffer
.ContentType)
145
pFunc = new SnippetFunctionSimpleTypeName(this,
SubjectBuffer
, bstrFieldName, param, _threadingContext);
148
pFunc = new SnippetFunctionClassName(this,
SubjectBuffer
, bstrFieldName, _threadingContext);
151
pFunc = new SnippetFunctionGenerateSwitchCases(this,
SubjectBuffer
, bstrFieldName, param, _threadingContext);
218
var endPositionTrackingSpan = isFullSnippetFormat ? _languageHelper.InsertEmptyCommentAndGetEndPositionTrackingSpan(ExpansionSession, TextView,
SubjectBuffer
) : null;
220
var formattingSpan = CommonFormattingHelpers.GetFormattingSpan(
SubjectBuffer
.CurrentSnapshot, snippetTrackingSpan.GetSpan(
SubjectBuffer
.CurrentSnapshot));
222
SubjectBuffer
.FormatAndApplyToBuffer(formattingSpan, EditorOptionsService, CancellationToken.None);
232
var currentStartPosition = snippetTrackingSpan.GetStartPoint(
SubjectBuffer
.CurrentSnapshot).Position;
253
endTrackingSpan.GetSpan(
SubjectBuffer
.CurrentSnapshot),
276
var endSnapshotSpan = endTrackingSpan.GetSpan(
SubjectBuffer
.CurrentSnapshot);
277
SubjectBuffer
.Delete(endSnapshotSpan.Span);
282
var line =
SubjectBuffer
.CurrentSnapshot.GetLineFromPosition(endSnapshotSpan.Start.Position);
289
var formattingOptions =
SubjectBuffer
.GetLineFormattingOptions(EditorOptionsService, explicitFormat: false);
292
SubjectBuffer
.Delete(new Span(line.Start.Position, line.Length));
293
_ =
SubjectBuffer
.CurrentSnapshot.GetSpan(new Span(line.Start.Position, 0));
493
var triggerSpan =
SubjectBuffer
.CurrentSnapshot.GetSpan(startPositionInSubjectBuffer, endPositionInSubjectBuffer - startPositionInSubjectBuffer);
535
var document =
SubjectBuffer
.CurrentSnapshot.GetOpenDocumentInCurrentContextWithChanges();
566
if (_signatureHelpControllerProvider.GetController(TextView,
SubjectBuffer
) is { } controller)
575
var editorCommandHandlerService = _editorCommandHandlerServiceFactory.GetService(TextView,
SubjectBuffer
);
736
var document =
SubjectBuffer
.CurrentSnapshot.GetOpenDocumentInCurrentContextWithChanges();
900
var position =
SubjectBuffer
.CurrentSnapshot.GetPosition(adjustedTextSpan.iStartLine, adjustedTextSpan.iStartIndex);
1062
var documentWithImports =
SubjectBuffer
.CurrentSnapshot.GetOpenDocumentInCurrentContextWithChanges();
1070
var addImportOptions =
SubjectBuffer
.GetAddImportPlacementOptions(EditorOptionsService, fallbackOptions, languageServices, documentWithImports.AllowImportsInHiddenRegions());
1071
var formattingOptions =
SubjectBuffer
.GetSyntaxFormattingOptions(EditorOptionsService, fallbackOptions, languageServices, explicitFormat: false);
1126
var subjectBufferSpanCollection = TextView.BufferGraph.MapDownToBuffer(snapshotSpan, SpanTrackingMode.EdgeExclusive,
SubjectBuffer
);