Skip to content

Commit

Permalink
Merge pull request #421 from smarter/add-asVersionedTextDocumentIdent…
Browse files Browse the repository at this point in the history
…ifier

Add asVersionedTextDocumentIdentifier to the Converter interface
  • Loading branch information
dbaeumer authored Nov 20, 2018
2 parents 9e9e014 + 562919a commit c80ead2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions client/src/codeConverter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -432,6 +434,7 @@ export function createConverter(uriConverter?: URIConverter): Converter {
return {
asUri,
asTextDocumentIdentifier,
asVersionedTextDocumentIdentifier,
asOpenTextDocumentParams,
asChangeTextDocumentParams,
asCloseTextDocumentParams,
Expand All @@ -456,5 +459,5 @@ export function createConverter(uriConverter?: URIConverter): Converter {
asCodeLensParams,
asDocumentLink,
asDocumentLinkParams
}
}
}
}

0 comments on commit c80ead2

Please sign in to comment.