21 references to Document
Microsoft.CodeAnalysis.ExternalAccess.Razor (1)
Cohost\RazorCohostRequestContext.cs (1)
19
/// <inheritdoc cref="RequestContext.
Document
"/>
Microsoft.CodeAnalysis.LanguageServer.Protocol (20)
ExternalAccess\Razor\SimplifyMethodHandler.cs (1)
41
var originalDocument = context.
Document
;
Handler\Completion\CompletionHandler.cs (2)
50
Contract.ThrowIfNull(context.
Document
);
53
var document = context.
Document
;
Handler\Definitions\AbstractGoToDefinitionHandler.cs (1)
41
var document = context.
Document
;
Handler\FoldingRanges\FoldingRangesHandler.cs (1)
41
var document = context.
Document
;
Handler\Formatting\AbstractFormatDocumentHandlerBase.cs (1)
29
var document = context.
Document
;
Handler\Formatting\FormatDocumentOnTypeHandler.cs (1)
43
var document = context.
Document
;
Handler\Highlights\DocumentHighlightHandler.cs (1)
45
var document = context.
Document
;
Handler\OnAutoInsert\OnAutoInsertHandler.cs (1)
49
var document = context.
Document
;
Handler\References\FindAllReferencesHandler.cs (1)
54
var document = context.
Document
;
Handler\RequestContext.cs (4)
61
/// The workspace this request is for, if applicable. This will be present if <see cref="
Document
"/> is
216
return
Document
is null
217
? throw new ArgumentNullException($"{nameof(
Document
)} is null when it was required for {Method}")
218
:
Document
;
Handler\SignatureHelp\SignatureHelpHandler.cs (1)
35
var document = context.
Document
;
Handler\SourceGenerators\SourceGeneratedDocumentGetTextHandler.cs (1)
33
var document = context.
Document
;
Handler\SpellCheck\DocumentSpellCheckHandler.cs (4)
48
if (context.
Document
== null)
54
if (!context.IsTracking(context.
Document
.GetURI()))
56
context.TraceInformation($"Ignoring spell check request for untracked document: {context.
Document
.GetURI()}");
60
return [context.
Document
];