Skip to content

Commit 9a90fa7

Browse files
authored
feat: Added set change list to explorer context (#399)
fixes #252
1 parent f224afb commit 9a90fa7

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -619,6 +619,11 @@
619619
"command": "svn.renameExplorer",
620620
"group": "7_modification",
621621
"when": "config.svn.enabled && svnOpenRepositoryCount != 0 && explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !inputFocus"
622+
},
623+
{
624+
"command": "svn.changelist",
625+
"group": "9_svn",
626+
"when": "config.svn.enabled && svnOpenRepositoryCount != 0"
622627
}
623628
]
624629
},

src/commands/changeList.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ export class ChangeList extends Command {
1111
const selection = await this.getResourceStates(resourceStates);
1212

1313
if (selection.length === 0) {
14+
window.showErrorMessage(
15+
`Unable to add file to changelist. File is not under version control`
16+
);
1417
return;
1518
}
1619

@@ -31,7 +34,6 @@ export class ChangeList extends Command {
3134
});
3235
})
3336
) {
34-
console.log("canRemove true");
3537
canRemove = true;
3638
return false;
3739
}

0 commit comments

Comments
 (0)