File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -273,6 +273,7 @@ class GitIncomingChangesFileDecorationProvider implements FileDecorationProvider
273
273
274
274
export class GitDecorations {
275
275
276
+ private enabled = false ;
276
277
private disposables : Disposable [ ] = [ ] ;
277
278
private modelDisposables : Disposable [ ] = [ ] ;
278
279
private providers = new Map < Repository , Disposable > ( ) ;
@@ -286,13 +287,19 @@ export class GitDecorations {
286
287
}
287
288
288
289
private update ( ) : void {
289
- const enabled = workspace . getConfiguration ( 'git' ) . get ( 'decorations.enabled' ) ;
290
+ const config = workspace . getConfiguration ( 'git' ) ;
291
+ const enabled = config . get < boolean > ( 'decorations.enabled' ) === true ;
292
+ if ( this . enabled === enabled ) {
293
+ return ;
294
+ }
290
295
291
296
if ( enabled ) {
292
297
this . enable ( ) ;
293
298
} else {
294
299
this . disable ( ) ;
295
300
}
301
+
302
+ this . enabled = enabled ;
296
303
}
297
304
298
305
private enable ( ) : void {
You can’t perform that action at this time.
0 commit comments