Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Munn <greg@sgmunn.com>2016-07-11 21:05:58 +0300
committerGreg Munn <greg@sgmunn.com>2016-07-11 21:05:58 +0300
commit7fa09cf7612ce164d72c6516f3559c009b5e8167 (patch)
treed42bd24e559377719feb3442d4468b190581c4e6 /main/src/addins/TextTemplating
parentcf0b832ab974dcbd0b37ae05d9f4088cd9ec742a (diff)
[Ide] Use the project that is passed from Workspace FileXXX events instead of the ProjectFile.Project
When files are removed from a project, ProjectFile.Project is null. We can use the value of project from the event args instead. Fixes bug #42345
Diffstat (limited to 'main/src/addins/TextTemplating')
-rw-r--r--main/src/addins/TextTemplating/MonoDevelop.TextTemplating/GenerateCommandHandler.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/main/src/addins/TextTemplating/MonoDevelop.TextTemplating/GenerateCommandHandler.cs b/main/src/addins/TextTemplating/MonoDevelop.TextTemplating/GenerateCommandHandler.cs
index 4c8bb6d26c..4ca656aef0 100644
--- a/main/src/addins/TextTemplating/MonoDevelop.TextTemplating/GenerateCommandHandler.cs
+++ b/main/src/addins/TextTemplating/MonoDevelop.TextTemplating/GenerateCommandHandler.cs
@@ -41,13 +41,13 @@ namespace MonoDevelop.TextTemplating
class GenerateCommandHandler : CommandHandler
{
- protected override void Run ()
+ protected async override void Run ()
{
var wob = IdeApp.ProjectOperations.CurrentSelectedItem;
var pf = wob as ProjectFile;
if (pf != null) {
- CustomToolService.Update (pf, true);
+ CustomToolService.Update (pf, pf.Project, true);
return;
}
@@ -62,7 +62,7 @@ namespace MonoDevelop.TextTemplating
return;
}
- CustomToolService.Update (files, true);
+ await CustomToolService.Update (files, true);
}
static IEnumerable<ProjectFile> GetFilesToUpdate (Project project)