Skip to content

Dependencies: Remove unused debugger and packaging dependencies - #1158

Merged
Dmitriy Vasyura (dmitrivMS) merged 4 commits into
mainfrom
cleanup/debugger-deps-f7a6a74c
Nov 28, 2026
Merged

Dmitriy Vasyura (dmitrivMS) merged 4 commits into
mainfrom
cleanup/debugger-deps-f7a6a74c

Conversation

@dmitrivMS

@dmitrivMS Dmitriy Vasyura (dmitrivMS) commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

The extension launches the Python debugpy adapter and does not use the Node debug adapter or language client. Remove @vscode/debugadapter and vscode-languageclient, and use VS Code’s own CancellationToken type 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 on noxfile.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.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 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 CancellationToken type in the resolver test.
  • Remove obsolete Python packaging requirements 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

Comment thread noxfile.py Resolved
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 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

Comment thread noxfile.py Resolved
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

Failed backup cleanup can block every subsequent setup run even after the new bundle is installed and the lock is released.

1 open issue
1 resolved since last review

Review effort: Max

Comment thread noxfile.py Resolved
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@dmitrivMS
Dmitriy Vasyura (dmitrivMS) merged commit 4b5532b into main Nov 28, 2026
15 checks passed
@dmitrivMS
Dmitriy Vasyura (dmitrivMS) deleted the cleanup/debugger-deps-f7a6a74c branch November 28, 2026 07:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

debt Code quality issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants