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

Semantic snippets - Turn on experiment + turn off old snippets while new snippet experience is on #63991

Merged
merged 5 commits into from
Sep 19, 2022

Conversation

akhera99
Copy link
Member

No description provided.

@akhera99 akhera99 requested a review from jmarolf September 13, 2022 22:41
@akhera99 akhera99 marked this pull request as ready for review September 14, 2022 20:09
@akhera99 akhera99 requested a review from a team as a code owner September 14, 2022 20:09
@@ -30,6 +31,14 @@ namespace Microsoft.CodeAnalysis.CSharp.Completion.Providers
[Shared]
internal sealed class SnippetCompletionProvider : LSPCompletionProvider
{
private static readonly HashSet<string> s_builtInSnippets = new()
Copy link
Member

@genlu genlu Sep 15, 2022

Choose a reason for hiding this comment

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

Are those all the built-in "old" snippets from VS? Do we have a replacement for each one of them?
I guess my question is how was this list created? Are those old "built-in" snippets that semantic snippets replace?

Copy link
Member Author

Choose a reason for hiding this comment

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

This is a complete list built-in snippets that I got from the SnippetInfoService. The idea is to replace all of these with semantic snippets but I am turning them all off even if I don't have a replacement so as to not conflate the two experiences.

Copy link
Member

@genlu genlu Sep 17, 2022

Choose a reason for hiding this comment

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

If we are going after all of them, consider filtering with their file path instead of maintain a list. For example, if you go to [VS folder]\VC#\Snippets\1033 there seems to have more snippets (although I'm not sure if they are all valid).

Copy link
Contributor

Choose a reason for hiding this comment

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

👍 to what @genlu said. We control what and where these onld snippets live so we can change them to make them easier to detect if necessary

@akhera99 akhera99 enabled auto-merge September 19, 2022 23:06
@akhera99 akhera99 merged commit 0ebd046 into dotnet:main Sep 19, 2022
@ghost ghost added this to the Next milestone Sep 19, 2022
@Cosifne Cosifne modified the milestones: Next, 17.4 P3 Sep 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants