Skip to content

Commit

Permalink
feat: Added command Open Changes with PREV (#378)
Browse files Browse the repository at this point in the history
feat: Added command Open Changes with PREV (#378)
  • Loading branch information
Yanpas authored and JohnstonCode committed Oct 16, 2018
1 parent f0025b3 commit 9353d14
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,11 @@
"dark": "icons/dark/open-change-head.svg"
}
},
{
"command": "svn.openChangePrev",
"title": "Open Changes with PREV",
"category": "SVN"
},
{
"command": "svn.openFile",
"title": "Open File",
Expand Down
8 changes: 8 additions & 0 deletions src/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -651,6 +651,14 @@ export class SvnCommands implements IDisposable {
return this.openChange(arg, "HEAD", resourceStates);
}

@command("svn.openChangePrev")
public async openChangePrev(
arg?: Resource | Uri | IncomingChangeNode,
...resourceStates: SourceControlResourceState[]
): Promise<void> {
return this.openChange(arg, "PREV", resourceStates);
}

public async openChange(
arg?: Resource | Uri | IncomingChangeNode,
against?: string,
Expand Down

0 comments on commit 9353d14

Please sign in to comment.