From 6b6fcd9e0ccc732dc60f6d2825a3d365e895ff1e Mon Sep 17 00:00:00 2001 From: tomaszgolebiowski <37900990+tomaszgolebiowski@users.noreply.github.com> Date: Fri, 16 Aug 2024 12:45:31 +0200 Subject: [PATCH] Remove active waiting for opeing solution (#45) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Tomasz Gołębiowski --- src/Cody.VisualStudio/Services/SolutionService.cs | 10 +--------- src/build.cake | 2 +- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/src/Cody.VisualStudio/Services/SolutionService.cs b/src/Cody.VisualStudio/Services/SolutionService.cs index 3f623e14..2ea78482 100644 --- a/src/Cody.VisualStudio/Services/SolutionService.cs +++ b/src/Cody.VisualStudio/Services/SolutionService.cs @@ -1,4 +1,4 @@ -using Cody.Core.Infrastructure; +using Cody.Core.Infrastructure; using Microsoft.VisualStudio.Shell.Interop; using System; using System.Diagnostics; @@ -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); diff --git a/src/build.cake b/src/build.cake index c6474350..110c2194 100644 --- a/src/build.cake +++ b/src/build.cake @@ -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 = "";