File tree Expand file tree Collapse file tree 4 files changed +20
-13
lines changed Expand file tree Collapse file tree 4 files changed +20
-13
lines changed Original file line number Diff line number Diff line change
1
+ # ** v1.2.0**
2
+
3
+ ## What's New
4
+
5
+ * @edgardmessias added output channel
6
+
1
7
# ** v1.1.0**
2
8
3
9
## What's New
Original file line number Diff line number Diff line change 2
2
"name" : " svn-scm" ,
3
3
"displayName" : " SVN" ,
4
4
"description" : " Integrated Subversion source control" ,
5
- "version" : " 1.1 .0" ,
5
+ "version" : " 1.2 .0" ,
6
6
"publisher" : " johnstoncode" ,
7
7
"engines" : {
8
8
"vscode" : " ^1.17.0"
Original file line number Diff line number Diff line change @@ -8,10 +8,9 @@ import { toDisposable } from "./util";
8
8
function activate ( context : ExtensionContext ) {
9
9
const disposables : Disposable [ ] = [ ] ;
10
10
11
-
12
- const outputChannel = window . createOutputChannel ( 'SVN' ) ;
11
+ const outputChannel = window . createOutputChannel ( "Svn" ) ;
13
12
disposables . push ( outputChannel ) ;
14
-
13
+
15
14
const svn = new Svn ( ) ;
16
15
const model = new Model ( svn ) ;
17
16
const contentProvider = new SvnContentProvider ( model ) ;
@@ -25,9 +24,10 @@ function activate(context: ExtensionContext) {
25
24
) ;
26
25
27
26
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
+ ) ;
31
31
}
32
32
exports . activate = activate ;
33
33
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { window } from "vscode";
2
2
import * as cp from "child_process" ;
3
3
import * as iconv from "iconv-lite" ;
4
4
import * as jschardet from "jschardet" ;
5
- import { EventEmitter } from ' events' ;
5
+ import { EventEmitter } from " events" ;
6
6
7
7
interface CpOptions {
8
8
cwd ?: string ;
@@ -12,20 +12,21 @@ interface CpOptions {
12
12
13
13
export class Svn {
14
14
private _onOutput = new EventEmitter ( ) ;
15
- get onOutput ( ) : EventEmitter { return this . _onOutput ; }
15
+ get onOutput ( ) : EventEmitter {
16
+ return this . _onOutput ;
17
+ }
16
18
17
19
private log ( output : string ) : void {
18
- this . _onOutput . emit ( ' log' , output ) ;
20
+ this . _onOutput . emit ( " log" , output ) ;
19
21
}
20
-
22
+
21
23
async exec ( cwd : string , args : any [ ] , options : CpOptions = { } ) {
22
24
if ( cwd ) {
23
25
options . cwd = cwd ;
24
26
}
25
27
26
-
27
28
if ( options . log !== false ) {
28
- this . log ( `svn ${ args . join ( ' ' ) } \n` ) ;
29
+ this . log ( `svn ${ args . join ( " " ) } \n` ) ;
29
30
}
30
31
31
32
let process = cp . spawn ( "svn" , args , options ) ;
You can’t perform that action at this time.
0 commit comments