Repository navigation
services tsconfig.json added missing file references and fixed the order - #2917
Conversation
This order is significant:
```ts
"../compiler/diagnosticInformationMap.generated.ts",
"../compiler/commandLineParser.ts",
```
Also not having these extra files referenced caused TypeStrong/atom-typescript#304
Really wish we moved to external modules.
|
Hi Basarat Ali Syed (@basarat), I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution! The agreement was validated by Microsoft and real humans are currently evaluating your PR. TTYL, MSBOT; |
|
Actually I think that in general Also maybe |
True in general but in this case they do matter. Consider the code staight out of repo : // Types.ts
module ts {
export enum DiagnosticCategory {
Warning,
Error,
Message,
}
}
// commandLineParser.ts
module ts {
/* @internal */
export var optionDeclarations = [
{
name: "declaration",
shortName: "d",
type: "boolean",
description: Diagnostics.Generates_corresponding_d_ts_file,
}
]
}
// diagnostic generated
module ts {
export var Diagnostics = {
Generates_corresponding_d_ts_file: { code: 6002, category: DiagnosticCategory.Message, key: "Generates corresponding '.d.ts' file." },
}
}If you run this on the playground it will fail with It matters if the stuff is used during initial module body evaluation / execution (e.g. the This is exactly why I have come to hate out : https://github.com/TypeStrong/atom-typescript/blob/master/docs/out.md 🌹 |
services tsconfig.json added missing file references and fixed the order
|
thanks! |
|
🌹 |
This order is significant:
Also not having these extra files referenced caused TypeStrong/atom-typescript#304
Really wish we moved to external modules, but that's a seperate issue 🌹