Note : you need knowledge of the different process boundaries in the code base.
- This is used in the main web process. It makes sure the
tsconfig.jsonis valid and if so sets is as the active config.
- If invalid it reports the errors.
- Watches tsconfig.json. If changed checks if valid / invalid. If valid sets active config again.
The main web process uses
projectDataLoader to load the information based on the active config event and sends it down to the project service worker
This is used in the project service worker. It gets data passed down from the main process worker and creates a
project is what is used as our main handle to the TypeScript langauge service.
tsconfig.ts : Contains the main entry point for parsing / validation of
tsconfig.json. Called from
There are other files in the area that
tsconfig.ts uses (e.g.
compilationContextExpander.ts to load
node_modules / do
<reference> tag expansions) to create a proper compilation context.