-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Custom Attribute suggestions are not getting populated on auto complete #2564
Comments
Thanks for reporting. Value sets with global attributes didn't work. |
@aeschli Thanks for the quick response . const data = {
"version": 1.1,
"tags": [
{
"name": "foo",
"description": "The foo element",
"attributes": [
{ "name": "bar" },
{
"name": "baz",
"values": [
{ "name": "baz-val-1" },
{ "name": "baz-val-2" }
]
}
]
}
]
} I hope this gets fixed in microsoft/vscode-html-languageservice@77e4483 |
For me there were no proposals at all as I tried with a tag other than Your concern was that code completion automatically opens again (retriggers) after completing an attribute name? |
@aeschli Thanks for this feature microsoft/monaco-html@04c34d4. I will try this once it gets released in monaco-editor |
monaco-editor version: 0.25.2
Browser: Chrome
OS: Mac OS
Playground code that reproduces the issue:
Sample Code taken from this issue : #2284
_Added new entries in
valueset x
and gavetrue
touseDefaultDataProvider
in optionsDescription
When I type
xa
, the autocomplete perfectly suggests the globalAttributes, but the suggestion for the value of the attribute is not shown when i continue typing ( I think it is because of the selection )It will be better if the autocomplete suggestion for the attribute values are shown right after the attribute name is selected from the list
Current Behaviour
The suggestions are provided only after removing the quotes and retriggering the value suggestions by typing next to the
=
characterExpected Behaviour
The suggestions for values has to be provided immediately after the attribute name is autocompleted
Video Explaining the issue
SuggestionsNotDisplayedOnAutoComplete.mov
The text was updated successfully, but these errors were encountered: