Commit dc661cc 1 parent 8ac4144 commit dc661cc Copy full SHA for dc661cc
File tree 2 files changed +21
-0
lines changed
2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change 851
851
"type" : " boolean" ,
852
852
"description" : " Refresh remote changes on refresh command" ,
853
853
"default" : false
854
+ },
855
+ "svn.sourceControl.changesLeftClick" : {
856
+ "type" : " string" ,
857
+ "enum" : [
858
+ " open" ,
859
+ " open diff"
860
+ ],
861
+ "description" : " Set left click functionality on changes resource state" ,
862
+ "default" : " open diff"
854
863
}
855
864
}
856
865
}
Original file line number Diff line number Diff line change @@ -104,6 +104,18 @@ export class Resource implements SourceControlResourceState {
104
104
@memoize
105
105
get command ( ) : Command {
106
106
const diffHead = configuration . get < boolean > ( "diff.withHead" , true ) ;
107
+ const changesLeftClick = configuration . get < string > (
108
+ "sourceControl.changesLeftClick" ,
109
+ "open diff"
110
+ ) ;
111
+
112
+ if ( ! this . remote && changesLeftClick === "open" ) {
113
+ return {
114
+ command : "svn.openFile" ,
115
+ title : "Open file" ,
116
+ arguments : [ this ]
117
+ } ;
118
+ }
107
119
108
120
if ( this . remote || diffHead ) {
109
121
return {
You can’t perform that action at this time.
0 commit comments