Skip to content

Add out-of-scope Blazor Component completions which auto-insert appropriate usings #4634

@NTaylorMullen

Description

@NTaylorMullen

Summarization

When attempting to use a new Component from an out-of-scope namespace a completion item should be presented that will auto-insert the appropriate using statement at the top of the file to ensure that component is inserted in scope.

Current experience

image

Proposed experience

image

Since LSP in VS doesn't expose a way to specify additional text on an item, we should just have the display of the completion item be "Component - @using The.Namespace"

This completion item should be in addition to the existing fully qualified component name, so muscle memory isn't broken

Metadata

Metadata

Assignees

Labels

enhancementSmall improvement request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions