未验证 提交 51fe691d 编写于 作者: H HaoboGu 提交者: GitHub

fix #98102

When VSCode selects preselected completion items, the index shouldn't start from 1. If there are multiple completion items with preselect=true, the first item will never be chosen.
上级 a7fb3ef3
......@@ -26,7 +26,7 @@ export abstract class Memory {
return 0;
}
let topScore = items[0].score[0];
for (let i = 1; i < items.length; i++) {
for (let i = 0; i < items.length; i++) {
const { score, completion: suggestion } = items[i];
if (score[0] !== topScore) {
// stop when leaving the group of top matches
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册