-
Notifications
You must be signed in to change notification settings - Fork 4k
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: Add inline statement snippets #67819
Conversation
Is there a documentation / a blog post regarding semantic snippets in general? Sorry to asking here. I'm just curious. |
The original proposal is #56541. A few things changed (e.g. as far as I know there is no intend to make snippet text as descriptions, e.g. |
Can I get a review here? @akhera99 I cannot just add you to review list since I am an external contributor, so tagging you explicitely. |
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.
Looks good to me! Thanks for the contribution!
* upstream/main: (2060 commits) implement code folding for anonymous objects Cleanup/perf in creating member maps. (dotnet#67997) Address feedback, clean the use of ILegacyGlobalOptionsWorkspaceService Update Publish.json Semantic snippets: Add inline statement snippets (dotnet#67819) Update VSSDK Build tools version Update doc comment Address feedback Move declaration near reference Address feedback Avoid stack overflow due to deep recursion on long chain of calls. (dotnet#67913) Check ILegacyGlobalOptionsWorkspaceService is null test scout queue add test update editor "Where" clause typo fix (dotnet#68002) Use `Keyword` helper method instead of hardcoding keyword help terms Move the SyntaxTree and SemanticModel action based analyzers to respect context.FilterSpan EnC refactoring: Align wrappers with contracts better (dotnet#67967) Include EA.RazorCompiler in source build (dotnet#67996) ...
First commit: added all abstractions for inline statement snippets. Made
if
andwhile
statements inlineSecond commit: while working I noticed that all current snippets produce a single
TextChange
, so abstracted that in a separate classThird commit: made
foreach
snippet inline as well. It required a little change in the abstraction frameork made in commit 1Closes: #60628
Demo: