mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-20 16:49:06 +01:00
Co-authored-by: Andrew Maust <69081050+Andrew884@users.noreply.github.com>
This commit is contained in:
@@ -641,7 +641,11 @@ class TypeScriptCompletionItemProvider implements vscode.CompletionItemProvider<
|
||||
const { snippet, parameterCount } = snippetForFunctionCall(item, detail.displayParts);
|
||||
item.insertText = snippet;
|
||||
if (parameterCount > 0) {
|
||||
commands.push({ title: 'triggerParameterHints', command: 'editor.action.triggerParameterHints' });
|
||||
//Fix for https://github.com/microsoft/vscode/issues/104059
|
||||
//Don't show parameter hints if "editor.parameterHints.enabled": false
|
||||
if (vscode.workspace.getConfiguration('editor.parameterHints').get('enabled')) {
|
||||
commands.push({ title: 'triggerParameterHints', command: 'editor.action.triggerParameterHints' });
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user