Skip to content

Commit 19b17bb

Browse files
committed
fixed #153
1 parent 6c9e3c0 commit 19b17bb

File tree

3 files changed

+19
-3
lines changed

3 files changed

+19
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# **v1.18.0**
2+
3+
## What's New
4+
5+
* @JohnstonCode Added config option for showing output on startup
6+
17
# **v1.17.1**
28

39
## Bug Fixes

package.json

Lines changed: 6 additions & 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": "1.17.1",
5+
"version": "1.18.0",
66
"publisher": "johnstoncode",
77
"engines": {
88
"vscode": "^1.17.0"
@@ -476,6 +476,11 @@
476476
"minimum": 1,
477477
"description": "Number of commit messages to log",
478478
"default": 50
479+
},
480+
"svn.showOutput": {
481+
"type": "boolean",
482+
"description": "Show the output window when the extension starts",
483+
"default": false
479484
}
480485
}
481486
}

src/extension.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,16 @@ import {
1717
} from "./util";
1818

1919
async function init(context: ExtensionContext, disposables: Disposable[]) {
20+
const config = workspace.getConfiguration("svn");
2021
const outputChannel = window.createOutputChannel("Svn");
2122
disposables.push(outputChannel);
22-
outputChannel.show();
2323

24-
const config = workspace.getConfiguration("svn");
24+
const showOutput = config.get<boolean>("showOutput");
25+
26+
if (showOutput) {
27+
outputChannel.show();
28+
}
29+
2530
const enabled = config.get<boolean>("enabled") === true;
2631
const pathHint = config.get<string>("path");
2732
const svnFinder = new SvnFinder();

0 commit comments

Comments
 (0)