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)
41var originalDocument = context.Document;
Handler\Completion\CompletionHandler.cs (2)
50Contract.ThrowIfNull(context.Document); 53var document = context.Document;
Handler\Definitions\AbstractGoToDefinitionHandler.cs (1)
41var document = context.Document;
Handler\FoldingRanges\FoldingRangesHandler.cs (1)
41var document = context.Document;
Handler\Formatting\AbstractFormatDocumentHandlerBase.cs (1)
29var document = context.Document;
Handler\Formatting\FormatDocumentOnTypeHandler.cs (1)
43var document = context.Document;
Handler\Highlights\DocumentHighlightHandler.cs (1)
45var document = context.Document;
Handler\OnAutoInsert\OnAutoInsertHandler.cs (1)
49var document = context.Document;
Handler\References\FindAllReferencesHandler.cs (1)
54var 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 216return Document is null 217? throw new ArgumentNullException($"{nameof(Document)} is null when it was required for {Method}") 218: Document;
Handler\SignatureHelp\SignatureHelpHandler.cs (1)
35var document = context.Document;
Handler\SourceGenerators\SourceGeneratedDocumentGetTextHandler.cs (1)
33var document = context.Document;
Handler\SpellCheck\DocumentSpellCheckHandler.cs (4)
48if (context.Document == null) 54if (!context.IsTracking(context.Document.GetURI())) 56context.TraceInformation($"Ignoring spell check request for untracked document: {context.Document.GetURI()}"); 60return [context.Document];