There are a lot of style choices in the razor-tooling code base made by previous maintainers that don't necessarily align with the current maintainers. Let's use this issue to discuss some style changes that we'd like to make.
A good example is brought up here. Throughout razor-tooling code, a pattern is followed where the result of a method is first assigned to a local variable and then the variable is returned, presumably to aid in setting breakpoints. Is this style advantageous any longer? These days, the IDE allows breakpoints to be set on the closing brace of a method and the return value is shown in the debugger.
Additionally, we should decide on whether we want to use file-scoped namespaces and/or take advantage of implicit usings (#6895).
There are a lot of style choices in the razor-tooling code base made by previous maintainers that don't necessarily align with the current maintainers. Let's use this issue to discuss some style changes that we'd like to make.
A good example is brought up here. Throughout razor-tooling code, a pattern is followed where the result of a method is first assigned to a local variable and then the variable is returned, presumably to aid in setting breakpoints. Is this style advantageous any longer? These days, the IDE allows breakpoints to be set on the closing brace of a method and the return value is shown in the debugger.
Additionally, we should decide on whether we want to use file-scoped namespaces and/or take advantage of implicit usings (#6895).