JaneySprings / DotNet.Meteor

A VSCode extension that can run and debug .NET apps (Xamarin, MAUI, Avalonia)
https://marketplace.visualstudio.com/items?itemName=nromanov.dotnet-meteor
MIT License
269 stars 10 forks source link

Add XAML Hot reload - change only #113

Open ziomek64 opened 2 months ago

ziomek64 commented 2 months ago

So in normal Visual Studio it's possible to have "change" only hot reload. Essentialy what it does I think it hot reloads one component on the page not just reloads the page.

For example: If the page is long and there is something at the and you hot reload on VS it doesn't scroll up, it just changes one thing only. On DotNet.Meteor it scrolls up probably because the whole page is reloaded.

Would it be possible to have this here?

JaneySprings commented 2 months ago

Hi, @ziomek64 ! Unfortunately, .NET Meteor uses a full page reload because it can't detect an exact element that needs to be reloaded.

ziomek64 commented 2 months ago

Hi, @ziomek64 ! Unfortunately, .NET Meteor uses a full page reload because it can't detect an exact element that needs to be reloaded.

Hmm, how does Microsoft doing that in Visual Studio 2022? Is this proprietary stuff?

What about their official VS code extension? Can't make it run tbh so couldn't test

ziomek64 commented 2 months ago

Holy, actually official VS Code extension from MS has change only hot reload. Is the extension open source? Couldn't find the repo

JaneySprings commented 2 months ago

To be honest, I do not know how it works in VS2022 or VSCode. It is not an open source. ILSpy won't even help me here, since there are a lot of DLL files and code there.

ziomek64 commented 2 months ago

That's sad, because it really is a neat feature which makes UI development really quick. Perhaps label it as enhancement for further investigation in the future