debt - don't send data that's not needed, make resolve a function not a property

This commit is contained in:
Johannes Rieken
2020-05-01 15:01:49 +02:00
parent bda1d3ee65
commit ce850e02d5
7 changed files with 37 additions and 43 deletions

View File

@@ -447,8 +447,8 @@ export class MainThreadLanguageFeatures implements MainThreadLanguageFeaturesSha
}
};
if (supportsResolveDetails) {
provider.resolveCompletionItem = (model, position, suggestion, token) => {
return this._proxy.$resolveCompletionItem(handle, model.uri, position, suggestion._id!, token).then(result => {
provider.resolveCompletionItem = (suggestion, token) => {
return this._proxy.$resolveCompletionItem(handle, suggestion._id!, token).then(result => {
if (!result) {
return suggestion;
}