mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-03 23:06:49 +01:00
debt - don't send data that's not needed, make resolve a function not a property
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user