File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -89,7 +89,6 @@ export class GitExtension implements IGitExtension, IDisposable {
89
89
90
90
if ( change . newValue !== change . oldValue ) {
91
91
this . refresh ( ) . then ( ( ) => this . _repositoryChanged . emit ( change ) ) ;
92
- this . _repositoryChanged . emit ( change ) ;
93
92
}
94
93
} )
95
94
. catch ( reason => {
@@ -337,7 +336,7 @@ export class GitExtension implements IGitExtension, IDisposable {
337
336
}
338
337
339
338
/** Refresh the git repository status */
340
- async _refreshStatus ( ) : Promise < void > {
339
+ protected async _refreshStatus ( ) : Promise < void > {
341
340
await this . ready ;
342
341
const path = this . pathRepository ;
343
342
@@ -422,7 +421,7 @@ export class GitExtension implements IGitExtension, IDisposable {
422
421
}
423
422
424
423
/** Make request for a list of all git branches in the repository */
425
- async _branch ( ) : Promise < Git . IBranchResult > {
424
+ protected async _branch ( ) : Promise < Git . IBranchResult > {
426
425
await this . ready ;
427
426
const path = this . pathRepository ;
428
427
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ export function extractFilename(path: string): string {
31
31
}
32
32
}
33
33
34
- export function decodeStage ( x : string , y : string ) {
34
+ export function decodeStage ( x : string , y : string ) : string | null {
35
35
// If file is untracked
36
36
if ( x === '?' && y === '?' ) {
37
37
return 'untracked' ;
@@ -46,7 +46,7 @@ export function decodeStage(x: string, y: string) {
46
46
}
47
47
}
48
48
49
- return undefined ;
49
+ return null ;
50
50
}
51
51
52
52
/** Open a file in the git listing */
You can’t perform that action at this time.
0 commit comments