mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-20 00:28:52 +01:00
[folding] Cannot read property 'length' of undefined. Fixes #46171
This commit is contained in:
@@ -130,7 +130,7 @@ suite('Object Folding', () => {
|
||||
/* 6*/' };',
|
||||
/* 7*/'</script>',
|
||||
/* 8*/'<script>',
|
||||
/* 9*/' test(() => {',
|
||||
/* 9*/' test(() => { // hello',
|
||||
/*10*/' f();',
|
||||
/*11*/' });',
|
||||
/*12*/'</script>',
|
||||
@@ -206,7 +206,7 @@ suite('Object Folding', () => {
|
||||
/*2*/'</div>',
|
||||
];
|
||||
assertRanges(input, [r(0, 1)]);
|
||||
});
|
||||
});
|
||||
|
||||
test('Fold intersecting region', () => {
|
||||
let input = [
|
||||
@@ -218,7 +218,7 @@ suite('Object Folding', () => {
|
||||
/*5*/'<!-- #endregion -->',
|
||||
];
|
||||
assertRanges(input, [r(0, 3)]);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
test('Test limit', () => {
|
||||
|
||||
Reference in New Issue
Block a user