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";
41
41
import { TypeTable } from "./type_table" ;
42
42
import { VirtualSourceRoot } from "./virtual_source_root" ;
43
43
44
+ // Remove limit on stack trace depth.
45
+ Error . stackTraceLimit = Infinity ;
46
+
44
47
interface ParseCommand {
45
48
command : "parse" ;
46
49
filename : string ;
@@ -364,7 +367,6 @@ function parseSingleFile(filename: string): {ast: ts.SourceFile, code: string} {
364
367
const nodeModulesRex = / [ / \\ ] n o d e _ m o d u l e s [ / \\ ] ( (?: @ [ \w . - ] + [ / \\ ] ) ? \w [ \w . - ] * ) [ / \\ ] ( .* ) / ;
365
368
366
369
function handleOpenProjectCommand ( command : OpenProjectCommand ) {
367
- Error . stackTraceLimit = Infinity ;
368
370
let tsConfigFilename = String ( command . tsConfig ) ;
369
371
let tsConfig = ts . readConfigFile ( tsConfigFilename , ts . sys . readFile ) ;
370
372
let basePath = pathlib . dirname ( tsConfigFilename ) ;
You can’t perform that action at this time.
0 commit comments