111 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)
92
var document = currentSnapshot.
GetOpenDocumentInCurrentContextWithChanges
();
EventHookup\EventHookupCommandHandler_TypeCharCommand.cs (1)
49
var document = args.SubjectBuffer.CurrentSnapshot.
GetOpenDocumentInCurrentContextWithChanges
();
RawStringLiteral\RawStringLiteralCommandHandler_Return.cs (1)
86
var document = subjectBuffer.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)
102
var document = SubjectBuffer.CurrentSnapshot.
GetOpenDocumentInCurrentContextWithChanges
();
394
var document = SubjectBuffer.CurrentSnapshot.
GetOpenDocumentInCurrentContextWithChanges
();
AutomaticCompletion\BraceCompletionSessionProvider.cs (1)
51
var document = textSnapshot.
GetOpenDocumentInCurrentContextWithChanges
();
Classification\CopyPasteAndPrintingClassificationBufferTaggerProvider.Tagger.cs (1)
107
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)
88
var document = subjectBuffer.CurrentSnapshot.
GetOpenDocumentInCurrentContextWithChanges
();
201
var document = args.SubjectBuffer.CurrentSnapshot.
GetOpenDocumentInCurrentContextWithChanges
();
255
var document = subjectBuffer.CurrentSnapshot.
GetOpenDocumentInCurrentContextWithChanges
();
288
var document = subjectBuffer.CurrentSnapshot.
GetOpenDocumentInCurrentContextWithChanges
();
310
var document = subjectBuffer.CurrentSnapshot.
GetOpenDocumentInCurrentContextWithChanges
();
345
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)
105
var document = args.SubjectBuffer.CurrentSnapshot.
GetOpenDocumentInCurrentContextWithChanges
();
163
document = textSnapshot.
GetOpenDocumentInCurrentContextWithChanges
();
FindReferences\FindReferencesCommandHandler.cs (1)
94
var document = snapshot.
GetOpenDocumentInCurrentContextWithChanges
();
Formatting\FormatCommandHandler.cs (1)
130
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)
60
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
();
351
var document = Buffer.CurrentSnapshot.
GetOpenDocumentInCurrentContextWithChanges
();
365
var document = Buffer.CurrentSnapshot.
GetOpenDocumentInCurrentContextWithChanges
();
RenameTracking\RenameTrackingTaggerProvider.TrackingSession.cs (1)
161
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)
301
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)
170
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)
76
Dim document = textSnapshot.
GetOpenDocumentInCurrentContextWithChanges
()
109
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
()
332
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)
89
Dim document = textSnapshot.
GetOpenDocumentInCurrentContextWithChanges
()
125
Dim document = textSnapshot.
GetOpenDocumentInCurrentContextWithChanges
()
Microsoft.VisualStudio.LanguageServices (19)
CodeCleanup\AbstractCodeCleanUpFixer.cs (2)
158
var document = buffer.CurrentSnapshot.
GetOpenDocumentInCurrentContextWithChanges
();
171
var document = buffer.CurrentSnapshot.
GetOpenDocumentInCurrentContextWithChanges
();
DebuggerIntelliSense\AbstractDebuggerIntelliSenseContext.cs (1)
125
var document = ContextBuffer.CurrentSnapshot.
GetOpenDocumentInCurrentContextWithChanges
();
Implementation\AbstractVsTextViewFilter.cs (1)
112
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)
29
var document = textBuffer.CurrentSnapshot.
GetOpenDocumentInCurrentContextWithChanges
();
LanguageService\AbstractLanguageService`2.IVsLanguageTextOps.cs (1)
50
var document = textBuffer.CurrentSnapshot.
GetOpenDocumentInCurrentContextWithChanges
();
LanguageService\AbstractLanguageService`2.VsLanguageDebugInfo.cs (1)
158
var document = snapshot.
GetOpenDocumentInCurrentContextWithChanges
();
Snippets\AbstractSnippetCommandHandler.cs (1)
256
var document = subjectBuffer.CurrentSnapshot.
GetOpenDocumentInCurrentContextWithChanges
();
Snippets\SnippetExpansionClient.cs (4)
534
var document = SubjectBuffer.CurrentSnapshot.
GetOpenDocumentInCurrentContextWithChanges
();
730
var document = SubjectBuffer.CurrentSnapshot.
GetOpenDocumentInCurrentContextWithChanges
();
806
var document = SubjectBuffer.CurrentSnapshot.
GetOpenDocumentInCurrentContextWithChanges
();
1058
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
()