Skip to content

Razor editor does not know about changes until VS has been restarted #12306

@MarvinKlein1508

Description

@MarvinKlein1508

Probably this topic is related to @davidwengier

I noticed some behaviour within the new razor editor within VS Insiders 11104.47

When you have a component like this:

/* More stuff here. STripped down for demo purposes */
@ChildContent
	
@if (FooterContent is not null)
{
	@FooterContent
}
		

@code {

	[Parameter]
	public RenderFragment ChildContent { get; set; } = default!;

	[Parameter]
	public RenderFragment FooterContent { get; set; } = default!;

}

Notice I have a RenderFragment here called ChildContent. Later on I've added the second RenderFragment called FooterContent. However the new RenderFragment won't get highlighted in VS and does not show up in Intellisense until I restart Visual Studio. Even compiling the project doesn't help. I have to manually restart VS. I get this behaviour consitantly whenever I add new RenderFragment sections to any of my components.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions