Skip to content

Commit

Permalink
Remove KnownCommands #71
Browse files Browse the repository at this point in the history
  • Loading branch information
Samir L. Boulema committed Aug 10, 2021
1 parent 30cdee9 commit 978a092
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 24 deletions.
3 changes: 0 additions & 3 deletions TSVN.Shared/Commands/AddFileCommand.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using Community.VisualStudio.Toolkit;
using Microsoft.VisualStudio.Shell;
using SamirBoulema.TSVN.Helpers;
using System.ComponentModel.Design;
using Task = System.Threading.Tasks.Task;

namespace SamirBoulema.TSVN.Commands
Expand All @@ -11,8 +10,6 @@ internal sealed class AddFileCommand : BaseCommand<AddFileCommand>
{
protected override async Task ExecuteAsync(OleMenuCmdEventArgs e)
{
await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync();
await KnownCommands.File_SaveSelectedItems.ExecuteAsync();
await CommandHelper.RunTortoiseSvnFileCommand("add");
}
}
Expand Down
3 changes: 0 additions & 3 deletions TSVN.Shared/Commands/CommitCommand.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using Community.VisualStudio.Toolkit;
using Microsoft.VisualStudio.Shell;
using SamirBoulema.TSVN.Helpers;
using System.ComponentModel.Design;
using Task = System.Threading.Tasks.Task;

namespace SamirBoulema.TSVN.Commands
Expand All @@ -11,8 +10,6 @@ internal sealed class CommitCommand : BaseCommand<CommitCommand>
{
protected override async Task ExecuteAsync(OleMenuCmdEventArgs e)
{
await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync();
await KnownCommands.File_SaveAll.ExecuteAsync();
await CommandHelper.RunTortoiseSvnCommand("commit");
}
}
Expand Down
3 changes: 0 additions & 3 deletions TSVN.Shared/Commands/CommitFileCommand.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using Community.VisualStudio.Toolkit;
using Microsoft.VisualStudio.Shell;
using SamirBoulema.TSVN.Helpers;
using System.ComponentModel.Design;
using Task = System.Threading.Tasks.Task;

namespace SamirBoulema.TSVN.Commands
Expand All @@ -11,8 +10,6 @@ internal sealed class CommitFileCommand : BaseCommand<CommitFileCommand>
{
protected override async Task ExecuteAsync(OleMenuCmdEventArgs e)
{
await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync();
await KnownCommands.File_SaveSelectedItems.ExecuteAsync();
await CommandHelper.RunTortoiseSvnFileCommand("commit");
}
}
Expand Down
3 changes: 0 additions & 3 deletions TSVN.Shared/Commands/RenameFileCommand.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using Community.VisualStudio.Toolkit;
using Microsoft.VisualStudio.Shell;
using SamirBoulema.TSVN.Helpers;
using System.ComponentModel.Design;
using Task = System.Threading.Tasks.Task;

namespace SamirBoulema.TSVN.Commands
Expand All @@ -11,8 +10,6 @@ internal sealed class RenameFileCommand : BaseCommand<RenameFileCommand>
{
protected override async Task ExecuteAsync(OleMenuCmdEventArgs e)
{
await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync();
await KnownCommands.File_SaveAll.ExecuteAsync();
await CommandHelper.RunTortoiseSvnFileCommand("rename");
}
}
Expand Down
3 changes: 0 additions & 3 deletions TSVN.Shared/Commands/UpdateCommand.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using Community.VisualStudio.Toolkit;
using Microsoft.VisualStudio.Shell;
using SamirBoulema.TSVN.Helpers;
using System.ComponentModel.Design;
using Task = System.Threading.Tasks.Task;

namespace SamirBoulema.TSVN.Commands
Expand All @@ -11,8 +10,6 @@ internal sealed class UpdateCommand : BaseCommand<UpdateCommand>
{
protected override async Task ExecuteAsync(OleMenuCmdEventArgs e)
{
await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync();
await KnownCommands.File_SaveAll.ExecuteAsync();
await CommandHelper.RunTortoiseSvnCommand("update");
}
}
Expand Down
3 changes: 0 additions & 3 deletions TSVN.Shared/Commands/UpdateFileCommand.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using Community.VisualStudio.Toolkit;
using Microsoft.VisualStudio.Shell;
using SamirBoulema.TSVN.Helpers;
using System.ComponentModel.Design;
using Task = System.Threading.Tasks.Task;

namespace SamirBoulema.TSVN.Commands
Expand All @@ -11,8 +10,6 @@ internal sealed class UpdateFileCommand : BaseCommand<UpdateFileCommand>
{
protected override async Task ExecuteAsync(OleMenuCmdEventArgs e)
{
await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync();
await KnownCommands.File_SaveSelectedItems.ExecuteAsync();
await CommandHelper.RunTortoiseSvnFileCommand("update");
}
}
Expand Down
3 changes: 0 additions & 3 deletions TSVN.Shared/Commands/UpdateToRevisionCommand.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using Community.VisualStudio.Toolkit;
using Microsoft.VisualStudio.Shell;
using SamirBoulema.TSVN.Helpers;
using System.ComponentModel.Design;
using Task = System.Threading.Tasks.Task;

namespace SamirBoulema.TSVN.Commands
Expand All @@ -11,8 +10,6 @@ internal sealed class UpdateToRevisionCommand : BaseCommand<UpdateToRevisionComm
{
protected override async Task ExecuteAsync(OleMenuCmdEventArgs e)
{
await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync();
await KnownCommands.File_SaveAll.ExecuteAsync();
await CommandHelper.RunTortoiseSvnCommand("update", "/rev");
}
}
Expand Down
3 changes: 0 additions & 3 deletions TSVN.Shared/Commands/UpdateToRevisionFileCommand.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using Community.VisualStudio.Toolkit;
using Microsoft.VisualStudio.Shell;
using SamirBoulema.TSVN.Helpers;
using System.ComponentModel.Design;
using Task = System.Threading.Tasks.Task;

namespace SamirBoulema.TSVN.Commands
Expand All @@ -11,8 +10,6 @@ internal sealed class UpdateToRevisionFileCommand : BaseCommand<UpdateToRevision
{
protected override async Task ExecuteAsync(OleMenuCmdEventArgs e)
{
await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync();
await KnownCommands.File_SaveSelectedItems.ExecuteAsync();
await CommandHelper.RunTortoiseSvnFileCommand("update", "/rev");
}
}
Expand Down

0 comments on commit 978a092

Please sign in to comment.