|
82 | 82 | { |
83 | 83 | "command": "svn.commit", |
84 | 84 | "title": "Commit Selected", |
85 | | - "category": "SVN" |
| 85 | + "category": "SVN", |
| 86 | + "icon": { |
| 87 | + "light": "icons/light/check.svg", |
| 88 | + "dark": "icons/dark/check.svg" |
| 89 | + } |
| 90 | + }, |
| 91 | + { |
| 92 | + "command": "svn.commitWithMessage", |
| 93 | + "title": "Commit Changes", |
| 94 | + "category": "SVN", |
| 95 | + "icon": { |
| 96 | + "light": "icons/light/check.svg", |
| 97 | + "dark": "icons/dark/check.svg" |
| 98 | + } |
86 | 99 | }, |
87 | 100 | { |
88 | 101 | "command": "svn.openChangeBase", |
|
132 | 145 | }, |
133 | 146 | { |
134 | 147 | "command": "svn.revert", |
135 | | - "title": "Revert Selected", |
| 148 | + "title": "Revert Selected File", |
136 | 149 | "category": "SVN" |
137 | 150 | }, |
138 | 151 | { |
139 | 152 | "command": "svn.update", |
140 | | - "title": "Svn update", |
| 153 | + "title": "Update", |
141 | 154 | "category": "SVN" |
142 | 155 | }, |
143 | 156 | { |
144 | 157 | "command": "svn.patch", |
145 | | - "title": "Svn patch", |
| 158 | + "title": "Show diff patch", |
146 | 159 | "category": "SVN" |
147 | 160 | }, |
148 | 161 | { |
|
159 | 172 | "command": "svn.log", |
160 | 173 | "title": "Show commit messages", |
161 | 174 | "category": "SVN" |
| 175 | + }, |
| 176 | + { |
| 177 | + "command": "svn.revertChange", |
| 178 | + "title": "Revert Change", |
| 179 | + "category": "SVN", |
| 180 | + "icon": { |
| 181 | + "light": "icons/light/clean.svg", |
| 182 | + "dark": "icons/dark/clean.svg" |
| 183 | + } |
| 184 | + }, |
| 185 | + { |
| 186 | + "command": "svn.revertSelectedRanges", |
| 187 | + "title": "Revert Selected Ranges", |
| 188 | + "category": "SVN" |
162 | 189 | } |
163 | 190 | ], |
164 | 191 | "menus": { |
|
178 | 205 | { |
179 | 206 | "command": "svn.openChangeHead", |
180 | 207 | "when": "config.svn.enabled && svnOpenRepositoryCount != 0" |
| 208 | + }, |
| 209 | + { |
| 210 | + "command": "svn.addChangelist", |
| 211 | + "when": "config.svn.enabled && svnOpenRepositoryCount != 0" |
| 212 | + }, |
| 213 | + { |
| 214 | + "command": "svn.removeChangelist", |
| 215 | + "when": "config.svn.enabled && svnOpenRepositoryCount != 0" |
| 216 | + }, |
| 217 | + { |
| 218 | + "command": "svn.commit", |
| 219 | + "when": "config.svn.enabled && svnOpenRepositoryCount != 0" |
| 220 | + }, |
| 221 | + { |
| 222 | + "command": "svn.commitWithMessage", |
| 223 | + "when": "false" |
| 224 | + }, |
| 225 | + { |
| 226 | + "command": "svn.revertChange", |
| 227 | + "when": "false" |
| 228 | + }, |
| 229 | + { |
| 230 | + "command": "svn.revertSelectedRanges", |
| 231 | + "when": "config.svn.enabled && svnOpenRepositoryCount != 0 && svnHasSupportToRegisterDiffCommand == 1" |
181 | 232 | } |
182 | 233 | ], |
183 | 234 | "scm/title": [ |
| 235 | + { |
| 236 | + "command": "svn.commitWithMessage", |
| 237 | + "group": "navigation", |
| 238 | + "when": "config.svn.enabled && scmProvider == svn" |
| 239 | + }, |
184 | 240 | { |
185 | 241 | "command": "svn.refresh", |
186 | 242 | "group": "navigation", |
187 | | - "when": "scmProvider == svn" |
| 243 | + "when": "config.svn.enabled && scmProvider == svn" |
188 | 244 | }, |
189 | 245 | { |
190 | 246 | "command": "svn.switchBranch", |
|
248 | 304 | { |
249 | 305 | "command": "svn.addChangelist", |
250 | 306 | "when": |
251 | | - "config.svn.enabled && scmProvider == svn && scmResourceGroup != external", |
| 307 | + "config.svn.enabled && scmProvider == svn && scmResourceGroup != unversioned && scmResourceGroup != external", |
252 | 308 | "group": "inline" |
253 | 309 | }, |
254 | 310 | { |
255 | 311 | "command": "svn.addChangelist", |
256 | 312 | "when": |
257 | | - "config.svn.enabled && scmProvider == svn && scmResourceGroup != external", |
| 313 | + "config.svn.enabled && scmProvider == svn && scmResourceGroup != unversioned && scmResourceGroup != external", |
258 | 314 | "group": "1_modification" |
259 | 315 | }, |
260 | 316 | { |
|
288 | 344 | "group": "2_modification" |
289 | 345 | } |
290 | 346 | ], |
| 347 | + "scm/change/title": [ |
| 348 | + { |
| 349 | + "command": "svn.revertChange", |
| 350 | + "when": "config.svn.enabled && originalResourceScheme == svn" |
| 351 | + } |
| 352 | + ], |
291 | 353 | "editor/title": [ |
292 | 354 | { |
293 | 355 | "command": "svn.openFile", |
|
306 | 368 | "group": "navigation", |
307 | 369 | "when": |
308 | 370 | "config.svn.enabled && svnOpenRepositoryCount != 0 && !isInDiffEditor && resourceScheme == file" |
| 371 | + }, |
| 372 | + { |
| 373 | + "command": "svn.revertSelectedRanges", |
| 374 | + "group": "2_svn@3", |
| 375 | + "when": |
| 376 | + "config.svn.enabled && svnOpenRepositoryCount != 0 && isInDiffEditor && resourceScheme != merge-conflict.conflict-diff && && svnHasSupportToRegisterDiffCommand == 1" |
309 | 377 | } |
310 | 378 | ] |
311 | 379 | }, |
|
317 | 385 | "description": "Whether svn is enabled", |
318 | 386 | "default": true |
319 | 387 | }, |
| 388 | + "svn.autorefresh": { |
| 389 | + "type": "boolean", |
| 390 | + "description": "Whether auto refreshing is enabled", |
| 391 | + "default": true |
| 392 | + }, |
320 | 393 | "svn.decorations.enabled": { |
321 | 394 | "type": "boolean", |
322 | 395 | "description": |
|
360 | 433 | "How frequently (in minutes) to check branch changes. Set to `0` to avoid periodic checks.", |
361 | 434 | "default": 5 |
362 | 435 | }, |
363 | | - "svn.newCommits.update": { |
364 | | - "type": "number", |
365 | | - "minimum": 0, |
366 | | - "description": "How frequently (in minutes) to check for new commits. Set to `0` to avoid periodic checks.", |
367 | | - "default": 5 |
368 | | - }, |
369 | 436 | "svn.multipleFolders.enabled": { |
370 | 437 | "type": "boolean", |
371 | 438 | "description": "Allow to find subfolders using SVN", |
|
0 commit comments