Co-authored-by: Andrew Maust <69081050+Andrew884@users.noreply.github.com>
This commit is contained in:
parent
7e4fd71ad8
commit
2f61d0037c
|
@ -641,7 +641,11 @@ 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) {
|
||||||
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' });
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue