Integrate latest proposal changes
parent
bb9750069c
commit
232f5c329d
|
@ -4,7 +4,7 @@ declare(strict_types = 1);
|
||||||
namespace LanguageServer\Client;
|
namespace LanguageServer\Client;
|
||||||
|
|
||||||
use LanguageServer\ClientHandler;
|
use LanguageServer\ClientHandler;
|
||||||
use LanguageServer\Protocol\Message;
|
use LanguageServer\Protocol\{Message, Content};
|
||||||
use Sabre\Event\Promise;
|
use Sabre\Event\Promise;
|
||||||
use JsonMapper;
|
use JsonMapper;
|
||||||
|
|
||||||
|
@ -49,7 +49,7 @@ class TextDocument
|
||||||
* to request the current content of a text document identified by the URI
|
* to request the current content of a text document identified by the URI
|
||||||
*
|
*
|
||||||
* @param TextDocumentIdentifier $textDocument The document to get the content for
|
* @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
|
public function xcontent(TextDocumentIdentifier $textDocument): Promise
|
||||||
{
|
{
|
||||||
|
@ -57,7 +57,7 @@ class TextDocument
|
||||||
'textDocument/xcontent',
|
'textDocument/xcontent',
|
||||||
['textDocument' => $textDocument]
|
['textDocument' => $textDocument]
|
||||||
)->then(function ($result) {
|
)->then(function ($result) {
|
||||||
return $this->mapper->map($result, new TextDocumentContentResult);
|
return $this->mapper->map($result, new Content);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
namespace LanguageServer\Protocol;
|
namespace LanguageServer\Protocol;
|
||||||
|
|
||||||
class TextDocumentContentResult
|
class Content
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* The content of the text document
|
* The content of the text document
|
Loading…
Reference in New Issue