110 references to GetOpenDocumentInCurrentContextWithChanges
Microsoft.CodeAnalysis.CSharp.EditorFeatures (12)
BlockCommentEditing\BlockCommentEditingCommandHandler.cs (1)
278
var document = snapshot.
GetOpenDocumentInCurrentContextWithChanges
();
ConvertNamespace\ConvertNamespaceCommandHandler.cs (1)
114
var document = subjectBuffer.CurrentSnapshot.
GetOpenDocumentInCurrentContextWithChanges
();
EventHookup\EventHookupCommandHandler_TabKeyCommand.cs (1)
89
var document = currentSnapshot.
GetOpenDocumentInCurrentContextWithChanges
();
EventHookup\EventHookupCommandHandler_TypeCharCommand.cs (1)
49
var document = args.SubjectBuffer.CurrentSnapshot.
GetOpenDocumentInCurrentContextWithChanges
();
RawStringLiteral\RawStringLiteralCommandHandler_Return.cs (1)
56
var document = currentSnapshot.
GetOpenDocumentInCurrentContextWithChanges
();
RawStringLiteral\RawStringLiteralCommandHandler_TypeChar.cs (3)
109
var document = snapshot.
GetOpenDocumentInCurrentContextWithChanges
();
161
var document = snapshot.
GetOpenDocumentInCurrentContextWithChanges
();
210
var document = snapshot.
GetOpenDocumentInCurrentContextWithChanges
();
SplitStringLiteral\SplitStringLiteralCommandHandler.cs (1)
78
var document = subjectBuffer.CurrentSnapshot.
GetOpenDocumentInCurrentContextWithChanges
();
StringCopyPaste\StringCopyPasteCommandHandler.cs (2)
115
var documentBeforePaste = snapshotBeforePaste.
GetOpenDocumentInCurrentContextWithChanges
();
116
var documentAfterPaste = snapshotAfterPaste.
GetOpenDocumentInCurrentContextWithChanges
();
StringCopyPaste\StringCopyPasteCommandHandler_CutCopy.cs (1)
54
var document = subjectBuffer.CurrentSnapshot.
GetOpenDocumentInCurrentContextWithChanges
();
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Intents\IntentTestsBase.cs (1)
116
var currentDocument = currentTextBuffer.CurrentSnapshot.
GetOpenDocumentInCurrentContextWithChanges
();
Microsoft.CodeAnalysis.EditorFeatures (52)
AutomaticCompletion\AbstractAutomaticLineEnderCommandHandler.cs (1)
85
var document = args.SubjectBuffer.CurrentSnapshot.
GetOpenDocumentInCurrentContextWithChanges
();
AutomaticCompletion\BraceCompletionSessionProvider.BraceCompletionSession.cs (2)
97
var document = SubjectBuffer.CurrentSnapshot.
GetOpenDocumentInCurrentContextWithChanges
();
386
var document = SubjectBuffer.CurrentSnapshot.
GetOpenDocumentInCurrentContextWithChanges
();
AutomaticCompletion\BraceCompletionSessionProvider.cs (1)
51
var document = textSnapshot.
GetOpenDocumentInCurrentContextWithChanges
();
Classification\CopyPasteAndPrintingClassificationBufferTaggerProvider.Tagger.cs (1)
115
var document = snapshot.
GetOpenDocumentInCurrentContextWithChanges
();
Classification\Syntactic\SyntacticClassificationTaggerProvider.TagComputer.cs (1)
323
var currentDocument = currentSnapshot.
GetOpenDocumentInCurrentContextWithChanges
();
CommentSelection\AbstractCommentSelectionBase.cs (1)
100
var document = subjectBuffer.CurrentSnapshot.
GetOpenDocumentInCurrentContextWithChanges
();
DocumentationComments\AbstractDocumentationCommentCommandHandler.cs (6)
83
var document = subjectBuffer.CurrentSnapshot.
GetOpenDocumentInCurrentContextWithChanges
();
192
var document = args.SubjectBuffer.CurrentSnapshot.
GetOpenDocumentInCurrentContextWithChanges
();
245
var document = subjectBuffer.CurrentSnapshot.
GetOpenDocumentInCurrentContextWithChanges
();
278
var document = subjectBuffer.CurrentSnapshot.
GetOpenDocumentInCurrentContextWithChanges
();
300
var document = subjectBuffer.CurrentSnapshot.
GetOpenDocumentInCurrentContextWithChanges
();
335
var document = subjectBuffer.CurrentSnapshot.
GetOpenDocumentInCurrentContextWithChanges
();
DocumentationComments\AbstractXmlTagCompletionCommandHandler.cs (1)
78
var document = buffer.CurrentSnapshot.
GetOpenDocumentInCurrentContextWithChanges
();
Editor\GoToAdjacentMemberCommandHandler.cs (2)
61
var document = subjectBuffer.CurrentSnapshot.
GetOpenDocumentInCurrentContextWithChanges
();
79
var document = subjectBuffer.CurrentSnapshot.
GetOpenDocumentInCurrentContextWithChanges
();
ExtractMethod\ExtractMethodCommandHandler.cs (2)
101
var document = args.SubjectBuffer.CurrentSnapshot.
GetOpenDocumentInCurrentContextWithChanges
();
182
document = textSnapshot.
GetOpenDocumentInCurrentContextWithChanges
();
FindReferences\FindReferencesCommandHandler.cs (1)
94
var document = snapshot.
GetOpenDocumentInCurrentContextWithChanges
();
Formatting\FormatCommandHandler.cs (1)
136
var document = subjectBuffer.CurrentSnapshot.
GetOpenDocumentInCurrentContextWithChanges
();
Formatting\FormatCommandHandler.FormatDocument.cs (1)
24
var document = args.SubjectBuffer.CurrentSnapshot.
GetOpenDocumentInCurrentContextWithChanges
();
Formatting\FormatCommandHandler.FormatSelection.cs (1)
30
var document = args.SubjectBuffer.CurrentSnapshot.
GetOpenDocumentInCurrentContextWithChanges
();
Formatting\FormatCommandHandler.Paste.cs (1)
58
var document = subjectBuffer.CurrentSnapshot.
GetOpenDocumentInCurrentContextWithChanges
();
GoToDefinition\AbstractGoToCommandHandler`2.cs (1)
81
var document = snapshot.
GetOpenDocumentInCurrentContextWithChanges
();
GoToDefinition\GoToDefinitionCommandHandler.cs (1)
49
var document = snapshot.
GetOpenDocumentInCurrentContextWithChanges
();
InlineRename\CommandHandlers\AbstractRenameCommandHandler_RenameHandler.cs (1)
133
args.SubjectBuffer.CurrentSnapshot.
GetOpenDocumentInCurrentContextWithChanges
() is Document document &&
InlineRename\CommandHandlers\AbstractRenameCommandHandler_TypeCharHandler.cs (1)
24
var document = args.SubjectBuffer.CurrentSnapshot.
GetOpenDocumentInCurrentContextWithChanges
();
InlineRename\InlineRenameSession.cs (1)
155
TriggerDocument = triggerSpan.Snapshot.
GetOpenDocumentInCurrentContextWithChanges
();
IntelliSense\AsyncCompletion\CommitManager.cs (3)
103
var document = subjectBuffer.CurrentSnapshot.
GetOpenDocumentInCurrentContextWithChanges
();
164
var triggerDocument = itemData.TriggerLocation.Value.Snapshot.
GetOpenDocumentInCurrentContextWithChanges
();
314
var currentDocument = subjectBuffer.CurrentSnapshot.
GetOpenDocumentInCurrentContextWithChanges
();
IntelliSense\AsyncCompletion\CompletionSource.cs (4)
104
var document = triggerLocation.Snapshot.
GetOpenDocumentInCurrentContextWithChanges
();
213
var document = triggerLocation.Snapshot.
GetOpenDocumentInCurrentContextWithChanges
();
347
var document = initialTriggerLocation.Snapshot.
GetOpenDocumentInCurrentContextWithChanges
();
467
var document = snapshot.
GetOpenDocumentInCurrentContextWithChanges
();
IntelliSense\QuickInfo\QuickInfoSourceProvider.QuickInfoSource.cs (1)
64
var document = snapshot.
GetOpenDocumentInCurrentContextWithChanges
();
Interactive\SendToInteractiveSubmissionProvider.cs (1)
68
var document = args.SubjectBuffer.CurrentSnapshot.
GetOpenDocumentInCurrentContextWithChanges
();
RenameTracking\RenameTrackingCancellationCommandHandler.cs (1)
40
var document = args.SubjectBuffer.CurrentSnapshot.
GetOpenDocumentInCurrentContextWithChanges
();
RenameTracking\RenameTrackingTaggerProvider.RenameTrackingCommitter.cs (2)
80
var document = _snapshotSpan.Snapshot.
GetOpenDocumentInCurrentContextWithChanges
();
126
var document = _snapshotSpan.Snapshot.
GetOpenDocumentInCurrentContextWithChanges
();
RenameTracking\RenameTrackingTaggerProvider.StateMachine.cs (3)
234
var document = Buffer.CurrentSnapshot.
GetOpenDocumentInCurrentContextWithChanges
();
352
var document = Buffer.CurrentSnapshot.
GetOpenDocumentInCurrentContextWithChanges
();
366
var document = Buffer.CurrentSnapshot.
GetOpenDocumentInCurrentContextWithChanges
();
RenameTracking\RenameTrackingTaggerProvider.TrackingSession.cs (1)
165
var document = snapshotSpan.Snapshot.
GetOpenDocumentInCurrentContextWithChanges
();
Shared\Extensions\ITextSnapshotExtensions.cs (4)
31
var document = textBuffer.CurrentSnapshot.
GetOpenDocumentInCurrentContextWithChanges
();
53
/// Get <see cref="Document"/> from <see cref="Text.Extensions.
GetOpenDocumentInCurrentContextWithChanges
(ITextSnapshot)"/>
83
return snapshot.
GetOpenDocumentInCurrentContextWithChanges
();
88
/// Get <see cref="Document"/> from <see cref="Text.Extensions.
GetOpenDocumentInCurrentContextWithChanges
(ITextSnapshot)"/>
SmartIndent\SmartIndent.cs (1)
37
var document = line.Snapshot.
GetOpenDocumentInCurrentContextWithChanges
();
SpellCheck\RoslynSpellCheckFixerProvider.cs (1)
79
var document = snapshot.
GetOpenDocumentInCurrentContextWithChanges
();
SplitComment\SplitCommentCommandHandler.cs (1)
61
var document = snapshot.
GetOpenDocumentInCurrentContextWithChanges
();
TextStructureNavigation\AbstractTextStructureNavigatorProvider.TextStructureNavigator.cs (1)
284
return point.Snapshot.
GetOpenDocumentInCurrentContextWithChanges
();
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (2)
TextEditor\OpenDocumentTests.cs (2)
60
var newDocumentWithChanges = buffer.CurrentSnapshot.
GetOpenDocumentInCurrentContextWithChanges
();
69
var originalDocumentWithChanges = originalSnapshot.
GetOpenDocumentInCurrentContextWithChanges
();
Microsoft.CodeAnalysis.EditorFeatures.Wpf (5)
InlineHints\InlineHintsTag.cs (1)
97
if (_span.Snapshot.
GetOpenDocumentInCurrentContextWithChanges
() is not Document document)
InlineHints\InlineHintsTagger.cs (1)
121
var document = snapshot.
GetOpenDocumentInCurrentContextWithChanges
();
NavigableSymbols\NavigableSymbolService.NavigableSymbolSource.cs (1)
36
var document = snapshot.
GetOpenDocumentInCurrentContextWithChanges
();
Peek\PeekableItemSource.cs (1)
59
var document = triggerPoint.Value.Snapshot.
GetOpenDocumentInCurrentContextWithChanges
();
Suggestions\SuggestedActions\SuggestedAction.cs (1)
175
var document = this.SubjectBuffer.CurrentSnapshot.
GetOpenDocumentInCurrentContextWithChanges
();
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (1)
IntelliSense\CSharpCompletionCommandHandlerTests_HandleNonRoslynCompletionSources.vb (1)
100
Dim document = triggerLocation.Snapshot.
GetOpenDocumentInCurrentContextWithChanges
()
Microsoft.CodeAnalysis.ExternalAccess.FSharp (1)
Internal\Editor\FSharpSmartIndentProvider.cs (1)
77
var document = line.Snapshot.
GetOpenDocumentInCurrentContextWithChanges
();
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures (15)
AutomaticEndConstructCorrection\AutomaticEndConstructCorrector.vb (1)
67
_previousDocument = e.Before.
GetOpenDocumentInCurrentContextWithChanges
()
EndConstructGeneration\EndConstructCommandHandler.vb (2)
78
Dim document = textSnapshot.
GetOpenDocumentInCurrentContextWithChanges
()
121
Dim document = textSnapshot.
GetOpenDocumentInCurrentContextWithChanges
()
EndConstructGeneration\ReplaceSpanResult.vb (1)
35
Dim document = current.
GetOpenDocumentInCurrentContextWithChanges
()
EndConstructGeneration\SpitLinesResult.vb (1)
38
Dim document = current.
GetOpenDocumentInCurrentContextWithChanges
()
EndConstructGeneration\VisualBasicEndConstructGenerationService.vb (2)
149
Dim document = subjectBuffer.CurrentSnapshot.
GetOpenDocumentInCurrentContextWithChanges
()
336
Dim document = subjectBuffer.CurrentSnapshot.
GetOpenDocumentInCurrentContextWithChanges
()
LineCommit\CommitBufferManager.vb (4)
168
Dim document = snapshotSpan.Snapshot.
GetOpenDocumentInCurrentContextWithChanges
()
178
Dim document = dirtySpan.Snapshot.
GetOpenDocumentInCurrentContextWithChanges
()
232
Dim document = newPoint.Snapshot.
GetOpenDocumentInCurrentContextWithChanges
()
257
Dim documentBeforePreviousEdit = e.Before.
GetOpenDocumentInCurrentContextWithChanges
()
LineCommit\CommitCommandHandler.vb (2)
197
Dim document = subjectBuffer.CurrentSnapshot.
GetOpenDocumentInCurrentContextWithChanges
()
241
Dim document = args.SubjectBuffer.CurrentSnapshot.
GetOpenDocumentInCurrentContextWithChanges
()
Utilities\CommandHandlers\AbstractImplementAbstractClassOrInterfaceCommandHandler.vb (2)
100
Dim document = textSnapshot.
GetOpenDocumentInCurrentContextWithChanges
()
139
Dim document = textSnapshot.
GetOpenDocumentInCurrentContextWithChanges
()
Microsoft.VisualStudio.LanguageServices (18)
CodeCleanup\AbstractCodeCleanUpFixer.cs (2)
147
var document = buffer.CurrentSnapshot.
GetOpenDocumentInCurrentContextWithChanges
();
160
var document = buffer.CurrentSnapshot.
GetOpenDocumentInCurrentContextWithChanges
();
DebuggerIntelliSense\AbstractDebuggerIntelliSenseContext.cs (1)
125
var document = ContextBuffer.CurrentSnapshot.
GetOpenDocumentInCurrentContextWithChanges
();
Implementation\AbstractVsTextViewFilter.cs (1)
100
var document = textSnapshot.
GetOpenDocumentInCurrentContextWithChanges
();
InheritanceMargin\InheritanceMarginTaggerProvider.cs (1)
52
var document = textView.TextBuffer.CurrentSnapshot.
GetOpenDocumentInCurrentContextWithChanges
();
InheritanceMargin\InheritanceMarginViewMarginProvider.cs (1)
75
var document = wpfTextViewHost.TextView.TextBuffer.CurrentSnapshot.
GetOpenDocumentInCurrentContextWithChanges
();
Interactive\VsResetInteractive.cs (1)
307
var document = interactiveWindow.CurrentLanguageBuffer.CurrentSnapshot.
GetOpenDocumentInCurrentContextWithChanges
();
LanguageService\AbstractLanguageService`2.IVsLanguageBlock.cs (1)
73
var document = snapshot.
GetOpenDocumentInCurrentContextWithChanges
();
LanguageService\AbstractLanguageService`2.IVsLanguageContextProvider.cs (1)
26
var document = textBuffer.CurrentSnapshot.
GetOpenDocumentInCurrentContextWithChanges
();
LanguageService\AbstractLanguageService`2.IVsLanguageTextOps.cs (1)
50
var document = textBuffer.CurrentSnapshot.
GetOpenDocumentInCurrentContextWithChanges
();
LanguageService\AbstractLanguageService`2.VsLanguageDebugInfo.cs (1)
148
var document = snapshot.
GetOpenDocumentInCurrentContextWithChanges
();
Snippets\AbstractSnippetCommandHandler.cs (1)
256
var document = subjectBuffer.CurrentSnapshot.
GetOpenDocumentInCurrentContextWithChanges
();
Snippets\SnippetExpansionClient.cs (3)
535
var document = SubjectBuffer.CurrentSnapshot.
GetOpenDocumentInCurrentContextWithChanges
();
736
var document = SubjectBuffer.CurrentSnapshot.
GetOpenDocumentInCurrentContextWithChanges
();
1062
var documentWithImports = SubjectBuffer.CurrentSnapshot.
GetOpenDocumentInCurrentContextWithChanges
();
Snippets\SnippetFunctions\AbstractSnippetFunction.cs (1)
30
=> _subjectBuffer.CurrentSnapshot.
GetOpenDocumentInCurrentContextWithChanges
()?.WithFrozenPartialSemantics(cancellationToken);
Venus\ContainedLanguage.IVsContainedCode.cs (1)
50
var document = snapshot.
GetOpenDocumentInCurrentContextWithChanges
();
Workspace\SourceGeneratedFileManager.cs (1)
303
var sourceGeneratedDocument = (SourceGeneratedDocument?)_textBuffer.CurrentSnapshot.
GetOpenDocumentInCurrentContextWithChanges
();
Microsoft.VisualStudio.LanguageServices.CSharp (1)
Snippets\SnippetCommandHandler.cs (1)
109
var document = subjectBuffer.CurrentSnapshot.
GetOpenDocumentInCurrentContextWithChanges
();
Microsoft.VisualStudio.LanguageServices.VisualBasic (2)
Snippets\SnippetCommandHandler.vb (2)
64
Dim document = subjectBuffer.CurrentSnapshot.
GetOpenDocumentInCurrentContextWithChanges
()
103
Dim document = currentSnapshot.
GetOpenDocumentInCurrentContextWithChanges
()