Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Razor intellisense not working with tag helpers using ParentTag #11512

Open
jamezamm opened this issue Feb 19, 2025 · 0 comments
Open

Razor intellisense not working with tag helpers using ParentTag #11512

jamezamm opened this issue Feb 19, 2025 · 0 comments
Assignees
Milestone

Comments

@jamezamm
Copy link

Hi,

I am using Visual Studio Enterprise 2022 (x64) Version 17.12.5.

Please note that I had previously opened an issue #9397 related to the ParentTag.

I have the below tag helper classes:

/// <summary>
/// This is a container
/// </summary>
[HtmlTargetElement("container")]
public class ContainerTagHelper : TagHelper
{
	public override void Process(TagHelperContext context, TagHelperOutput output)
	{
	}
}

/// <summary>
/// This is a header
/// </summary>
[HtmlTargetElement("header", ParentTag = "container")]
public class ContainerHeaderTagHelper : TagHelper
{
        public string Attribute { get; set; }

	public override void Process(TagHelperContext context, TagHelperOutput output)
	{
	}
}

The razor page syntax:

<container>
	<header attribute='test'></header>
</container>

When starting to input the attribute name (Ex: 'attr'), no list is displayed with all the available properties for ContainerHeaderTagHelper.

Please note that once you manually input the name 'attribute', the property is immediately recognized as a property.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants