Co-authored-by: Andrew Maust <69081050+Andrew884@users.noreply.github.com>
This commit is contained in:
parent
7e4fd71ad8
commit
2f61d0037c
1 changed files with 5 additions and 1 deletions
|
@ -641,10 +641,14 @@ class TypeScriptCompletionItemProvider implements vscode.CompletionItemProvider<
|
||||||
const { snippet, parameterCount } = snippetForFunctionCall(item, detail.displayParts);
|
const { snippet, parameterCount } = snippetForFunctionCall(item, detail.displayParts);
|
||||||
item.insertText = snippet;
|
item.insertText = snippet;
|
||||||
if (parameterCount > 0) {
|
if (parameterCount > 0) {
|
||||||
|
//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' });
|
commands.push({ title: 'triggerParameterHints', command: 'editor.action.triggerParameterHints' });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (commands.length) {
|
if (commands.length) {
|
||||||
if (commands.length === 1) {
|
if (commands.length === 1) {
|
||||||
|
|
Loading…
Reference in a new issue