提交 9517db19 编写于 作者: J Johannes Rieken

protect against empty strings, #7326

上级 e7316f88
......@@ -57,7 +57,9 @@ class AcceptOnCharacterOracle {
this._activeItem = item;
this._activeAcceptCharacters.clear();
for (const ch of item.suggestion.commitCharacters) {
this._activeAcceptCharacters.add(ch[0]);
if (ch.length > 0) {
this._activeAcceptCharacters.add(ch[0]);
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册