Skip to content

[Identity] Deprecate VisualStudioCodeCredential#40613

Merged
pvaneck merged 1 commit intoAzure:mainfrom
pvaneck:identity-vscode-deprecation
Apr 21, 2025
Merged

[Identity] Deprecate VisualStudioCodeCredential#40613
pvaneck merged 1 commit intoAzure:mainfrom
pvaneck:identity-vscode-deprecation

Conversation

@pvaneck
Copy link
Member

@pvaneck pvaneck commented Apr 18, 2025

This credential is deprecated because the Azure Account extension for Visual Studio Code, which this credential relies on, has been deprecated.

Closes: #39964

Description

Please add an informative description that covers that changes made by the pull request and link all relevant issues.

If an SDK is being regenerated based on a new swagger spec, a link to the pull request containing these swagger spec changes has been included above.

All SDK Contribution checklist:

  • The pull request does not introduce [breaking changes]
  • CHANGELOG is updated for new features, bug fixes or other significant changes.
  • I have read the contribution guidelines.

General Guidelines and Best Practices

  • Title of the pull request is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

  • Pull request includes test coverage for the included changes.

This credential is deprecated because the Azure Account extension
for Visual Studio Code, which this credential relies on, has been deprecated.

Signed-off-by: Paul Van Eck <[email protected]>
@pvaneck pvaneck force-pushed the identity-vscode-deprecation branch from 3328940 to 4f258b8 Compare April 18, 2025 20:41
@azure-sdk
Copy link
Collaborator

API change check

API changes are not detected in this pull request.

@pvaneck pvaneck marked this pull request as ready for review April 21, 2025 17:58
Copilot AI review requested due to automatic review settings April 21, 2025 17:58
@pvaneck pvaneck requested review from a team and xiangyan99 as code owners April 21, 2025 17:58
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.

Pull Request Overview

This pull request deprecates the VisualStudioCodeCredential by updating its warning messages, removing its troubleshooting documentation, and updating related tests and README instructions to reflect the deprecation.

  • Updated deprecation messages in both synchronous and asynchronous implementations of VisualStudioCodeCredential.
  • Adjusted tests to verify deprecation warnings and modified documentation in README, TROUBLESHOOTING.md, and the CHANGELOG.

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
sdk/identity/azure-identity/tests/test_vscode_credential_async.py Added deprecation warning test for asynchronous credential.
sdk/identity/azure-identity/tests/test_vscode_credential.py Added deprecation warning test and removed skip marker on get_credential.
sdk/identity/azure-identity/azure/identity/aio/_credentials/vscode.py Updated deprecation notices in the asynchronous credential implementation.
sdk/identity/azure-identity/azure/identity/_credentials/vscode.py Updated deprecation warning and documentation in the synchronous credential implementation.
sdk/identity/azure-identity/TROUBLESHOOTING.md Removed troubleshooting section for VisualStudioCodeCredential.
sdk/identity/azure-identity/README.md Removed VisualStudioCodeCredential instructions and updated credential guidance.
sdk/identity/azure-identity/CHANGELOG.md Documented deprecation of VisualStudioCodeCredential.
Comments suppressed due to low confidence (2)

sdk/identity/azure-identity/tests/test_vscode_credential.py:365

  • [nitpick] Consider enhancing the deprecation warning test to assert the expected deprecation warning message content to ensure consistency in future changes.
def test_deprecation_warning():

sdk/identity/azure-identity/tests/test_vscode_credential_async.py:356

  • [nitpick] Consider enhancing the deprecation warning test to assert the expected deprecation warning message content to ensure consistency in future changes.
def test_deprecation_warning():

@github-project-automation github-project-automation bot moved this from Untriaged to In Progress in Azure Identity SDK Improvements Apr 21, 2025
@pvaneck pvaneck merged commit 4d0a196 into Azure:main Apr 21, 2025
42 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in Azure Identity SDK Improvements Apr 21, 2025
@pvaneck pvaneck deleted the identity-vscode-deprecation branch April 21, 2025 22:39
cRui861 pushed a commit that referenced this pull request May 14, 2025
This credential is deprecated because the Azure Account extension
for Visual Studio Code, which this credential relies on, has been deprecated.

Signed-off-by: Paul Van Eck <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Development

Successfully merging this pull request may close these issues.

Deprecate VisualStudioCodeCredential

4 participants