1
0
Fork 0

Integrate latest proposal changes

pull/136/head
Felix Becker 2016-11-06 23:27:22 +01:00
parent bb9750069c
commit 232f5c329d
2 changed files with 4 additions and 4 deletions

View File

@ -4,7 +4,7 @@ declare(strict_types = 1);
namespace LanguageServer\Client;
use LanguageServer\ClientHandler;
use LanguageServer\Protocol\Message;
use LanguageServer\Protocol\{Message, Content};
use Sabre\Event\Promise;
use JsonMapper;
@ -49,7 +49,7 @@ class TextDocument
* to request the current content of a text document identified by the URI
*
* @param TextDocumentIdentifier $textDocument The document to get the content for
* @return Promise <TextDocumentContentResult> The document's current content
* @return Promise <Content> The document's current content
*/
public function xcontent(TextDocumentIdentifier $textDocument): Promise
{
@ -57,7 +57,7 @@ class TextDocument
'textDocument/xcontent',
['textDocument' => $textDocument]
)->then(function ($result) {
return $this->mapper->map($result, new TextDocumentContentResult);
return $this->mapper->map($result, new Content);
});
}
}

View File

@ -2,7 +2,7 @@
namespace LanguageServer\Protocol;
class TextDocumentContentResult
class Content
{
/**
* The content of the text document