@@ -12,11 +12,14 @@ public class OptionsDialogPage : DialogPage
1212 internal const bool _defCamelCaseEnumerationValues = false ;
1313 internal const bool _defCamelCasePropertyNames = true ;
1414 internal const bool _defCamelCaseTypeNames = false ;
15+
16+ internal const bool _defWebEssentials2015 = false ;
17+
1518 internal const bool _defClassInsteadOfInterface = false ;
16- internal const bool _defGlobalScope = false ;
17- internal const bool _defExport = false ;
18- internal const bool _defWebEssentials2015 = true ;
1919 internal const string _defModuleName = "Server.Dtos" ;
20+ internal const bool _defExport = false ;
21+ internal const bool _defGlobalScope = false ;
22+ internal const bool _defIgnoreIntellisense = true ;
2023
2124 [ Category ( "Casing" ) ]
2225 [ DisplayName ( "Camel case enum values" ) ]
@@ -56,7 +59,12 @@ public class OptionsDialogPage : DialogPage
5659 [ DefaultValue ( _defExport ) ]
5760 public bool Export { get ; set ; } = _defExport ;
5861
59-
62+ [ Category ( "Settings" ) ]
63+ [ DisplayName ( "Ignore intellisense" ) ]
64+ [ Description ( "Ignore intellisense for client side reference names" ) ]
65+ [ DefaultValue ( _defIgnoreIntellisense ) ]
66+ public bool IgnoreIntellisense { get ; set ; } = _defIgnoreIntellisense ;
67+
6068 [ Category ( "Compatibilty" ) ]
6169 [ DisplayName ( "Web Esentials 2015 file names" ) ]
6270 [ Description ( "Web Essentials 2015 format is <filename>.cs.d.ts instead of <filename>.d.ts" ) ]
@@ -68,63 +76,71 @@ public class Options
6876 {
6977 const string OVERRIDE_FILE_NAME = "tsdefgen.json" ;
7078 static OptionsOverride overrides { get ; set ; } = null ;
71- static public bool CamelCaseEnumerationValues
79+ public static bool CamelCaseEnumerationValues
7280 {
7381 get
7482 {
7583 return overrides != null ? overrides . CamelCaseEnumerationValues : DtsPackage . Options . CamelCaseEnumerationValues ;
7684 }
7785 }
7886
79- static public bool CamelCasePropertyNames
87+ public static bool CamelCasePropertyNames
8088 {
8189 get
8290 {
8391 return overrides != null ? overrides . CamelCasePropertyNames : DtsPackage . Options . CamelCasePropertyNames ;
8492 }
8593 }
8694
87- static public bool CamelCaseTypeNames
95+ public static bool CamelCaseTypeNames
8896 {
8997 get
9098 {
9199 return overrides != null ? overrides . CamelCaseTypeNames : DtsPackage . Options . CamelCaseTypeNames ;
92100 }
93101 }
94- //todo:设置为服务器命名空间
95- static public string DefaultModuleName
102+ //todo: set to server namespace
103+ public static string DefaultModuleName
96104 {
97105 get
98106 {
99107 return overrides != null ? overrides . DefaultModuleName : DtsPackage . Options . DefaultModuleName ;
100108 }
101109 }
102110
103- static public bool ClassInsteadOfInterface
111+ public static bool ClassInsteadOfInterface
104112 {
105113 get
106114 {
107115 return overrides != null ? overrides . ClassInsteadOfInterface : DtsPackage . Options . ClassInsteadOfInterface ;
108116 }
109117 }
110118
111- static public bool GlobalScope
119+ public static bool GlobalScope
112120 {
113121 get
114122 {
115123 return overrides != null ? overrides . GlobalScope : DtsPackage . Options . GlobalScope ;
116124 }
117125 }
118126
119- static public bool Export
127+ public static bool Export
120128 {
121129 get
122130 {
123131 return overrides != null ? overrides . Export : DtsPackage . Options . Export ;
124132 }
125133 }
126134
127- static public bool WebEssentials2015
135+ public static bool IgnoreIntellisense
136+ {
137+ get
138+ {
139+ return overrides != null ? overrides . IgnoreIntellisense : DtsPackage . Options . IgnoreIntellisense ;
140+ }
141+ }
142+
143+ public static bool WebEssentials2015
128144 {
129145 get
130146 {
@@ -184,13 +200,13 @@ public static void ReadOptionOverrides(ProjectItem sourceItem, bool display = tr
184200 }
185201 }
186202
187- public static void SetOptionsOverrides ( OptionsOverride optionsOverride )
203+ internal static void SetOptionsOverrides ( OptionsOverride optionsOverride )
188204 {
189205 overrides = optionsOverride ;
190206 }
191207 }
192208
193- public class OptionsOverride
209+ internal class OptionsOverride
194210 {
195211 // [JsonRequired]
196212 public bool CamelCaseEnumerationValues { get ; set ; } = OptionsDialogPage . _defCamelCaseEnumerationValues ;
@@ -213,6 +229,9 @@ public class OptionsOverride
213229 // [JsonRequired]
214230 public bool Export { get ; set ; } = OptionsDialogPage . _defExport ;
215231
232+ // [JsonRequired]
233+ public bool IgnoreIntellisense { get ; set ; } = OptionsDialogPage . _defIgnoreIntellisense ;
234+
216235 // [JsonRequired]
217236 public bool WebEssentials2015 { get ; set ; } = OptionsDialogPage . _defWebEssentials2015 ;
218237
0 commit comments