提交 c17ffc28 编写于 作者: J Johannes Rieken

fix #26511

上级 cf6f9ab6
......@@ -381,7 +381,7 @@ function initTable() {
for (let i = 1; i <= 100; i++) {
row.push(-i);
}
for (let i = 0; i < 100; i++) {
for (let i = 0; i <= 100; i++) {
let thisRow = row.slice(0);
thisRow[0] = -i;
table.push(thisRow);
......
......@@ -329,6 +329,13 @@ suite('Filters', () => {
assertMatches('f', ':foo', ':^foo', fuzzyScore);
});
test('Cannot set property \'1\' of undefined, #26511', function () {
let word = new Array<void>(123).join('a');
let pattern = new Array<void>(120).join('a');
fuzzyScore(pattern, word);
assert.ok(true); // must not explode
});
test('Vscode 1.12 no longer obeys \'sortText\' in completion items (from language server), #26096', function () {
assertMatches(' ', ' group', undefined, fuzzyScore);
assertMatches(' g', ' group', ' ^group', fuzzyScore);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册