Skip to content

Commit 201e615

Browse files
committed
fixed escape canceling commit
1 parent b28d305 commit 201e615

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1-
**FILL ME**
1+
**v0.10.0**
22
=============================================
33

44
## What's New
55
- Added refresh button to source control view
66

7+
## Bug Fixes
8+
- Esc now cancels commit rather than committing with undefined message
9+
710
**v0.9.0**
811
=============================================
912

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "svn-scm",
33
"displayName": "SVN",
44
"description": "Integrated Subversion source control",
5-
"version": "0.9.0",
5+
"version": "0.10.0",
66
"publisher": "johnstoncode",
77
"engines": {
88
"vscode": "^1.16.0"

src/commands.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,13 @@ SvnCommands.prototype.commit = async function(repository, ...args) {
119119
const paths = args.map(resourceState => {
120120
return resourceState.resourceUri.fsPath;
121121
});
122+
const message = await inputCommitMessage();
123+
124+
if (message === undefined) {
125+
return;
126+
}
122127

123128
try {
124-
const message = await inputCommitMessage();
125129
await repository.repository.commitFiles(message, paths);
126130
changesCommitted();
127131
repository.update();

0 commit comments

Comments
 (0)