getTsconfig() — astro Function Reference
Architecture documentation for the getTsconfig() function in check.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 055b217e_dcda_35ec_58e0_9733f092ce96["getTsconfig()"] 97a48377_0e57_a94f_8ce7_cd934868bb42["AstroCheck"] 055b217e_dcda_35ec_58e0_9733f092ce96 -->|defined in| 97a48377_0e57_a94f_8ce7_cd934868bb42 eadf2b20_d224_261e_a1fd_53fce5489201["initialize()"] eadf2b20_d224_261e_a1fd_53fce5489201 -->|calls| 055b217e_dcda_35ec_58e0_9733f092ce96 style 055b217e_dcda_35ec_58e0_9733f092ce96 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/language-tools/language-server/src/check.ts lines 192–208
private getTsconfig() {
if (this.tsconfigPath) {
const tsconfig = resolve(this.workspacePath, this.tsconfigPath.replace(/^~/, homedir()));
if (!existsSync(tsconfig)) {
throw new Error(`Specified tsconfig file \`${tsconfig}\` does not exist.`);
}
return tsconfig;
}
const searchPath = this.workspacePath;
const tsconfig =
this.ts.findConfigFile(searchPath, this.ts.sys.fileExists) ||
this.ts.findConfigFile(searchPath, this.ts.sys.fileExists, 'jsconfig.json');
return tsconfig;
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does getTsconfig() do?
getTsconfig() is a function in the astro codebase, defined in packages/language-tools/language-server/src/check.ts.
Where is getTsconfig() defined?
getTsconfig() is defined in packages/language-tools/language-server/src/check.ts at line 192.
What calls getTsconfig()?
getTsconfig() is called by 1 function(s): initialize.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free