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: auto-completition with generics #410

Conversation

workgroupengineering
Copy link
Contributor

@workgroupengineering workgroupengineering commented Oct 28, 2023

This only resolve #356. After thi PR merger will work on #357

Before

Before

After

after

Depends on PR 409
Fixes #356
Part of AvaloniaUI/AvaloniaVSCode#8

@@ -529,6 +526,68 @@ IEnumerable<string> filterNamespaces(Func<string, bool> predicate)
return new CompletionSet() { Completions = SortCompletions(completions), StartPosition = curStart };

return null;

static (string DisplayText, string InsertText, string? Suffix, int? RecommendedCursorOffset, bool TriggerCompletionAfterInsert) GetElementCompletation(string key,
Copy link
Collaborator

Choose a reason for hiding this comment

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

This method is too big to be a local, could you move it out?
Also, I suggest against tuple for return types, makes it difficult to read the code.

Copy link
Collaborator

@prashantvc prashantvc left a comment

Choose a reason for hiding this comment

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

Thanks for the changes

@prashantvc prashantvc enabled auto-merge October 31, 2023 07:58
@prashantvc prashantvc merged commit 99f6eef into AvaloniaUI:master Oct 31, 2023
@workgroupengineering workgroupengineering deleted the features/Intellisense/Generics-Completition branch October 31, 2023 12:14
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.

Incorrect auto-completition with generics
2 participants