madskristensen / WebEssentials2015

A Visual Studio extension for web developers
Other
300 stars 92 forks source link

"Create TypeScript Intellisense file" should create const enum #67

Closed styfle closed 9 years ago

styfle commented 9 years ago

TypeScript 1.5 made a breaking change to enums. The relevant part is quoted below.

Enum reference in-lining changes

Starting with Typescript 1.5 all non-const enum members are not inlined. Recommendation: Add the const modifier to the enum declaration to ensure it is consistently inlined at all consumption sites. See issue #2183

Can the "Create TypeScript Intellisense file" add the const modifier?