-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Semantic snippets - Turn on experiment + turn off old snippets while new snippet experience is on #63991
Conversation
@@ -30,6 +31,14 @@ namespace Microsoft.CodeAnalysis.CSharp.Completion.Providers | |||
[Shared] | |||
internal sealed class SnippetCompletionProvider : LSPCompletionProvider | |||
{ | |||
private static readonly HashSet<string> s_builtInSnippets = new() |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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).
There was a problem hiding this comment.
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
No description provided.