-
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
Allow snippet format in XAML compeltion #54183
Allow snippet format in XAML compeltion #54183
Conversation
@mgoertz-msft @dibarbet Could you please help to take a look? |
@@ -46,6 +46,7 @@ internal class XamlInProcLanguageClient : AbstractInProcLanguageClient | |||
|
|||
/// <summary> | |||
/// Gets the name of the language client (displayed in yellow bars). | |||
/// When updating the string of Name, please make sure to update the same string in Microsoft.VisualStudio.LanguageServer.Client.ExperimentalSnippetSupport.AllowList |
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.
@NTaylorMullen wanted to check, is snippet support being expanded outside of razor
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.
Yeah we have already chatted with Taylor about adding this support in XAML.
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.
Yup we good!
@@ -27,5 +27,6 @@ internal class XamlCompletionItem | |||
public ISymbol Symbol { get; set; } | |||
public XamlEventDescription? EventDescription { get; set; } | |||
public bool RetriggerCompletion { get; set; } | |||
public bool InsertSnippet { get; set; } |
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.
How about IsSnippet?
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.
ea5f236
to
bccf462
Compare
This change gives XAML language service the capability to tell LSP completion whether the inset text format is snippet or just plaintext. So we will be able to do completions like inserting ="|" when committing a XAML attribute.