Skip to content

Commit bd37fe7

Browse files
author
Andy Hanson
committed
Increase maxDepth to 40
1 parent b0d71b8 commit bd37fe7

File tree

4 files changed

+22
-22
lines changed

4 files changed

+22
-22
lines changed

src/services/outliningElementsCollector.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace ts.OutliningElementsCollector {
99

1010
function addNodeOutliningSpans(sourceFile: SourceFile, cancellationToken: CancellationToken, out: Push<OutliningSpan>): void {
1111
let depth = 0;
12-
const maxDepth = 39;
12+
const maxDepth = 40;
1313
sourceFile.forEachChild(function walk(n) {
1414
if (depth > maxDepth) return;
1515
cancellationToken.throwIfCancellationRequested();

tests/cases/fourslash/getOutliningSpans.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// <reference path="fourslash.ts"/>
22

3-
////// interface
3+
////// interface
44
////interface IFoo[| {
55
//// getDist(): number;
66
////}|]
@@ -63,9 +63,9 @@
6363
////}|])
6464
////
6565
////// trivia handeling
66-
////class ClassFooWithTrivia[| /* some comments */
66+
////class ClassFooWithTrivia[| /* some comments */
6767
//// /* more trivia */ {
68-
////
68+
////
6969
////
7070
//// /*some trailing trivia */
7171
////}|] /* even more */
@@ -81,15 +81,15 @@
8181
//////outline with deep nesting
8282
////var nest =[| [[|[[|[[|[[|[[|[[|[[|[[|[[|[[|[[|[[|[[|[[|[[|[[|[[|[[|[[|[[|[[|[[|[[|[[|[[|[[|[[|[[|[[|[[|[[|[[|[[|[[|[[|[
8383
//// [|[
84-
//// [
84+
//// [|[
8585
//// [
8686
//// [
8787
//// [
88-
//// 1,2,3
89-
//// ]
88+
//// 1,2,3
89+
//// ]
9090
//// ]
9191
//// ]
92-
//// ]
92+
//// ]|]
9393
//// ]|]
9494
////]|]]|]]|]]|]]|]]|]]|]]|]]|]]|]]|]]|]]|]]|]]|]]|]]|]]|]]|]]|]]|]]|]]|]]|]]|]]|]]|]]|]]|]]|]]|]]|]]|]]|]]|]]|];
9595
////

tests/cases/fourslash/shims-pp/getOutliningSpans.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// <reference path="fourslash.ts"/>
22

3-
////// interface
3+
////// interface
44
////interface IFoo[| {
55
//// getDist(): number;
66
////}|]
@@ -63,9 +63,9 @@
6363
////}|])
6464
////
6565
////// trivia handeling
66-
////class ClassFooWithTrivia[| /* some comments */
66+
////class ClassFooWithTrivia[| /* some comments */
6767
//// /* more trivia */ {
68-
////
68+
////
6969
////
7070
//// /*some trailing trivia */
7171
////}|] /* even more */
@@ -81,15 +81,15 @@
8181
//////outline with deep nesting
8282
////var nest =[| [[|[[|[[|[[|[[|[[|[[|[[|[[|[[|[[|[[|[[|[[|[[|[[|[[|[[|[[|[[|[[|[[|[[|[[|[[|[[|[[|[[|[[|[[|[[|[[|[[|[[|[[|[
8383
//// [|[
84-
//// [
84+
//// [|[
8585
//// [
8686
//// [
8787
//// [
88-
//// 1,2,3
89-
//// ]
88+
//// 1,2,3
89+
//// ]
9090
//// ]
9191
//// ]
92-
//// ]
92+
//// ]|]
9393
//// ]|]
9494
////]|]]|]]|]]|]]|]]|]]|]]|]]|]]|]]|]]|]]|]]|]]|]]|]]|]]|]]|]]|]]|]]|]]|]]|]]|]]|]]|]]|]]|]]|]]|]]|]]|]]|]]|]]|];
9595
////

tests/cases/fourslash/shims/getOutliningSpans.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// <reference path="fourslash.ts"/>
22

3-
////// interface
3+
////// interface
44
////interface IFoo[| {
55
//// getDist(): number;
66
////}|]
@@ -63,9 +63,9 @@
6363
////}|])
6464
////
6565
////// trivia handeling
66-
////class ClassFooWithTrivia[| /* some comments */
66+
////class ClassFooWithTrivia[| /* some comments */
6767
//// /* more trivia */ {
68-
////
68+
////
6969
////
7070
//// /*some trailing trivia */
7171
////}|] /* even more */
@@ -81,15 +81,15 @@
8181
//////outline with deep nesting
8282
////var nest =[| [[|[[|[[|[[|[[|[[|[[|[[|[[|[[|[[|[[|[[|[[|[[|[[|[[|[[|[[|[[|[[|[[|[[|[[|[[|[[|[[|[[|[[|[[|[[|[[|[[|[[|[[|[
8383
//// [|[
84-
//// [
84+
//// [|[
8585
//// [
8686
//// [
8787
//// [
88-
//// 1,2,3
89-
//// ]
88+
//// 1,2,3
89+
//// ]
9090
//// ]
9191
//// ]
92-
//// ]
92+
//// ]|]
9393
//// ]|]
9494
////]|]]|]]|]]|]]|]]|]]|]]|]]|]]|]]|]]|]]|]]|]]|]]|]]|]]|]]|]]|]]|]]|]]|]]|]]|]]|]]|]]|]]|]]|]]|]]|]]|]]|]]|]]|];
9595
////

0 commit comments

Comments
 (0)