-
Notifications
You must be signed in to change notification settings - Fork 16
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
[BUG] Better Intellisense for .NET MAUI XAML files #565
Comments
@danardelean Rest assured, we are working on it. We have an entire Experience for this in our product backlog that we are currently working on. It requires extensive changes to the XAML Language Service engine in VS though to be able to reuse it for VS Code, so this will take a while. |
I have a related question: How to configure the intellisense to show only those properties for a XAML tag that are applicable in a given context? For example, if I am using a |
@Marflage That's exactly the purpose of the real XAML Language Service and how it works in VS. We are working on bringing that experience to VS Code. In the time being you are better off using VS or VS Mac. |
I look forward to the updates you will bring for XAML VsCode. Because XAML is quite dysfunctional in VsCode. For example, it gives "default namespace not declared" error for "ContentPage" tag. |
@mgoertz-msft Why did we close this? Can we keep this open as the public tracking one? |
Version: 1.85.1 (Universal) MacOS Ventura 13.6.3 (22G436) As I write code, it memorizes it and brings only what is stored in its memory. https://www.youtube.com/embed/B0kuOCWXkas?si=eniObTOrSSZdZjI9 |
Does this include intellisense for bindings? |
@roughiain What we are working on will be powered by the same underlying IntelliSense engine as in the regular Visual Studio IDE, so while the UI in VS Code may be different the actual IntelliSense completions should be the same for both products including Bindings, StaticResources, etc. And for Binding IntelliSense to work we need to have a |
@mgoertz-msft do we have any update on Intellisense auto suggestions for XAML files? |
+1 |
@ravitejaavv, @Dry-Rusk, tl;dr It's still under development. There are multiple things that need to happen in Roslyn first, one of which just completed yesterday: dotnet/roslyn#71758 This now needs to be inserted back into VS where the classic XAML IntelliSense code lives, so we can start consuming it. However, there is another issue we are blocked on: dotnet/roslyn#71114 because ever since Roslyn started using its own internal LSP protocol types in December we are no longer able to register LSP handlers for XAML or use External Access APIs with the public VS LSP Protocol types. |
Thanks for the update. Is there any tentative timeline to close the development ? |
I wouldn't want to speculate on when we would release the first preview. We have run into a few surprises along the way that turned out to be quite costly timewise. But we will certainly make it known when there is something for everyone to try. |
VS MAC was retired and does not support .NET 8 - As a MAC user, I'm left with no option for Intellisense. This is a huge setback on coding. Might have been easier to add .Net 8 Support on VS MAC whilst this is being sorted. Sigh Now we code a .Net 7 VS MAC project, copy the code to VS Code for .Net 8 - duplicating efforts and wasting time. I hope this gets pushed to the priority list soon after the Roslyn fixes. |
FYI, VS Mac is not out of support yet, and it does have a preview option for using it with .NET 8, so you should be able to use it in the meantime. |
@mgoertz-msft - WOW, searched for it and enabled it. Thanks so much. For others looking for it: |
This issue has been marked as stale after 14 days of inactivity. @[ @ @], could you please take a look? |
The issue may be stale but the work is still progressing regardless. :) |
I'm happy to announce that we have released the first preview of XAML IntelliSense for .NET MAUI today. To try it out please follow these steps:
Let us know what you think. Enjoy! |
@mgoertz-msft I'm so glad to hear this and tested it now. everything works as it should. This is great! :) thanks.. My environment:
Extensions:
|
And thank you @timheuer for finding the first bug. The editor.onTypeFormatting setting causes errors when typing in XAML: |
@mcyenikoylu Your C# extension version looks too old. The first one with XAML IntelliSense support is today's prerelease version: v2.30.24 (pre-release) If you're on the release channel for the C# extension try to switch to prerelease. Otherwise, restart VS Code to see if you're offered to update the C# extension. Of course, that makes me wonder how "everything works as it should"...? |
And it's now available in Release, so Switch to Release and grab the latest updates:
Enjoy bug fixes, including @timheuer's from above, and rich completion item tooltips: |
@mauroa This has been released. Do you have permissions to close this issue? |
Describe the Issue
Right now the Intellisense for the .NET MAUI XAML is minimal and it cannot be easily used to replace the editing capabilities that Visual Studio for MAC has (cannot find properties if never used, sometimes gives wrong suggestions for the control : for example the xmlns autocomplete for a control in the project is suggested wrong and it won't even compile the project.
We need better support for the .NET MAUI XAML files
Steps To Reproduce
Both Release and Preview versions have the same problems
Expected Behavior
I would expect to work as the code editor Visual Studio for MAC has
Environment Information
macOS
The text was updated successfully, but these errors were encountered: