|
84 | 84 | "category": "SVN" |
85 | 85 | }, |
86 | 86 | { |
87 | | - "command": "svn.openDiffHead", |
88 | | - "title": "Diff Changes HEAD", |
| 87 | + "command": "svn.openChangeBase", |
| 88 | + "title": "Open Changes with BASE", |
| 89 | + "category": "SVN", |
| 90 | + "icon": { |
| 91 | + "light": "icons/light/open-change.svg", |
| 92 | + "dark": "icons/dark/open-change.svg" |
| 93 | + } |
| 94 | + }, |
| 95 | + { |
| 96 | + "command": "svn.openChangeHead", |
| 97 | + "title": "Open Changes with HEAD", |
| 98 | + "category": "SVN", |
| 99 | + "icon": { |
| 100 | + "light": "icons/light/open-change.svg", |
| 101 | + "dark": "icons/dark/open-change.svg" |
| 102 | + } |
| 103 | + }, |
| 104 | + { |
| 105 | + "command": "svn.openFile", |
| 106 | + "title": "Open File", |
| 107 | + "category": "SVN", |
| 108 | + "icon": { |
| 109 | + "light": "icons/light/open-file.svg", |
| 110 | + "dark": "icons/dark/open-file.svg" |
| 111 | + } |
| 112 | + }, |
| 113 | + { |
| 114 | + "command": "svn.openHEADFile", |
| 115 | + "title": "Open File (HEAD)", |
89 | 116 | "category": "SVN" |
90 | 117 | }, |
91 | 118 | { |
|
134 | 161 | } |
135 | 162 | ], |
136 | 163 | "menus": { |
137 | | - "commandPalette": [], |
| 164 | + "commandPalette": [ |
| 165 | + { |
| 166 | + "command": "svn.openFile", |
| 167 | + "when": "config.svn.enabled" |
| 168 | + }, |
| 169 | + { |
| 170 | + "command": "svn.openHEADFile", |
| 171 | + "when": "config.svn.enabled" |
| 172 | + }, |
| 173 | + { |
| 174 | + "command": "svn.openChangeBase", |
| 175 | + "when": "config.svn.enabled" |
| 176 | + }, |
| 177 | + { |
| 178 | + "command": "svn.openChangeHead", |
| 179 | + "when": "config.svn.enabled" |
| 180 | + } |
| 181 | + ], |
138 | 182 | "scm/title": [ |
139 | 183 | { |
140 | 184 | "command": "svn.refresh", |
|
176 | 220 | "config.svn.enabled && scmProvider == svn && scmResourceGroup == unversioned", |
177 | 221 | "group": "1_modification" |
178 | 222 | }, |
| 223 | + { |
| 224 | + "command": "svn.openFile", |
| 225 | + "when": |
| 226 | + "config.svn.enabled && scmProvider == svn && scmResourceGroup != external", |
| 227 | + "group": "navigation" |
| 228 | + }, |
| 229 | + { |
| 230 | + "command": "svn.openHEADFile", |
| 231 | + "when": |
| 232 | + "config.svn.enabled && scmProvider == svn && scmResourceGroup != unversioned && scmResourceGroup != external", |
| 233 | + "group": "navigation" |
| 234 | + }, |
| 235 | + { |
| 236 | + "command": "svn.openChangeBase", |
| 237 | + "when": |
| 238 | + "config.svn.enabled && scmProvider == svn && scmResourceGroup != unversioned && scmResourceGroup != external", |
| 239 | + "group": "navigation" |
| 240 | + }, |
| 241 | + { |
| 242 | + "command": "svn.openChangeHead", |
| 243 | + "when": |
| 244 | + "config.svn.enabled && scmProvider == svn && scmResourceGroup != unversioned && scmResourceGroup != external", |
| 245 | + "group": "navigation" |
| 246 | + }, |
179 | 247 | { |
180 | 248 | "command": "svn.addChangelist", |
181 | 249 | "when": |
|
206 | 274 | "scmProvider == svn && scmResourceGroup != unversioned && scmResourceGroup != external", |
207 | 275 | "group": "1_modification" |
208 | 276 | }, |
209 | | - { |
210 | | - "command": "svn.openDiffHead", |
211 | | - "when": |
212 | | - "scmProvider == svn && scmResourceGroup != unversioned && scmResourceGroup != external", |
213 | | - "group": "navigation" |
214 | | - }, |
215 | 277 | { |
216 | 278 | "command": "svn.revert", |
217 | 279 | "when": |
|
225 | 287 | "group": "2_modification" |
226 | 288 | } |
227 | 289 | ], |
228 | | - "editor/title": [] |
| 290 | + "editor/title": [ |
| 291 | + { |
| 292 | + "command": "svn.openFile", |
| 293 | + "group": "navigation", |
| 294 | + "when": |
| 295 | + "config.svn.enabled && isInDiffEditor && resourceScheme != extension && resourceScheme != merge-conflict.conflict-diff" |
| 296 | + }, |
| 297 | + { |
| 298 | + "command": "svn.openChangeBase", |
| 299 | + "group": "navigation", |
| 300 | + "when": |
| 301 | + "config.svn.enabled && !isInDiffEditor && resourceScheme == file" |
| 302 | + }, |
| 303 | + { |
| 304 | + "command": "svn.openChangeHead", |
| 305 | + "group": "navigation", |
| 306 | + "when": |
| 307 | + "config.svn.enabled && !isInDiffEditor && resourceScheme == file" |
| 308 | + } |
| 309 | + ] |
229 | 310 | }, |
230 | 311 | "configuration": { |
231 | 312 | "title": "Svn", |
|
0 commit comments