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

Add option for element completion commit characters #9379

Merged
merged 11 commits into from
Oct 9, 2023

Conversation

davidwengier
Copy link
Contributor

@davidwengier davidwengier commented Oct 8, 2023

Resolves the "we did not find firm opinions" part of #8295 by introducing an option to allow users to control how they want completion for html elements, tag helper elements and components to behave.

Corresponding VS Code PR: dotnet/vscode-csharp#6506

}
}

foreach (var item in completionList.Items)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If 'itemCommitChars' is null can we just early return and do nothing?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, because each item could specify its own commit characters, so we still have to go through them all and update that. If itemCommitChars is null it just means the server didn't specify a default set.

@davidwengier davidwengier merged commit b7b4752 into dotnet:main Oct 9, 2023
12 checks passed
@ghost ghost added this to the Next milestone Oct 9, 2023
@davidwengier davidwengier deleted the HtmlCommitCharacters branch October 9, 2023 21:52
@jjonescz jjonescz modified the milestones: Next, 17.9 P1 Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants