@@ -171,33 +171,37 @@ namespace ts.projectSystem {
171
171
path : `${ projectFolder } /node_modules/.cache/someFile.d.ts` ,
172
172
content : ""
173
173
} ;
174
- host . ensureFileOrFolder ( nodeModulesIgnoredFileFromIgnoreDirectory ) ;
175
- host . checkTimeoutQueueLength ( 0 ) ;
176
- verifyProject ( ) ;
177
174
178
175
const nodeModulesIgnoredFile : File = {
179
176
path : `${ projectFolder } /node_modules/.cacheFile.ts` ,
180
177
content : ""
181
178
} ;
182
- host . ensureFileOrFolder ( nodeModulesIgnoredFile ) ;
183
- host . checkTimeoutQueueLength ( 0 ) ;
184
- verifyProject ( ) ;
185
179
186
180
const gitIgnoredFileFromIgnoreDirectory : File = {
187
181
path : `${ projectFolder } /.git/someFile.d.ts` ,
188
182
content : ""
189
183
} ;
190
- host . ensureFileOrFolder ( gitIgnoredFileFromIgnoreDirectory ) ;
191
- host . checkTimeoutQueueLength ( 0 ) ;
192
- verifyProject ( ) ;
193
184
194
185
const gitIgnoredFile : File = {
195
186
path : `${ projectFolder } /.gitCache.d.ts` ,
196
187
content : ""
197
188
} ;
198
- host . ensureFileOrFolder ( gitIgnoredFile ) ;
199
- host . checkTimeoutQueueLength ( 0 ) ;
200
- verifyProject ( ) ;
189
+ const emacsIgnoredFileFromIgnoreDirectory : File = {
190
+ path : `${ projectFolder } /src/.#field.ts` ,
191
+ content : ""
192
+ } ;
193
+
194
+ [
195
+ nodeModulesIgnoredFileFromIgnoreDirectory ,
196
+ nodeModulesIgnoredFile ,
197
+ gitIgnoredFileFromIgnoreDirectory ,
198
+ gitIgnoredFile ,
199
+ emacsIgnoredFileFromIgnoreDirectory
200
+ ] . forEach ( ignoredEntity => {
201
+ host . ensureFileOrFolder ( ignoredEntity ) ;
202
+ host . checkTimeoutQueueLength ( 0 ) ;
203
+ verifyProject ( ) ;
204
+ } ) ;
201
205
202
206
function verifyProject ( ) {
203
207
checkWatchedDirectories ( host , emptyArray , /*recursive*/ true ) ;
0 commit comments