Increase maximum depth of outlining span search (#18704)

* Increase max depth of outlining spans to 120

* Update tests

* Update tests to demonstrate limit

* Set limit to 40 and update tests
This commit is contained in:
Benjamin Lichtman
2017-10-04 13:48:08 -07:00
committed by Mohamed Hegazy
parent 530e107d51
commit 43084829bc
4 changed files with 40 additions and 79 deletions

View File

@@ -1,7 +1,7 @@
/* @internal */
namespace ts.OutliningElementsCollector {
const collapseText = "...";
const maxDepth = 20;
const maxDepth = 40;
const defaultLabel = "#region";
const regionMatch = new RegExp("^\\s*//\\s*#(end)?region(?:\\s+(.*))?$");