Skip to content

Commit

Permalink
Turned on Active_File_Name_And_Line_Selection_Is_Showing_In_Chat_Input()
Browse files Browse the repository at this point in the history
  • Loading branch information
PiotrKarczmarz committed Sep 25, 2024
1 parent ceae799 commit 0690274
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Cody.VisualStudio.Tests/ChatLoggedBasicTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ public async Task Solution_Name_Is_Added_To_Chat_Input()
Assert.Equal("ConsoleApp1", tags.Last().Name);
}

//[VsFact(Version = VsVersion.VS2022)]
[VsFact(Version = VsVersion.VS2022)]
public async Task Active_File_Name_And_Line_Selection_Is_Showing_In_Chat_Input()
{
// given
OpenSolution(SolutionsPaths.GetConsoleApp1File("ConsoleApp1.sln"));
await WaitForPlaywrightAsync();
await OpenSolution(SolutionsPaths.GetConsoleApp1File("ConsoleApp1.sln"));

// when
const int startLine = 3; const int endLine = 5;
Expand Down
4 changes: 3 additions & 1 deletion src/Cody.VisualStudio.Tests/TestsBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public abstract class TestsBase: ITestLogger
{
private readonly ITestOutputHelper _logger;

protected CodyPackage CodyPackage;
protected static CodyPackage CodyPackage;

protected TestsBase(ITestOutputHelper output)
{
Expand Down Expand Up @@ -55,6 +55,8 @@ protected async Task OpenSolution(string path)

protected async Task OpenDocument(string path, int? selectLineStart = null, int? selectLineEnd = null)
{
WriteLog($"CodyPackage: {CodyPackage} ");

VsShellUtilities.OpenDocument(CodyPackage, path, Guid.Empty, out _, out _, out IVsWindowFrame frame);
frame.Show();

Expand Down

0 comments on commit 0690274

Please sign in to comment.