From 562919a94e51d6df51fc1b9c95c51b4134137b37 Mon Sep 17 00:00:00 2001 From: Guillaume Martres Date: Tue, 9 Oct 2018 16:51:31 +0200 Subject: [PATCH] Add asVersionedTextDocumentIdentifier to the Converter interface It can be useful for users of vscode-languageclient. --- client/src/codeConverter.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/client/src/codeConverter.ts b/client/src/codeConverter.ts index 04bac3509..99554597b 100644 --- a/client/src/codeConverter.ts +++ b/client/src/codeConverter.ts @@ -18,6 +18,8 @@ export interface Converter { asTextDocumentIdentifier(textDocument: code.TextDocument): proto.TextDocumentIdentifier; + asVersionedTextDocumentIdentifier(textDocument: code.TextDocument): proto.VersionedTextDocumentIdentifier; + asOpenTextDocumentParams(textDocument: code.TextDocument): proto.DidOpenTextDocumentParams; asChangeTextDocumentParams(textDocument: code.TextDocument): proto.DidChangeTextDocumentParams; @@ -432,6 +434,7 @@ export function createConverter(uriConverter?: URIConverter): Converter { return { asUri, asTextDocumentIdentifier, + asVersionedTextDocumentIdentifier, asOpenTextDocumentParams, asChangeTextDocumentParams, asCloseTextDocumentParams, @@ -456,5 +459,5 @@ export function createConverter(uriConverter?: URIConverter): Converter { asCodeLensParams, asDocumentLink, asDocumentLinkParams - } -} \ No newline at end of file + } +}