Comparing version 0.0.43 to 0.0.44
@@ -84,2 +84,3 @@ import { CancellationToken, Disposable, Event, GenericNotificationHandler, GenericRequestHandler, Logger, Message, MessageReader, MessageType as RPCMessageType, MessageWriter, NotificationHandler, NotificationHandler0, NotificationType, NotificationType0, RequestHandler, RequestHandler0, RequestType, RequestType0, ResponseError, Trace } from "vscode-jsonrpc"; | ||
private initialize(connection); | ||
clearStartFailedState(): Thenable<void>; | ||
stop(): Thenable<void>; | ||
@@ -86,0 +87,0 @@ private cleanUp(); |
@@ -272,2 +272,9 @@ "use strict"; | ||
} | ||
clearStartFailedState() { | ||
if (this.state === ClientState.StartFailed) { | ||
this.state = ClientState.Initial; | ||
return this.stop(); | ||
} | ||
return Promise.resolve(); | ||
} | ||
stop() { | ||
@@ -274,0 +281,0 @@ if (!this.connectionPromise) { |
{ | ||
"name": "libzap", | ||
"version": "0.0.43", | ||
"version": "0.0.44", | ||
"description": "JavaScript library for Zap", | ||
@@ -5,0 +5,0 @@ "license": "none", |
@@ -374,2 +374,14 @@ import * as is from "../util/is"; | ||
/** | ||
* clearStartFailedState clears the StartFailed state so that | ||
* future calls to start() will initiate a new connection. | ||
*/ | ||
public clearStartFailedState(): Thenable<void> { | ||
if (this.state === ClientState.StartFailed) { | ||
this.state = ClientState.Initial; | ||
return this.stop(); | ||
} | ||
return Promise.resolve(); | ||
} | ||
public stop(): Thenable<void> { | ||
@@ -376,0 +388,0 @@ if (!this.connectionPromise) { |
Sorry, the diff of this file is not supported yet
560900
16878