提交 b26862c8 编写于 作者: M Matt Bierner

Fix jsx closing tag completions

Fixes #45252
上级 e09581a2
......@@ -70,7 +70,7 @@ class MyCompletionItem extends vscode.CompletionItem {
}
}
if (tsEntry.kindModifiers.match(/\boptional\b/)) {
if (tsEntry.kindModifiers && tsEntry.kindModifiers.match(/\boptional\b/)) {
this.insertText = this.label;
this.filterText = this.label;
this.label += '?';
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册