File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,9 @@ import { Project } from "./common";
4141import { TypeTable } from "./type_table" ;
4242import { VirtualSourceRoot } from "./virtual_source_root" ;
4343
44+ // Remove limit on stack trace depth.
45+ Error . stackTraceLimit = Infinity ;
46+
4447interface ParseCommand {
4548 command : "parse" ;
4649 filename : string ;
@@ -364,7 +367,6 @@ function parseSingleFile(filename: string): {ast: ts.SourceFile, code: string} {
364367const nodeModulesRex = / [ / \\ ] n o d e _ m o d u l e s [ / \\ ] ( (?: @ [ \w . - ] + [ / \\ ] ) ? \w [ \w . - ] * ) [ / \\ ] ( .* ) / ;
365368
366369function handleOpenProjectCommand ( command : OpenProjectCommand ) {
367- Error . stackTraceLimit = Infinity ;
368370 let tsConfigFilename = String ( command . tsConfig ) ;
369371 let tsConfig = ts . readConfigFile ( tsConfigFilename , ts . sys . readFile ) ;
370372 let basePath = pathlib . dirname ( tsConfigFilename ) ;
You can’t perform that action at this time.
0 commit comments