-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Intellisense doesn't work for XML literals using a schema definition #34816
Comments
@dpoeschl is this a regression? |
I think this feature was forgotten while moving to Roslyn. |
@VBAndCs at this point, it would be a feature request to return this behavior. |
@vatsalyaagrawal I think it's a "regression" from the pre-Roslyn days. |
IIRC, this was a known and intentional thing that was not brought over. |
So, is this a bug or not? If it is a bug, is there a plan to be fixed? |
I believe this is "by design" in that we intentionally didn't add this feature in 2015 for the 1.0 release of roslyn because we wanted to see how many people missed it.
There is no workaround, the feature is not implemented |
This issue is not XML literal specific. Intelligence also ignores xsd schemas used to verify xml documents oppened in xml editor. Html also has the same issue with xsd schemas defined in package/schemes folder in Vs folder. And maybe more. There could be many reports about this but in other places of. Net. |
Roslyn doesn't power the xml editor or html editor.
Please file an suggestion here if you would like this to be supported. The Xml and Html editor teams can decide if they want to invest in this:
I would be happy to work with you to provide such an extensibility model. I can point you at the places you can look at to make this possible. |
I am not requesting a new features. Documentations state that theses are already working features but they are not! The xml editor successfully uses the XSD schema to validate the xml file, but doesn't offer tag and attributes names in auto complete. It seems as a general issue in intellisense, and should be addressed by the team who is programming the "Intellisense Provider / Engine" if this is its name.
I have no background about this. Are there any preliminary resources to read about this topic? |
Unfortunately that team is not on github. As @CyrusNajmabadi says filing a feedback item is the fastest way to get this fixed. If you reply on here with a link to the feedback item I can make sure the right teams see it. |
This is not the roslyn team, as i already stated. If you want these teams to fix these issues please follow the steps i listed above.
No. But i'm happy to help walk you through how this could work. Feel free to reach out on gitter.im if you do want to try adding support for this. |
Thanks. |
Any hope about this after nearly one year? |
@VBAndCs it hasn't been a priority. If you would like to contribute a pr here, I would be happy to review it! |
I am looking in xsd format now, and I will try to implement it in a VS extention myself. |
Sounds good. I'm closing this. We have CompletionProvider which can eb used to create completions, and we have DiagnosticAnalyzer which can be used to report schema validation errors. This a prime example of a use case we built these extension points for for third parties like yourself. Good luck! |
@lorcanmooney @sharwell @dibarbet @tmat @mattwar @jmarolf |
@atsalyaagrawal @dpoeschl @CyrusNajmabadi @marolf @inujoseph lorcanmooney @sharwell @dibarbet @tmat @mattwar @jmarolf It will provide HTML5 auto completion in VB.NET XML Literals, but only inside the I did this for two reasons:
I will make a VSIX for this to allow install it as a VS extension (in progress now), but my aim from publishing this, is to allow contributors to build upon to provide a generic XML literals completion provider, based on the xsd that user supplies in the context as this missing feature was described in the docs |
Great. I'm glad you got it working. Good luck with the extension! :-) |
@CyrusNajmabadi |
Version Used:
VS.NET 2019 Community
Steps to Reproduce:
I am trying a sample to provide intellisense for XML literals, by using a schema definition.
But, when I tested with the simple example described here:
https://docs.microsoft.com/en-us/previous-versions/visualstudio/visual-studio-2013/bb531325%28v%3dvs.120%29#enabling-xml-intellisense-in-visual-basic
intellisense didn't show any completion at all, both in .NET framework and .NET Core apps.
This is the xsd file I used:
and this is VB code I tested:
Did I do something wrong, or this feature stopped working in Roslyn?
Expected Behavior:
Auto complete list should appear and offer the names defined in the schema.
Actual Behavior:
No auto complete whatever.
The text was updated successfully, but these errors were encountered: