Skip to content

Commit b7e813f

Browse files
authored
only allow resolveCompletionItem to change documentation, detail, and additionalTextEdits (microsoft#183224)
microsoft#183092 (comment)
1 parent 23188a4 commit b7e813f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/vs/workbench/api/common/extHostLanguageFeatures.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1033,7 +1033,12 @@ class CompletionsAdapter {
10331033
return undefined;
10341034
}
10351035

1036-
return this._convertCompletionItem(resolvedItem, id);
1036+
return this._convertCompletionItem({
1037+
...item,
1038+
documentation: resolvedItem.documentation,
1039+
detail: resolvedItem.detail,
1040+
additionalTextEdits: resolvedItem.additionalTextEdits
1041+
}, id);
10371042
}
10381043

10391044
releaseCompletionItems(id: number): any {

0 commit comments

Comments
 (0)