codecadwallader / codemaid

CodeMaid is an open source Visual Studio extension to cleanup and simplify our C#, C++, F#, VB, PHP, PowerShell, JSON, XAML, XML, ASP, HTML, CSS, LESS, SCSS, JavaScript and TypeScript coding.
http://www.codemaid.net
GNU Lesser General Public License v3.0
1.88k stars 352 forks source link

#engregion tags are not getting name added to match #region tag #1011

Open edipper opened 1 year ago

edipper commented 1 year ago

Environment

Description

The cleanup is not adding the name to the #endregion tag. This used to work but is not working anymore

region Aliases

global using nsEvoBizCor = Evolutia.Biz.Core; global using nsMyRoot = Evolutia.Biz.Web.Common; global using nsSysColGen = System.Collections.Generic; global using nsSysNetHttp = System.Net.Http; global using nsSysRef = System.Reflection; global using nsSysSecClm = System.Security.Claims; global using nsSysThrTsk = System.Threading.Tasks; global using Microsoft.Extensions.DependencyInjection;

endregion

Steps to recreate

add a #region with a name and an #endregion and run cleanup

Current behavior

It is not adding the name to the #endregino

Expected behavior

It should add the name to the #endregion like it used to

codecadwallader commented 11 months ago

Thank you for reporting the issue. I have not been able to reproduce it. Can you please provide a sample file? I'm curious if the placement of that code (e.g. inside/outside a namespace) is a factor.