vscode-zap
Advanced tools
Comparing version 0.0.90 to 0.0.91
@@ -385,2 +385,7 @@ "use strict"; | ||
} | ||
// We may have pending edits to apply for documents that were not opened | ||
// but have been modified on the zap branch. The composed WorkspaceOp | ||
// should have all of these edits, so we may safely clear any pending FileEdits | ||
// before applying them. If we don't, we will end up applying duplicated ops. | ||
this.pendingWorkspaceFileEdits = {}; | ||
yield this.apply(composed); | ||
@@ -455,3 +460,4 @@ } | ||
} | ||
else { | ||
else if (!doc.uri.query.endsWith("~0")) { | ||
// Only apply ops to "modifiable" content (i.e. not the left side of a diff). | ||
const changes = this.pendingWorkspaceFileEdits[`/${fileName}`]; | ||
@@ -458,0 +464,0 @@ delete this.pendingWorkspaceFileEdits[`/${fileName}`]; |
@@ -5,3 +5,3 @@ { | ||
"description": "Real-time code synchronization", | ||
"version": "0.0.90", | ||
"version": "0.0.91", | ||
"publisher": "sqs", | ||
@@ -42,3 +42,3 @@ "preview": true, | ||
"dependencies": { | ||
"libzap": "^0.0.90", | ||
"libzap": "^0.0.91", | ||
"open": "^0.0.5", | ||
@@ -45,0 +45,0 @@ "vscode-jsonrpc": "3.0.1-alpha.7" |
@@ -418,2 +418,8 @@ import * as vscode from "vscode"; | ||
} | ||
// We may have pending edits to apply for documents that were not opened | ||
// but have been modified on the zap branch. The composed WorkspaceOp | ||
// should have all of these edits, so we may safely clear any pending FileEdits | ||
// before applying them. If we don't, we will end up applying duplicated ops. | ||
this.pendingWorkspaceFileEdits = {}; | ||
await this.apply(composed); | ||
@@ -493,3 +499,4 @@ } else { | ||
}); | ||
} else { | ||
} else if (!doc.uri.query.endsWith("~0")) { | ||
// Only apply ops to "modifiable" content (i.e. not the left side of a diff). | ||
const changes = this.pendingWorkspaceFileEdits[`/${fileName}`]; | ||
@@ -496,0 +503,0 @@ delete this.pendingWorkspaceFileEdits[`/${fileName}`]; |
Sorry, the diff of this file is not supported yet
485060
7239
+ Addedlibzap@0.0.91(transitive)
- Removedlibzap@0.0.90(transitive)
Updatedlibzap@^0.0.91