-
Notifications
You must be signed in to change notification settings - Fork 76
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 displays only the elements related to the current context #386
Open
workgroupengineering
wants to merge
29
commits into
AvaloniaUI:master
Choose a base branch
from
workgroupengineering:features/Intellisense/Type-Affinity
base: master
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
feat: Intellisense displays only the elements related to the current context #386
workgroupengineering
wants to merge
29
commits into
AvaloniaUI:master
from
workgroupengineering:features/Intellisense/Type-Affinity
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 tasks
workgroupengineering
force-pushed
the
features/Intellisense/Type-Affinity
branch
from
October 3, 2023 07:05
a7ef308
to
979ef4b
Compare
workgroupengineering
force-pushed
the
features/Intellisense/Type-Affinity
branch
from
October 10, 2023 16:52
1ac5a45
to
25517d2
Compare
…com/workgroupengineering/AvaloniaVS into features/Intellisense/Type-Affinity
workgroupengineering
force-pushed
the
features/Intellisense/Type-Affinity
branch
3 times, most recently
from
October 31, 2023 15:15
6859c7d
to
8ba08c1
Compare
workgroupengineering
force-pushed
the
features/Intellisense/Type-Affinity
branch
from
October 31, 2023 15:17
8ba08c1
to
fc7b8ef
Compare
# Conflicts: # CompletionEngine/Avalonia.Ide.CompletionEngine.DnlibMetadataProvider/Wrappers.cs
# Conflicts: # tests/CompletionEngineTests/Models.cs
# Conflicts: # CompletionEngine/Avalonia.Ide.CompletionEngine/AssemblyMetadata/Metadata.cs # CompletionEngine/Avalonia.Ide.CompletionEngine/AssemblyMetadata/MetadataConverter.cs # CompletionEngine/Avalonia.Ide.CompletionEngine/Completion/CompletionEngine.cs
# Conflicts: # tests/CompletionEngineTests/AdvancedTests.cs
workgroupengineering
force-pushed
the
features/Intellisense/Type-Affinity
branch
from
April 16, 2024 09:57
d80a464
to
0195139
Compare
workgroupengineering
force-pushed
the
features/Intellisense/Type-Affinity
branch
from
April 16, 2024 10:22
0195139
to
3a8d6f4
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Allow Intellisense displays only the elements related to the current context
Current behavior
Expected behavior
After PR AvaloniaUI/Avalonia#13104
How does it work
CompletionEngine
get the parent element of the current element, retrieves its type and assigning it toparentType
parentType
has a property marked withAvalonia.Metadata.ContentAttribute
, assigned its return type toparentType
.parentType.ItemsType
orparentType
to filter candidate types if they are notnull
Current issue
If an Item Type has xmlns, xmlns is not entered.Future enhancement
ItemsControl.ItemsPanel
Autocompletion ofItemsControl
derived objects with the correctItemsType
, egListBox
must proposeListBoxItes
and its derivatives.Depends on PR #383 , AvaloniaUI/Avalonia#13104