niklaskallander / vs-unobtrusive-code

An extension for Visual Studio that lets you hide away obtrusive code like comments and logging, to let you focus on the actual flow of your application.
MIT License
24 stars 1 forks source link

Logging line detection #5

Open scottdorman opened 4 years ago

scottdorman commented 4 years ago

It would be really nice if there were an option (or this was just the default) of telling the parser to look for the logging identifiers anywhere in the line.

It works great when the line starts with the logging identifier, but if that identifier is part of a using block (to do scoped logging) like

using (logger.BeginScope(scopeObject.ToLoggingScope()))
{
}

The using line doesn't get picked up.

niklaskallander commented 2 years ago

Great suggestion! I'll look into that

Thanks!