Skip to content

Commit cdca7cc

Browse files
committed
formatted PR and updated to v1.2.0
1 parent bfcddca commit cdca7cc

File tree

4 files changed

+20
-13
lines changed

4 files changed

+20
-13
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# **v1.2.0**
2+
3+
## What's New
4+
5+
* @edgardmessias added output channel
6+
17
# **v1.1.0**
28

39
## What's New

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": "1.1.0",
5+
"version": "1.2.0",
66
"publisher": "johnstoncode",
77
"engines": {
88
"vscode": "^1.17.0"

src/extension.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,9 @@ import { toDisposable } from "./util";
88
function activate(context: ExtensionContext) {
99
const disposables: Disposable[] = [];
1010

11-
12-
const outputChannel = window.createOutputChannel('SVN');
11+
const outputChannel = window.createOutputChannel("Svn");
1312
disposables.push(outputChannel);
14-
13+
1514
const svn = new Svn();
1615
const model = new Model(svn);
1716
const contentProvider = new SvnContentProvider(model);
@@ -25,9 +24,10 @@ function activate(context: ExtensionContext) {
2524
);
2625

2726
const onOutput = (str: string) => outputChannel.append(str);
28-
svn.onOutput.addListener('log', onOutput);
29-
disposables.push(toDisposable(() => svn.onOutput.removeListener('log', onOutput)));
30-
27+
svn.onOutput.addListener("log", onOutput);
28+
disposables.push(
29+
toDisposable(() => svn.onOutput.removeListener("log", onOutput))
30+
);
3131
}
3232
exports.activate = activate;
3333

src/svn.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { window } from "vscode";
22
import * as cp from "child_process";
33
import * as iconv from "iconv-lite";
44
import * as jschardet from "jschardet";
5-
import { EventEmitter } from 'events';
5+
import { EventEmitter } from "events";
66

77
interface CpOptions {
88
cwd?: string;
@@ -12,20 +12,21 @@ interface CpOptions {
1212

1313
export class Svn {
1414
private _onOutput = new EventEmitter();
15-
get onOutput(): EventEmitter { return this._onOutput; }
15+
get onOutput(): EventEmitter {
16+
return this._onOutput;
17+
}
1618

1719
private log(output: string): void {
18-
this._onOutput.emit('log', output);
20+
this._onOutput.emit("log", output);
1921
}
20-
22+
2123
async exec(cwd: string, args: any[], options: CpOptions = {}) {
2224
if (cwd) {
2325
options.cwd = cwd;
2426
}
2527

26-
2728
if (options.log !== false) {
28-
this.log(`svn ${args.join(' ')}\n`);
29+
this.log(`svn ${args.join(" ")}\n`);
2930
}
3031

3132
let process = cp.spawn("svn", args, options);

0 commit comments

Comments
 (0)