From 545e1fdc2d57bd0513a617f31f7086ce353fc1ff Mon Sep 17 00:00:00 2001 From: Felix Becker Date: Sun, 6 Nov 2016 18:45:02 +0100 Subject: [PATCH] Improve docblock --- src/Project.php | 3 ++- src/Protocol/TextDocumentContentResult.php | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) 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;