Skip to content

Commit

Permalink
Saves document before format. (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
Roald87 authored May 13, 2021
1 parent cc28b27 commit 79de09b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/TcBlackExtension/FormatStructuredText.cs
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ private void Execute(object sender, EventArgs e)
DTE dte = Package.GetGlobalService(typeof(DTE)) as DTE;
if (dte.ActiveWindow.ProjectItem.Object is ITcPlcDeclaration)
{
dte.ActiveDocument.Save("");
ITcPlcDeclaration declaration =
(ITcPlcDeclaration)dte.ActiveWindow.ProjectItem.Object;

Expand Down

0 comments on commit 79de09b

Please sign in to comment.