mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-09 02:30:15 -06:00
make eventSender required for TypingsInstaller
This commit is contained in:
parent
1fc1133377
commit
5c2fea4d4e
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user