Skip to content

Conversation

@karthiknadig
Copy link
Member

@karthiknadig karthiknadig commented Feb 10, 2025

fixes #159

We need to wrap the API in a try-catch block to handle any potential errors that might occur as it is currently being worked on.

@karthiknadig karthiknadig self-assigned this Feb 10, 2025
@karthiknadig karthiknadig added the bug Issue identified by VS Code Team member as probable bug label Feb 10, 2025
@karthiknadig karthiknadig requested a review from Copilot February 10, 2025 15:51
@karthiknadig karthiknadig marked this pull request as ready for review February 10, 2025 15:52
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Overview

This pull request wraps the experimental shell type API in a try-catch block to handle potential runtime errors during shell detection.

  • Wraps the code within fromShellTypeApi() in a try-catch block
  • Returns TerminalShellType.unknown upon encountering an error

Changes

File Description
src/features/common/shellDetector.ts Wraps shell type API code in try-catch

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Tip: Turn on automatic Copilot reviews for this repository to get quick feedback on every pull request. Learn more

@vs-code-engineering
Copy link

⚠️ This PR originates from a fork. Due to security restrictions, pipelines from forks are no longer triggered automatically. Learn more.

If the changes appear safe, you can manually trigger the pipeline by commenting /AzurePipelines run.

@vs-code-engineering vs-code-engineering bot added this to the February 2025 milestone Feb 10, 2025
@karthiknadig karthiknadig enabled auto-merge (squash) February 10, 2025 15:55
@karthiknadig karthiknadig merged commit e580490 into microsoft:main Feb 10, 2025
6 checks passed
@karthiknadig karthiknadig deleted the exp1 branch February 10, 2025 16:03
NguyenCuong1989 referenced this pull request in NguyenCuong1989/vscode-python-environments Oct 23, 2025
fixes microsoft/vscode-python-environments#159

We need to wrap the API in a try-catch block to handle any potential
errors that might occur as it is currently being worked on.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Issue identified by VS Code Team member as probable bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Failed to activate environment in 0.3.10371610

2 participants