Skip to content

Commit dd7669a

Browse files
committed
Update documentation on workspace/textDocumentContent
1 parent 9702a28 commit dd7669a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Contributor Documentation/LSP Extensions.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -598,10 +598,9 @@ export interface PeekDocumentsResult {
598598
599599
## `workspace/textDocumentContent`
600600
601-
Request from the client to the server asking for contents of a URI having a custom scheme.
602-
For example: "sourcekit-lsp:"
601+
Request from the client to the server for querying the contents of a document, potentially using a custom URI scheme (such as `sourcekit-lsp:`). This closely models the proposed LSP 3.18 request of the same name, thus can be removed once LSP 3.18 has been stabilized.
603602
604-
Enable the experimental client capability `"workspace/textDocumentContent"` so that the server responds with reference document URLs for certain requests or commands whenever possible.
603+
Currently requires enabling the experimental client capability `"workspace/textDocumentContent"` to have the server respond with custom `sourcekit-lsp:` URIs (e.g. in macro expansion requests).
605604
606605
- params: `TextDocumentContentParams`
607606

0 commit comments

Comments
 (0)