File tree Expand file tree Collapse file tree 2 files changed +12
-10
lines changed Expand file tree Collapse file tree 2 files changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -139,21 +139,22 @@ export class SvnCommands {
139
139
}
140
140
}
141
141
142
- async commit ( repository : Repository , ...args : any [ ] ) {
143
- const paths = args . map ( state => {
144
- return state . resourceUri . fsPath ;
145
- } ) ;
146
- const message = await inputCommitMessage ( ) ;
142
+ async commit ( repository : Repository , ...args : any [ ] [ ] ) {
143
+ try {
144
+ const paths = args [ 0 ] . map ( state => {
145
+ return state . resourceUri . fsPath ;
146
+ } ) ;
147
+ const message = await inputCommitMessage ( ) ;
147
148
148
- if ( message === undefined ) {
149
- return ;
150
- }
149
+ if ( message === undefined ) {
150
+ return ;
151
+ }
151
152
152
- try {
153
153
await repository . repository . commitFiles ( message , paths ) ;
154
154
changesCommitted ( ) ;
155
155
repository . update ( ) ;
156
156
} catch ( error ) {
157
+ console . log ( error ) ;
157
158
window . showErrorMessage ( "Unable to commit" ) ;
158
159
}
159
160
}
Original file line number Diff line number Diff line change 6
6
"outDir" : " ./out" ,
7
7
"typeRoots" : [" ./node_modules/@types" ],
8
8
"strict" : true ,
9
- "experimentalDecorators" : true
9
+ "experimentalDecorators" : true ,
10
+ "sourceMap" : true
10
11
},
11
12
"include" : [" src/**/*" ],
12
13
"exclude" : [" node_modules" ]
You can’t perform that action at this time.
0 commit comments