Skip to content

Codelens shouldn't show up for commented out resources #16937

@afscrome

Description

@afscrome

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

If you comment out a resource, the aspire extension still adds the resource status code lens.

Image

Expected Behavior

I'd expect the code lens to not render on commented code.

Steps To Reproduce

var builder = DistributedApplication.CreateBuilder(args);

builder.AddContainer("unleash-app", "whatever", "whatever")

//builder.AddContainer("unleash-app", "whatever", "whatever")

/*
builder.AddContainer("unleash-app", "whatever", "whatever")
*/

Exceptions (if any)

No response

Aspire doctor output

No response

Anything else?

Extension version
1.0.8

Metadata

Metadata

Assignees

No one assigned

    Type

    No fields configured for Bug.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions