@@ -1948,7 +1948,7 @@ namespace ts.server {
1948
1948
* Otherwise it will create an InferredProject.
1949
1949
*/
1950
1950
export class ConfiguredProject extends Project {
1951
- private typeAcquisition ! : TypeAcquisition ; // TODO: GH#18217
1951
+ private typeAcquisition : TypeAcquisition | undefined ;
1952
1952
/* @internal */
1953
1953
configFileWatcher : FileWatcher | undefined ;
1954
1954
private directoriesWatchedForWildcards : ESMap < string , WildcardDirectoryWatcher > | undefined ;
@@ -2164,7 +2164,7 @@ namespace ts.server {
2164
2164
}
2165
2165
2166
2166
getTypeAcquisition ( ) {
2167
- return this . typeAcquisition ;
2167
+ return this . typeAcquisition || { } ;
2168
2168
}
2169
2169
2170
2170
/*@internal */
@@ -2282,7 +2282,7 @@ namespace ts.server {
2282
2282
*/
2283
2283
export class ExternalProject extends Project {
2284
2284
excludedFiles : readonly NormalizedPath [ ] = [ ] ;
2285
- private typeAcquisition ! : TypeAcquisition ; // TODO: GH#18217
2285
+ private typeAcquisition : TypeAcquisition | undefined ;
2286
2286
/*@internal */
2287
2287
constructor ( public externalProjectName : string ,
2288
2288
projectService : ProjectService ,
@@ -2318,7 +2318,7 @@ namespace ts.server {
2318
2318
}
2319
2319
2320
2320
getTypeAcquisition ( ) {
2321
- return this . typeAcquisition ;
2321
+ return this . typeAcquisition || { } ;
2322
2322
}
2323
2323
2324
2324
setTypeAcquisition ( newTypeAcquisition : TypeAcquisition ) : void {
0 commit comments