@@ -1447,6 +1447,7 @@ export class Repository implements Disposable {
14471447 private async updateModelState ( ) : Promise < void > {
14481448 const { status, didHitLimit } = await this . repository . getStatus ( ) ;
14491449 const config = workspace . getConfiguration ( 'git' ) ;
1450+ const scopedConfig = workspace . getConfiguration ( 'git' , Uri . file ( this . repository . root ) ) ;
14501451 const shouldIgnore = config . get < boolean > ( 'ignoreLimitWarning' ) === true ;
14511452 const useIcons = ! config . get < boolean > ( 'decorations.enabled' , true ) ;
14521453 this . isRepositoryHuge = didHitLimit ;
@@ -1507,9 +1508,7 @@ export class Repository implements Disposable {
15071508 this . _submodules = submodules ! ;
15081509 this . rebaseCommit = rebaseCommit ;
15091510
1510- const handleUntracked =
1511- config . get < 'withchanges' | 'separate' | 'hide' > ( 'handleUntracked' ) ||
1512- 'withchanges' ;
1511+ const handleUntracked = scopedConfig . get < 'withchanges' | 'separate' | 'hide' > ( 'handleUntracked' ) ;
15131512 const index : Resource [ ] = [ ] ;
15141513 const workingTree : Resource [ ] = [ ] ;
15151514 const merge : Resource [ ] = [ ] ;
@@ -1586,11 +1585,10 @@ export class Repository implements Disposable {
15861585 }
15871586
15881587 private setCountBadge ( ) : void {
1589- const config = workspace . getConfiguration ( 'git' ) ;
1590- const countBadge = config . get < string > ( 'countBadge' ) ;
1591- const handleUntracked =
1592- config . get < 'withchanges' | 'separate' | 'hide' > ( 'handleUntracked' ) ||
1593- 'withchanges' ;
1588+ const config = workspace . getConfiguration ( 'git' , Uri . file ( this . repository . root ) ) ;
1589+ const countBadge = config . get < 'all' | 'tracked' | 'off' > ( 'countBadge' ) ;
1590+ const handleUntracked = config . get < 'withchanges' | 'separate' | 'hide' > ( 'handleUntracked' ) ;
1591+
15941592 let count =
15951593 this . mergeGroup . resourceStates . length +
15961594 this . indexGroup . resourceStates . length +
0 commit comments