File tree Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -105,6 +105,7 @@ Example:
105105| ` svn.sourceControl.combineExternalIfSameServer ` | Combine the svn external in the main if is from the same server.| ` false ` |
106106| ` svn.sourceControl.countUnversioned ` | Allow to count unversioned files in status count| ` true ` |
107107| ` svn.sourceControl.countIgnoreOnCommit ` | Allow to count ignored files to commit in status count| ` false ` |
108+ | ` svn.sourceControl.hideUnversioned ` | Hide unversioned files in Source Control UI| ` false ` |
108109| ` svn.log.length ` | Number of commit messages to log| ` 50 ` |
109110| ` svn.showOutput ` | Show the output window when the extension starts| ` false ` |
110111| ` svn.conflicts.autoResolve ` | Set file to status resolved after fix conflictss| ` false ` |
Original file line number Diff line number Diff line change 741741 "type" : " number" ,
742742 "description" : " Set the interval in seconds to check changed files on remote repository and show in statusbar. 0 to disable" ,
743743 "default" : 300
744+ },
745+ "svn.sourceControl.hideUnversioned" : {
746+ "type" : " boolean" ,
747+ "description" : " Hide unversioned files in Source Control UI" ,
748+ "default" : false
744749 }
745750 }
746751 }
Original file line number Diff line number Diff line change @@ -372,6 +372,10 @@ export class Repository {
372372 ) ;
373373 } ) ;
374374
375+ const hideUnversioned = configuration . get < boolean > (
376+ "sourceControl.hideUnversioned"
377+ ) ;
378+
375379 for ( const status of statusesRepository ) {
376380 if ( status . path === "." ) {
377381 this . isIncomplete = status . status === Status . INCOMPLETE ;
@@ -435,6 +439,10 @@ export class Repository {
435439 } else if ( status . status === Status . CONFLICTED ) {
436440 conflicts . push ( resource ) ;
437441 } else if ( status . status === Status . UNVERSIONED ) {
442+ if ( hideUnversioned ) {
443+ continue ;
444+ }
445+
438446 const matches = status . path . match (
439447 / ( .+ ?) \. ( m i n e | w o r k i n g | m e r g e - \w + \. r \d + | r \d + ) $ /
440448 ) ;
You can’t perform that action at this time.
0 commit comments