mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-16 07:13:45 -05:00
make eventSender required for TypingsInstaller
This commit is contained in:
@@ -272,10 +272,7 @@ namespace ts.server {
|
||||
readonly typingSafeListLocation: string,
|
||||
readonly typesMapLocation: string,
|
||||
private readonly npmLocation: string | undefined,
|
||||
/**
|
||||
* If undefined, event-related work will be suppressed.
|
||||
*/
|
||||
private eventSender: EventSender | undefined) {
|
||||
private eventSender: EventSender) {
|
||||
}
|
||||
|
||||
isKnownTypesPackageName(name: string): boolean {
|
||||
@@ -583,7 +580,7 @@ namespace ts.server {
|
||||
|
||||
const typingsInstaller = disableAutomaticTypingAcquisition
|
||||
? undefined
|
||||
: new NodeTypingsInstaller(telemetryEnabled, logger, host, globalTypingsCacheLocation, typingSafeListLocation, typesMapLocation, npmLocation, canUseEvents ? eventSender : undefined);
|
||||
: new NodeTypingsInstaller(telemetryEnabled, logger, host, globalTypingsCacheLocation, typingSafeListLocation, typesMapLocation, npmLocation, eventSender);
|
||||
|
||||
super({
|
||||
host,
|
||||
|
||||
Reference in New Issue
Block a user