Repository navigation
Dependencies: Remove unused debugger and packaging dependencies - #1158
Merged
Dmitriy Vasyura (dmitrivMS) merged 4 commits intoNov 28, 2026
Merged
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Dmitriy Vasyura (dmitrivMS)
marked this pull request as ready for review
November 28, 2026 05:59
Dmitriy Vasyura (dmitrivMS)
enabled auto-merge (squash)
November 28, 2026 06:00
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Rerunning setup leaves stale packaging files in bundled/libs, so upgraded checkouts still include the obsolete dependency in locally built VSIXes.
1 open issue
What changed in this PR
This PR removes unused dependencies from the Python debugger extension and its bundling workflow. It keeps the debugpy version, target matrix, and retained dependency versions unchanged.
Changes:
- Remove the unused Node debug adapter and language client dependencies, and use VS Code’s
CancellationTokentype in the resolver test. - Remove obsolete Python
packagingrequirements and nox installation steps. - Key pip caches on
noxfile.py, which defines the debugpy version and target selection.
| File | Description |
|---|---|
src/test/unittest/configuration/resolvers/base.unit.test.ts |
Import CancellationToken directly from VS Code. |
requirements.txt |
Delete the pinned packaging requirement. |
requirements.in |
Delete the obsolete requirements source. |
package.json |
Remove unused debugger and language client dependencies. |
package-lock.json |
Prune removed dependencies and mark remaining shared packages as development-only. |
noxfile.py |
Remove obsolete Python dependency installation steps. |
.github/actions/lint/action.yml |
Key the lint pip cache on noxfile.py. |
.github/actions/build-vsix/action.yml |
Key the build pip cache on noxfile.py. |
Review effort: Max
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Bundle replacement can partially delete the existing debugpy installation and discard the new bundle on failure, leaving the debugger unusable without a rollback mechanism.
1 open issue
1 resolved since last review
Review effort: Max
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Alexandru Dima (alexdima)
approved these changes
Nov 28, 2026
Dmitriy Vasyura (dmitrivMS)
deleted the
cleanup/debugger-deps-f7a6a74c
branch
November 28, 2026 07:51
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

The extension launches the Python debugpy adapter and does not use the Node debug adapter or language client. Remove
@vscode/debugadapterandvscode-languageclient, and use VS Code’s ownCancellationTokentype in the resolver test that previously obtained it from the language client’s transitive JSON-RPC package. The lockfile prunes their unused dependency graph without changing retained versions.The bundled debugpy 1.8.21 has no runtime dependency on
packaging. Its wheel selection now uses explicit platform tags, and extraction uses Python’s standard library. Remove the obsolete requirements and nox installs, and key the pip caches onnoxfile.py, where the debugpy version and target selection live. The debugger version and target matrix stay the same. Here, setup stages the new bundle, moves any existing one aside, and restores it if installing the staged directory fails. Recovery files are not included in the VSIX.