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 preLaunchTask running before concurrent session confirmation (microsoft#263294)
* Initial plan
* Implement fix for preLaunchTask running before concurrent session confirmation
Co-authored-by: connor4312 <2230985+connor4312@users.noreply.github.com>
* Add test for concurrent session preLaunchTask fix
Co-authored-by: connor4312 <2230985+connor4312@users.noreply.github.com>
* Compare launch configurations instead of session labels for concurrent session detection
Address feedback to use launch configuration comparison instead of session labels, which can be unpredictable as they may be changed by the debug server. The fix now compares configuration name, type, request, and workspace to reliably identify the same launch configuration.
Co-authored-by: connor4312 <2230985+connor4312@users.noreply.github.com>
* Extract launch configuration comparison logic into private method
- Created `hasSameConfiguration()` private method to avoid code duplication
- Updated `createSession()` to use the new method
- Updated `doCreateSession()` to use configuration comparison instead of label comparison
- Removed test file as requested
Co-authored-by: connor4312 <2230985+connor4312@users.noreply.github.com>
* Extract dialog confirmation logic into private method
Co-authored-by: connor4312 <2230985+connor4312@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: connor4312 <2230985+connor4312@users.noreply.github.com>
// There is already a session with the same name, prompt user #127721
604
-
constresult=awaitthis.dialogService.confirm({message: nls.localize('multipleSession',"'{0}' is already running. Do you want to start another instance?",session.getLabel())});
0 commit comments