diff --git a/src/Project.php b/src/Project.php index a6d1748..e6c1dbd 100644 --- a/src/Project.php +++ b/src/Project.php @@ -93,7 +93,8 @@ class Project } /** - * Reads a document from disk. + * Loads the document by doing a textDocument/xcontent request to the client. + * If the client does not support textDocument/xcontent, tries to read the file from the file system. * The document is NOT added to the list of open documents, but definitions are registered. * * @param string $uri diff --git a/src/Protocol/TextDocumentContentResult.php b/src/Protocol/TextDocumentContentResult.php index 758de55..10b98ad 100644 --- a/src/Protocol/TextDocumentContentResult.php +++ b/src/Protocol/TextDocumentContentResult.php @@ -5,6 +5,8 @@ namespace LanguageServer\Protocol; class TextDocumentContentResult { /** + * The content of the text document + * * @var string */ public $text;