-
Notifications
You must be signed in to change notification settings - Fork 85
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
feat: When in DevTools using Copy Selector replace Clr Namespace with xmlns #470
feat: When in DevTools using Copy Selector replace Clr Namespace with xmlns #470
Conversation
|
||
namespace Avalonia.Ide.CompletionEngine.Parsing; | ||
|
||
public record struct DevToolsSelectorInfo(Range ElementType, Range Namespace, Range AssemblyName = default) |
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.
It could a ref struct with Span/Memory instead as well. Since it's not stored anywhere outside of the same stack.
But range might be fine too, just adds too much of polyfills.
@@ -0,0 +1,39 @@ | |||
namespace System.Runtime.CompilerServices | |||
{ | |||
internal static class RuntimeHelpers |
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.
These RuntimeHelpers are defined twice in the PR.
Speed up writing a Style Selector.
When Copy Selector using [DevTools] treeview context menu, it put text like this in clipboard:
FluentAvalonia.UI.Controls.NavigationView#NavView.Store /template/ Avalonia.Controls.ScrollViewer#FooterItemsScrollViewer
Dependent on AvaloniaUI/Avalonia#14603
Fixes #448