Skip to content

Commit

Permalink
Don't clear window at end or duplicate project conversion message
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamTheCoder committed Mar 1, 2020
1 parent 3ca21b0 commit 736ddae
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Vsix/CodeConversion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ private static async Task SetClipboardTextOnUiThreadAsync(string conversionResul

private async Task WriteConvertedFilesAndShowSummaryAsync(IAsyncEnumerable<ConversionResult> convertedFiles)
{
await _outputWindow.WriteToOutputWindowAsync(Intro, true, true);
await _outputWindow.WriteToOutputWindowAsync(Intro, forceShow: true);

var files = new List<string>();
var filesToOverwrite = new List<ConversionResult>();
Expand Down Expand Up @@ -247,10 +247,9 @@ private async IAsyncEnumerable<ConversionResult> ConvertProjectUnhandled<TLangua
where TLanguageConversion : ILanguageConversion, new()
{
await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync();
var projectDesc = selectedProjects.Count == 1
? selectedProjects.Single().Name
: selectedProjects.Count + " projects";
await _outputWindow.WriteToOutputWindowAsync($"Converting {projectDesc}...", true, true);
if (selectedProjects.Count > 1) {
await _outputWindow.WriteToOutputWindowAsync($"Converting {selectedProjects.Count} projects...", true, true);
}

var projectsByPath =
_visualStudioWorkspace.CurrentSolution.Projects.ToLookup(p => p.FilePath, p => p);
Expand Down

0 comments on commit 736ddae

Please sign in to comment.