Skip to content

Commit

Permalink
Remove active waiting for opeing solution (#45)
Browse files Browse the repository at this point in the history
Co-authored-by: Tomasz Gołębiowski <tgolebiowski@virtuslab.com>
  • Loading branch information
tomaszgolebiowski and Tomasz Gołębiowski authored Aug 16, 2024
1 parent 5fcf37b commit 6b6fcd9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
10 changes: 1 addition & 9 deletions src/Cody.VisualStudio/Services/SolutionService.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Cody.Core.Infrastructure;
using Cody.Core.Infrastructure;
using Microsoft.VisualStudio.Shell.Interop;
using System;
using System.Diagnostics;
Expand All @@ -23,14 +23,6 @@ public bool IsSolutionOpen()

public string GetSolutionDirectory()
{
// Wait for solution to finish loading
solutionService.GetProperty((int)__VSPROPID.VSPROPID_IsSolutionOpening, out object loading);
while (loading is bool isLoading && isLoading)
{
System.Threading.Thread.Sleep(100);
solutionService.GetProperty((int)__VSPROPID.VSPROPID_IsSolutionOpening, out loading);
}

solutionService.GetProperty((int)__VSPROPID.VSPROPID_SolutionFileName, out object value);
var solutionDir = Path.GetDirectoryName(value as string);

Expand Down
2 changes: 1 addition & 1 deletion src/build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ var codyRepo = "https://github.com/sourcegraph/cody.git";
var nodeBinaryUrl = "https://github.com/sourcegraph/node-binaries/raw/main/v20.12.2/node-win-x64.exe";
var nodeArmBinaryUrl = "https://github.com/sourcegraph/node-binaries/raw/main/v20.12.2/node-win-arm64.exe";

var codyCommit = "efae7867050302344819ddf66f8a9b0736af41f5";
var codyCommit = "0e03022321f543c27cbb4a8777b36a6698440102";

var marketplaceToken = "<HIDDEN>";

Expand Down

0 comments on commit 6b6fcd9

Please sign in to comment.