nimreydx
nimreydx
MCMetalama Community
Created by nimreydx on 7/28/2023 in #technical-questions
CodeLens Help
Metalama is configured in CodeLens, and I have an aspect that has been applied. I am able to right-click and see the metalama diff. However, I am unable to see any of the details in CodeLens as described here - https://doc.metalama.net/conceptual/using/understanding-your-code-with-aspects
3 replies
MCMetalama Community
Created by nimreydx on 7/26/2023 in #technical-questions
Advising the addition of code comments
Using Metalama Is there a way to advise adding code comments? For example, when I advise a method and inject a new attribute, I would also like to add additional xml code documentation. Here's the exact scenario. [ApiController] public class MyController : ControllerBase { [HttpGet] public ActionResult Get() { return "FooBar"; } } Using a project fabric, I have advised all route methods should introduce [ProducesResponseTypeAttribute(StatusCodes.Status500InternalServerError)]. I would additionally like to introduce code comments to add '''/// <response code="500">It's not you, it's us.</response>'''. I've searched through documentation and couldn't find anything about injecting code comments. Did I miss this, or is it a possible feature request? Thanks!
4 replies