Comparing version 0.0.31 to 0.0.32
@@ -283,6 +283,7 @@ "use strict"; | ||
connection.dispose(); | ||
this.state = ClientState.Stopped; | ||
this.connectionPromise = undefined; | ||
this.resolvedConnection = undefined; | ||
}); | ||
}, () => { }).then(() => { | ||
this.state = ClientState.Stopped; | ||
this.connectionPromise = undefined; | ||
this.resolvedConnection = undefined; | ||
}); | ||
@@ -289,0 +290,0 @@ } |
{ | ||
"name": "libzap", | ||
"version": "0.0.31", | ||
"version": "0.0.32", | ||
"description": "JavaScript library for Zap", | ||
@@ -5,0 +5,0 @@ "license": "none", |
@@ -145,3 +145,2 @@ import { EditOps, composeEdits, transformEdits } from "./textDoc"; | ||
// tslint:disable-next-line no-shadowed-variable | ||
@@ -261,2 +260,3 @@ const composeCopy = (op: WorkspaceOp, b: WorkspaceOp): void => { | ||
const transform = (x: WorkspaceOp, y: WorkspaceOp, primary: boolean): WorkspaceOp => { | ||
// tslint:disable-next-line no-shadowed-variable | ||
const transformEditOps = (x: EditOps, y: EditOps, primary: boolean): EditOps => { | ||
@@ -279,2 +279,3 @@ let edit1: EditOps; | ||
// tslint:disable-next-line no-shadowed-variable | ||
const transformEdit = (x: WorkspaceOp, y: WorkspaceOp, z: WorkspaceOp): void => { | ||
@@ -303,2 +304,3 @@ if (!x.edit) { x.edit = {}; } | ||
// tslint:disable-next-line no-shadowed-variable | ||
const transformSel = (x: WorkspaceOp, y: WorkspaceOp, z: WorkspaceOp): void => { | ||
@@ -326,3 +328,3 @@ if (!x.sel) { x.sel = {}; } | ||
return z; | ||
} | ||
}; | ||
@@ -329,0 +331,0 @@ // TODO(sqs): sel handling is not correct, see tests from Go code |
@@ -385,6 +385,7 @@ import * as is from "../util/is"; | ||
connection.dispose(); | ||
this.state = ClientState.Stopped; | ||
this.connectionPromise = undefined; | ||
this.resolvedConnection = undefined; | ||
}); | ||
}, () => { /* noop; have already logged/returned error */ }).then(() => { | ||
this.state = ClientState.Stopped; | ||
this.connectionPromise = undefined; | ||
this.resolvedConnection = undefined; | ||
}); | ||
@@ -391,0 +392,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
270657
5216