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