mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 10:08:49 +01:00
Fix snippetForFunctionCall if called with already resolve item
This commit is contained in:
@@ -520,7 +520,11 @@ export default class TypeScriptCompletionItemProvider implements vscode.Completi
|
||||
const snippet = new vscode.SnippetString();
|
||||
const methodName = detail.displayParts.find(part => part.kind === 'methodName');
|
||||
if (item.insertText) {
|
||||
snippet.appendText(typeof item.insertText === 'string' ? item.insertText : item.insertText.value);
|
||||
if (typeof item.insertText === 'string') {
|
||||
snippet.appendText(item.insertText);
|
||||
} else {
|
||||
return item.insertText;
|
||||
}
|
||||
} else {
|
||||
snippet.appendText((methodName && methodName.text) || item.label);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user