monaco-languageclient
Advanced tools
Comparing version 0.6.2 to 0.6.3
@@ -94,3 +94,7 @@ "use strict"; | ||
var protocolItem = _this.m2p.asCompletionItem(item); | ||
return provider.resolveCompletionItem(protocolItem, token).then(function (item) { return _this.p2m.asCompletionItem(item); }); | ||
return provider.resolveCompletionItem(protocolItem, token).then(function (resolvedItem) { | ||
var resolvedCompletionItem = _this.p2m.asCompletionItem(resolvedItem); | ||
Object.assign(item, resolvedCompletionItem); | ||
return item; | ||
}); | ||
} : undefined | ||
@@ -280,3 +284,7 @@ }; | ||
var protocolCodeLens = _this.m2p.asCodeLens(codeLens); | ||
return provider.resolveCodeLens(protocolCodeLens, token).then(function (result) { return _this.p2m.asCodeLens(result); }); | ||
return provider.resolveCodeLens(protocolCodeLens, token).then(function (result) { | ||
var resolvedCodeLens = _this.p2m.asCodeLens(result); | ||
Object.assign(codeLens, resolvedCodeLens); | ||
return codeLens; | ||
}); | ||
} : (function (m, codeLens, t) { return codeLens; }) | ||
@@ -403,3 +411,7 @@ }; | ||
var documentLink = _this.m2p.asDocumentLink(link); | ||
return provider.resolveDocumentLink(documentLink, token).then(function (result) { return _this.p2m.asILink(result); }); | ||
return provider.resolveDocumentLink(documentLink, token).then(function (result) { | ||
var resolvedLink = _this.p2m.asILink(result); | ||
Object.assign(link, resolvedLink); | ||
return link; | ||
}); | ||
} | ||
@@ -406,0 +418,0 @@ return link; |
{ | ||
"name": "monaco-languageclient", | ||
"version": "0.6.2", | ||
"version": "0.6.3", | ||
"description": "Monaco Language client implementation", | ||
@@ -5,0 +5,0 @@ "author": "TypeFox GmbH (http://www.typefox.io)", |
@@ -96,3 +96,7 @@ /* -------------------------------------------------------------------------------------------- | ||
const protocolItem = this.m2p.asCompletionItem(item); | ||
return provider.resolveCompletionItem!(protocolItem, token).then(item => this.p2m.asCompletionItem(item)); | ||
return provider.resolveCompletionItem!(protocolItem, token).then(resolvedItem => { | ||
const resolvedCompletionItem = this.p2m.asCompletionItem(resolvedItem); | ||
Object.assign(item, resolvedCompletionItem); | ||
return item; | ||
}); | ||
} : undefined | ||
@@ -274,3 +278,7 @@ }; | ||
const protocolCodeLens = this.m2p.asCodeLens(codeLens); | ||
return provider.resolveCodeLens!(protocolCodeLens, token).then(result => this.p2m.asCodeLens(result)) | ||
return provider.resolveCodeLens!(protocolCodeLens, token).then(result => { | ||
const resolvedCodeLens = this.p2m.asCodeLens(result); | ||
Object.assign(codeLens, resolvedCodeLens); | ||
return codeLens; | ||
}); | ||
} : ((m, codeLens, t) => codeLens) | ||
@@ -390,3 +398,7 @@ } | ||
const documentLink = this.m2p.asDocumentLink(link); | ||
return provider.resolveDocumentLink(documentLink, token).then(result => this.p2m.asILink(result)); | ||
return provider.resolveDocumentLink(documentLink, token).then(result => { | ||
const resolvedLink = this.p2m.asILink(result); | ||
Object.assign(link, resolvedLink); | ||
return link; | ||
}); | ||
} | ||
@@ -393,0 +405,0 @@ return link; |
Sorry, the diff of this file is not supported yet
7199894
14589