Skip to content

Commit 5c2fea4

Browse files
committed
make eventSender required for TypingsInstaller
1 parent 1fc1133 commit 5c2fea4

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

src/server/server.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -272,10 +272,7 @@ namespace ts.server {
272272
readonly typingSafeListLocation: string,
273273
readonly typesMapLocation: string,
274274
private readonly npmLocation: string | undefined,
275-
/**
276-
* If undefined, event-related work will be suppressed.
277-
*/
278-
private eventSender: EventSender | undefined) {
275+
private eventSender: EventSender) {
279276
}
280277

281278
isKnownTypesPackageName(name: string): boolean {
@@ -583,7 +580,7 @@ namespace ts.server {
583580

584581
const typingsInstaller = disableAutomaticTypingAcquisition
585582
? undefined
586-
: new NodeTypingsInstaller(telemetryEnabled, logger, host, globalTypingsCacheLocation, typingSafeListLocation, typesMapLocation, npmLocation, canUseEvents ? eventSender : undefined);
583+
: new NodeTypingsInstaller(telemetryEnabled, logger, host, globalTypingsCacheLocation, typingSafeListLocation, typesMapLocation, npmLocation, eventSender);
587584

588585
super({
589586
host,

0 commit comments

Comments
 (0)