mirror of
https://github.com/Microsoft/vscode
synced 2024-08-28 05:19:39 +00:00
Fix ?
being appended to optional completions when using useCodeSnippetsOnMethodSuggest
Fixes #42955
This commit is contained in:
parent
cc19497c49
commit
ee6ac95120
|
@ -464,7 +464,8 @@ export default class TypeScriptCompletionItemProvider implements CompletionItemP
|
|||
let hasAddedParameters = false;
|
||||
|
||||
const snippet = new SnippetString();
|
||||
snippet.appendText(item.label || item.insertText as string);
|
||||
const methodName = detail.displayParts.find(part => part.kind === 'methodName');
|
||||
snippet.appendText((methodName && methodName.text) || item.label || item.insertText as string);
|
||||
snippet.appendText('(');
|
||||
|
||||
let parenCount = 0;
|
||||
|
|
Loading…
Reference in a new issue