File tree Expand file tree Collapse file tree 2 files changed +21
-4
lines changed
Expand file tree Collapse file tree 2 files changed +21
-4
lines changed Original file line number Diff line number Diff line change @@ -103,11 +103,26 @@ 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 } ) ;
115+ }
116+ }
117+
118+ sourceControl . quickDiffProvider = QuickDiffProvider ;
119+
106120 modified . hideWhenEmpty = true ;
107121 removed . hideWhenEmpty = true ;
108122 notTracked . hideWhenEmpty = true ;
109123
110124 const main = ( ) => {
125+ console . log ( 'ran main' )
111126 return checkAllFiles ( client , statusBar )
112127 . then ( ( data ) => {
113128 modified . resourceStates = updateResourceGroup ( data , 'modified' ) ;
Original file line number Diff line number Diff line change 22 "name" : " svn-scm" ,
33 "displayName" : " svn-scm" ,
44 "description" : " " ,
5- "version" : " 0.1.2 " ,
5+ "version" : " 0.1.3 " ,
66 "publisher" : " johnstoncode" ,
77 "engines" : {
88 "vscode" : " ^1.16.0"
3232 "scripts" : {
3333 "postinstall" : " node ./node_modules/vscode/bin/install" ,
3434 "test" : " node ./node_modules/vscode/bin/test"
35- },
35+ },
36+ "dependencies" : {
37+ "svn-spawn" : " ^0.1.5"
38+ },
3639 "devDependencies" : {
3740 "typescript" : " ^2.5.2" ,
3841 "vscode" : " ^1.1.5" ,
3942 "mocha" : " ^3.5.0" ,
4043 "eslint" : " ^4.6.1" ,
4144 "@types/node" : " ^7.0.0" ,
42- "@types/mocha" : " ^2.2.42" ,
43- "svn-spawn" : " ^0.1.5"
45+ "@types/mocha" : " ^2.2.42"
4446 }
4547}
You can’t perform that action at this time.
0 commit comments