codemaid icon indicating copy to clipboard operation
codemaid copied to clipboard

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

Open edipper opened this issue 1 year ago • 1 comments

Environment

  • Visual Studio version: [example 2022 Professional] Version 17.6.4
  • CodeMaid version: [example 12.0]
  • Code language: [example C#]

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

edipper avatar Jul 08 '23 20:07 edipper

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.

codecadwallader avatar Jul 22 '23 22:07 codecadwallader