-
Notifications
You must be signed in to change notification settings - Fork 762
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19609 from unoplatform/mergify/bp/release/stable/…
…5.6/pr-19584 HR: Changed the way code (XAML) is updated through Hot Reload (backport #19584)
- Loading branch information
Showing
13 changed files
with
791 additions
and
59 deletions.
There are no files selected for viewing
4 changes: 3 additions & 1 deletion
4
src/Uno.UI.RemoteControl.Messaging/IDEChannel/ForceHotReloadIdeMessage.cs
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
#nullable enable | ||
|
||
using System.Collections.Generic; | ||
|
||
namespace Uno.UI.RemoteControl.Messaging.IdeChannel; | ||
|
||
public record ForceHotReloadIdeMessage(long CorrelationId) : IdeMessage(WellKnownScopes.HotReload); | ||
public record ForceHotReloadIdeMessage(long CorrelationId) : IdeMessageWithCorrelationId(CorrelationId, WellKnownScopes.HotReload); |
11 changes: 2 additions & 9 deletions
11
src/Uno.UI.RemoteControl.Messaging/IDEChannel/HotReloadRequestedIdeMessage.cs
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,3 @@ | ||
#nullable enable | ||
namespace Uno.UI.RemoteControl.Messaging.IdeChannel; | ||
|
||
namespace Uno.UI.RemoteControl.Messaging.IdeChannel; | ||
|
||
/// <summary> | ||
/// A message sent by the IDE to the dev-server to confirm a <see cref="ForceHotReloadIdeMessage"/> request has been processed. | ||
/// </summary> | ||
/// <param name="RequestId"><see cref="ForceHotReloadIdeMessage.CorrelationId"/> of the request.</param> | ||
/// <param name="Result">Result of the request.</param> | ||
public record HotReloadRequestedIdeMessage(long RequestId, Result Result) : IdeMessage(WellKnownScopes.HotReload); | ||
public record HotReloadRequestedIdeMessage(long IdeCorrelationId, Result Result) : IdeMessage(WellKnownScopes.HotReload); |
4 changes: 4 additions & 0 deletions
4
src/Uno.UI.RemoteControl.Messaging/IDEChannel/IdeMessageWithCorrelationId.cs
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#nullable enable | ||
namespace Uno.UI.RemoteControl.Messaging.IdeChannel; | ||
|
||
public record IdeMessageWithCorrelationId(long CorrelationId, string Scope) : IdeMessage(Scope); |
5 changes: 5 additions & 0 deletions
5
src/Uno.UI.RemoteControl.Messaging/IDEChannel/IdeResultMessage.cs
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#nullable enable | ||
|
||
namespace Uno.UI.RemoteControl.Messaging.IdeChannel; | ||
|
||
public record IdeResultMessage(long IdeCorrelationId, Result Result) : IdeMessage(WellKnownScopes.HotReload); |
7 changes: 7 additions & 0 deletions
7
src/Uno.UI.RemoteControl.Messaging/IDEChannel/UpdateFileIdeMessage.cs
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
namespace Uno.UI.RemoteControl.Messaging.IdeChannel; | ||
|
||
public record UpdateFileIdeMessage( | ||
long CorrelationId, | ||
string FileFullName, | ||
string FileContent, | ||
bool ForceSaveOnDisk) : IdeMessageWithCorrelationId(CorrelationId, WellKnownScopes.HotReload); |
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
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
Oops, something went wrong.