You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(build): check for active debug session before building (#50)
Build, build project, and clean tools now check if a debug session is
active and return a message directing the agent to use debugger_stop
first, preventing VS from showing a blocking modal dialog.
[Description("Build the entire solution. The build runs asynchronously; use build_status to check progress. Returns immediately after starting the build.")]
30
+
[Description("Build the entire solution. The build runs asynchronously; use build_status to check progress. Returns immediately after starting the build. If a debug session is active, the build cannot proceed — use debugger_stop first.")]
22
31
publicasyncTask<string>BuildSolutionAsync()
23
32
{
33
+
if(awaitIsDebuggingActiveAsync())
34
+
{
35
+
returnDebugSessionActiveMessage;
36
+
}
37
+
24
38
varsuccess=await_rpcClient.BuildSolutionAsync();
25
39
returnsuccess?"Build started":"Failed to start build (is a solution open?)";
[Description("Build a specific project. The build runs asynchronously; use build_status to check progress. IMPORTANT: Requires the full path to the .csproj file, not just the project name. Use project_list first to get the correct path.")]
43
+
[Description("Build a specific project. The build runs asynchronously; use build_status to check progress. IMPORTANT: Requires the full path to the .csproj file, not just the project name. Use project_list first to get the correct path. If a debug session is active, the build cannot proceed — use debugger_stop first.")]
30
44
publicasyncTask<string>BuildProjectAsync(
31
45
[Description("The full absolute path to the project file (.csproj). Get this from project_list. Supports forward slashes (/) or backslashes (\\).")]stringprojectName)
[Description("Clean the entire solution by removing all build outputs (bin/obj folders). The clean runs asynchronously; use build_status to check progress.")]
57
+
[Description("Clean the entire solution by removing all build outputs (bin/obj folders). The clean runs asynchronously; use build_status to check progress. If a debug session is active, the clean cannot proceed — use debugger_stop first.")]
39
58
publicasyncTask<string>CleanSolutionAsync()
40
59
{
60
+
if(awaitIsDebuggingActiveAsync())
61
+
{
62
+
returnDebugSessionActiveMessage;
63
+
}
64
+
41
65
varsuccess=await_rpcClient.CleanSolutionAsync();
42
66
returnsuccess?"Clean started":"Failed to start clean (is a solution open?)";
0 commit comments