mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-02 14:31:31 +01:00
Fix ? being appended to optional completions when using useCodeSnippetsOnMethodSuggest
Fixes #42955
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user