diff --git a/TSVN.Shared/Commands/AddFileCommand.cs b/TSVN.Shared/Commands/AddFileCommand.cs index 8b7f8e6..0c14d57 100644 --- a/TSVN.Shared/Commands/AddFileCommand.cs +++ b/TSVN.Shared/Commands/AddFileCommand.cs @@ -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 @@ -11,8 +10,6 @@ internal sealed class AddFileCommand : BaseCommand { protected override async Task ExecuteAsync(OleMenuCmdEventArgs e) { - await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync(); - await KnownCommands.File_SaveSelectedItems.ExecuteAsync(); await CommandHelper.RunTortoiseSvnFileCommand("add"); } } diff --git a/TSVN.Shared/Commands/CommitCommand.cs b/TSVN.Shared/Commands/CommitCommand.cs index 3ced477..81a4c3d 100644 --- a/TSVN.Shared/Commands/CommitCommand.cs +++ b/TSVN.Shared/Commands/CommitCommand.cs @@ -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 @@ -11,8 +10,6 @@ internal sealed class CommitCommand : BaseCommand { protected override async Task ExecuteAsync(OleMenuCmdEventArgs e) { - await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync(); - await KnownCommands.File_SaveAll.ExecuteAsync(); await CommandHelper.RunTortoiseSvnCommand("commit"); } } diff --git a/TSVN.Shared/Commands/CommitFileCommand.cs b/TSVN.Shared/Commands/CommitFileCommand.cs index 5b5be34..e0d083b 100644 --- a/TSVN.Shared/Commands/CommitFileCommand.cs +++ b/TSVN.Shared/Commands/CommitFileCommand.cs @@ -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 @@ -11,8 +10,6 @@ internal sealed class CommitFileCommand : BaseCommand { protected override async Task ExecuteAsync(OleMenuCmdEventArgs e) { - await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync(); - await KnownCommands.File_SaveSelectedItems.ExecuteAsync(); await CommandHelper.RunTortoiseSvnFileCommand("commit"); } } diff --git a/TSVN.Shared/Commands/RenameFileCommand.cs b/TSVN.Shared/Commands/RenameFileCommand.cs index 5cd9236..db77446 100644 --- a/TSVN.Shared/Commands/RenameFileCommand.cs +++ b/TSVN.Shared/Commands/RenameFileCommand.cs @@ -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 @@ -11,8 +10,6 @@ internal sealed class RenameFileCommand : BaseCommand { protected override async Task ExecuteAsync(OleMenuCmdEventArgs e) { - await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync(); - await KnownCommands.File_SaveAll.ExecuteAsync(); await CommandHelper.RunTortoiseSvnFileCommand("rename"); } } diff --git a/TSVN.Shared/Commands/UpdateCommand.cs b/TSVN.Shared/Commands/UpdateCommand.cs index cc4fce4..3c3566f 100644 --- a/TSVN.Shared/Commands/UpdateCommand.cs +++ b/TSVN.Shared/Commands/UpdateCommand.cs @@ -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 @@ -11,8 +10,6 @@ internal sealed class UpdateCommand : BaseCommand { protected override async Task ExecuteAsync(OleMenuCmdEventArgs e) { - await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync(); - await KnownCommands.File_SaveAll.ExecuteAsync(); await CommandHelper.RunTortoiseSvnCommand("update"); } } diff --git a/TSVN.Shared/Commands/UpdateFileCommand.cs b/TSVN.Shared/Commands/UpdateFileCommand.cs index 4ae6559..64fbf3c 100644 --- a/TSVN.Shared/Commands/UpdateFileCommand.cs +++ b/TSVN.Shared/Commands/UpdateFileCommand.cs @@ -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 @@ -11,8 +10,6 @@ internal sealed class UpdateFileCommand : BaseCommand { protected override async Task ExecuteAsync(OleMenuCmdEventArgs e) { - await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync(); - await KnownCommands.File_SaveSelectedItems.ExecuteAsync(); await CommandHelper.RunTortoiseSvnFileCommand("update"); } } diff --git a/TSVN.Shared/Commands/UpdateToRevisionCommand.cs b/TSVN.Shared/Commands/UpdateToRevisionCommand.cs index ad02f80..1222b5c 100644 --- a/TSVN.Shared/Commands/UpdateToRevisionCommand.cs +++ b/TSVN.Shared/Commands/UpdateToRevisionCommand.cs @@ -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 @@ -11,8 +10,6 @@ internal sealed class UpdateToRevisionCommand : BaseCommand