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

feat: Intellisense XML Comment #337

Conversation

workgroupengineering
Copy link
Contributor

No description provided.

Comment on lines 140 to 144
var compl = GetCompletionsFor("<DataTemplate");

Assert.Equal(2, compl.Completions.Count);
Assert.Equal("DataTemplate", compl.Completions[0].DisplayText);
Assert.Equal("DataTemplates", compl.Completions[1].DisplayText);
Assert.Equal(3, compl.Completions.Count);
Assert.Equal("DataTemplate", compl.Completions[1].DisplayText);
Assert.Equal("DataTemplates", compl.Completions[2].DisplayText);
Copy link
Member

Choose a reason for hiding this comment

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

Not sure, but is it going to propose to comment the line as a first option here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I same behaviour di WPF Editor.

Copy link
Member

Choose a reason for hiding this comment

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

That's what it shows for me. DataTemplate is selected by default.

image

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because VS WPF Editor has type compatibility and collects usage statistics to propose at the head of the suggestions.
I will add these features in the next PRs.

maxkatz6 and others added 2 commits June 9, 2023 18:24
# Conflicts:
#	CompletionEngine/Avalonia.Ide.CompletionEngine/Completion/CompletionEngine.cs
#	tests/CompletionEngineTests/BasicTests.cs
@maxkatz6 maxkatz6 merged commit 4afc904 into AvaloniaUI:master Jun 18, 2023
@workgroupengineering workgroupengineering deleted the features/Intellisense/XML_Comment branch June 18, 2023 06:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants