forked from dotnet/roslyn
-
Notifications
You must be signed in to change notification settings - Fork 0
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 dotnet#70983 from sharwell/use-cps-2
Use CPS for tests where saving documents needs to be reliable
- Loading branch information
Showing
18 changed files
with
1,058 additions
and
66 deletions.
There are no files selected for viewing
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
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
24 changes: 24 additions & 0 deletions
24
src/VisualStudio/IntegrationTest/New.IntegrationTests/InProcess/EditAndContinueResult.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,24 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
// See the LICENSE file in the project root for more information. | ||
|
||
namespace Roslyn.VisualStudio.NewIntegrationTests.InProcess; | ||
|
||
internal enum EditAndContinueResult | ||
{ | ||
NoChanges = 0, | ||
|
||
RudeEdits = 1, | ||
|
||
BuildError = 2, | ||
|
||
Succeeded = 3, | ||
|
||
ApplyUpdatesFailure = 4, | ||
|
||
// This gets returned when the result has already been handled by the provider, | ||
// and no further action is required. | ||
NoReport = 5, | ||
|
||
NotSupported = 6, | ||
} |
17 changes: 17 additions & 0 deletions
17
src/VisualStudio/IntegrationTest/New.IntegrationTests/InProcess/HotReloadAction.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,17 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
// See the LICENSE file in the project root for more information. | ||
|
||
namespace Roslyn.VisualStudio.NewIntegrationTests.InProcess; | ||
|
||
internal enum HotReloadAction | ||
{ | ||
None, | ||
Cancel, | ||
Edit, | ||
Disable, | ||
Revert, | ||
Ignore, | ||
Restart, | ||
Stop, | ||
} |
16 changes: 16 additions & 0 deletions
16
src/VisualStudio/IntegrationTest/New.IntegrationTests/InProcess/IHotReloadUIService.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,16 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
// See the LICENSE file in the project root for more information. | ||
|
||
using System; | ||
using System.Runtime.InteropServices; | ||
|
||
namespace Roslyn.VisualStudio.NewIntegrationTests.InProcess; | ||
|
||
[ComImport] | ||
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] | ||
[Guid("4F6E5436-F098-45FF-B85F-7AE940DFCA44")] | ||
internal interface IHotReloadUIService | ||
{ | ||
int ShowHotReloadDialog(bool isManaged, EditAndContinueResult result, [In][MarshalAs(UnmanagedType.BStr)] string errorMessage); | ||
} |
27 changes: 27 additions & 0 deletions
27
src/VisualStudio/IntegrationTest/New.IntegrationTests/InProcess/IVsMessageBoxService.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,27 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
// See the LICENSE file in the project root for more information. | ||
|
||
using System; | ||
using System.Runtime.InteropServices; | ||
|
||
namespace Roslyn.VisualStudio.NewIntegrationTests.InProcess; | ||
|
||
[ComImport] | ||
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] | ||
[Guid("1DD71F22-C880-46be-A462-A0A5542BC939")] | ||
internal interface IVsMessageBoxService | ||
{ | ||
[PreserveSig] | ||
int ShowMessageBox( | ||
IntPtr hWndOwner, | ||
IntPtr hInstance, | ||
[MarshalAs(UnmanagedType.LPWStr)] string lpszText, | ||
[MarshalAs(UnmanagedType.LPWStr)] string lpszCaption, | ||
uint dwStyle, | ||
IntPtr lpszIcon, | ||
IntPtr dwContextHelpId, | ||
IntPtr pfnMessageBoxCallback, | ||
uint dwLangID, | ||
out int pidButton); | ||
} |
Oops, something went wrong.