File tree Expand file tree Collapse file tree 1 file changed +5
-11
lines changed
Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -103,19 +103,13 @@ function activate(context) {
103103 const removed = sourceControl . createResourceGroup ( 'removed' , 'Removed' ) ;
104104 const notTracked = sourceControl . createResourceGroup ( 'unversioned' , 'Not Tracked' ) ;
105105
106- const QuickDiffProvider = {
107- provideOriginalResource ( uri ) {
108- if ( uri . scheme !== 'file' ) {
109- return ;
110- }
111-
112- // As a mitigation for extensions like ESLint showing warnings and errors
113- // for hg URIs, let's change the file extension of these uris to .hg.
114- return new Uri ( ) . with ( { scheme : 'svn-original' , query : uri . path , path : uri . path } ) ;
106+ sourceControl . provideOriginalResource = ( uri ) => {
107+ if ( uri . scheme !== 'file' ) {
108+ return ;
115109 }
116- }
117110
118- sourceControl . quickDiffProvider = QuickDiffProvider ;
111+ return vscode . Uri . with ( { scheme : 'svn' , query : uri . path , path : uri . path } ) ;
112+ } ;
119113
120114 modified . hideWhenEmpty = true ;
121115 removed . hideWhenEmpty = true ;
You can’t perform that action at this time.
0 commit comments