This commit is contained in:
Arthur Ozga 2017-11-14 18:14:15 -08:00
parent 6a910919ac
commit 930be75e0c

View file

@ -510,13 +510,13 @@ namespace ts.server {
class IOSession extends Session {
constructor(options: IoSessionOptions) {
const { host, eventPort, globalTypingsCacheLocation, typingSafeListLocation, typesMapLocation, npmLocation, canUseEvents } = options;
let event: Event;
if (canUseEvents && eventPort) {
const eventSender = new SocketEventSender(host, logger, eventPort);
event = eventSender.event;
}
const typingsInstaller = disableAutomaticTypingAcquisition
? undefined
: new NodeTypingsInstaller(telemetryEnabled, logger, host, globalTypingsCacheLocation, typingSafeListLocation, typesMapLocation, npmLocation);