Skip to content

Commit

Permalink
save open files yosys
Browse files Browse the repository at this point in the history
  • Loading branch information
HendrikMennen committed Nov 9, 2024
1 parent 17e3df9 commit c803b25
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions src/OneWare.OssCadSuiteIntegration/OssCadSuiteIntegrationModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -176,17 +176,29 @@ public void OnInitialized(IContainerProvider containerProvider)
new MenuItem()
{
Header = "Run Synthesis",
Command = new AsyncRelayCommand(() => yosysService.SynthAsync(root, new FpgaModel(fpga!)), () => fpga != null)
Command = new AsyncRelayCommand(async () =>
{
await projectExplorerService.SaveOpenFilesForProjectAsync(root);
await yosysService.SynthAsync(root, new FpgaModel(fpga!));
}, () => fpga != null)
},
new MenuItem()
{
Header = "Run Fit",
Command = new AsyncRelayCommand(() => yosysService.FitAsync(root, new FpgaModel(fpga!)), () => fpga != null)
Command = new AsyncRelayCommand(async () =>
{
await projectExplorerService.SaveOpenFilesForProjectAsync(root);
await yosysService.FitAsync(root, new FpgaModel(fpga!));
}, () => fpga != null)
},
new MenuItem()
{
Header = "Run Assemble",
Command = new AsyncRelayCommand(() => yosysService.AssembleAsync(root, new FpgaModel(fpga!)), () => fpga != null)
Command = new AsyncRelayCommand(async () =>
{
await projectExplorerService.SaveOpenFilesForProjectAsync(root);
await yosysService.AssembleAsync(root, new FpgaModel(fpga!));
}, () => fpga != null)
},
new Separator(),
new MenuItem()
Expand Down

0 comments on commit c803b25

Please sign in to comment.