Comparing version 0.0.94 to 0.0.95
@@ -395,3 +395,8 @@ "use strict"; | ||
if (this.workspace) { | ||
yield this.workspace.updateHistory(params.state.history || []); | ||
if (!params.state.history) { | ||
yield this.workspace.reset([]); | ||
} | ||
else { | ||
yield this.workspace.updateHistory(params.state.history); | ||
} | ||
} | ||
@@ -398,0 +403,0 @@ } |
{ | ||
"name": "libzap", | ||
"version": "0.0.94", | ||
"version": "0.0.95", | ||
"description": "JavaScript library for Zap", | ||
@@ -5,0 +5,0 @@ "license": "none", |
@@ -504,3 +504,9 @@ import { Disposable, Emitter, Event } from "vscode-jsonrpc"; | ||
if (this.workspace) { | ||
await this.workspace.updateHistory(params.state.history || []); | ||
// If we receive an update with a null history, assume this update | ||
// is a reset action. | ||
if (!params.state.history) { | ||
await this.workspace.reset([]); | ||
} else { | ||
await this.workspace.updateHistory(params.state.history); | ||
} | ||
} | ||
@@ -507,0 +513,0 @@ } else { |
Sorry, the diff of this file is not supported yet
665851
19575