Skip to content

Remove dead dependencies orphaned by Copilot on Rails removal#1486

Merged
alexweininger merged 1 commit into
mainfrom
alex/remove-rails-dead-deps
Jun 11, 2026
Merged

Remove dead dependencies orphaned by Copilot on Rails removal#1486
alexweininger merged 1 commit into
mainfrom
alex/remove-rails-dead-deps

Conversation

@alexweininger

Copy link
Copy Markdown
Member

Summary

Removes four dependencies that were introduced for the Copilot on Rails webviews (#1436) but were orphaned when that feature was removed in #1480. The feature's build:webviews script was deleted, but these packages were left behind in package.json.

Dependency Type Status
@microsoft/vscode-azext-webview dependency no imports in src/ or api/
@types/vscode-webview devDependency no references
mermaid devDependency unused (no diagram usage)
sass devDependency no .scss files; not referenced in esbuild.mjs

Regenerating package-lock.json removes 216 transitive packages.

Verification

  • npm run build (esbuild bundle + tsc --noEmit, which also type-checks test/)
  • npm run lint (eslint --max-warnings 0)
  • npm test — 103 passing
  • npm audit unchanged vs. main — no vulnerabilities introduced or masked

Notes

@types/uuid was intentionally left in place — it predates Copilot on Rails (tied to the uuid bump in #1431) and is out of scope for this cleanup.

The mermaid, sass, @microsoft/vscode-azext-webview, and @types/vscode-webview
dependencies were added for the Copilot on Rails webviews (#1436) but were
left behind when that feature was removed (#1480). They have no remaining
references in source. Removing them drops 216 transitive packages.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 11, 2026 16:03
@alexweininger alexweininger requested a review from a team as a code owner June 11, 2026 16:03
@alexweininger

Copy link
Copy Markdown
Member Author

Lol copilot doesn't hold back on the PR titles

@alexweininger alexweininger merged commit b585bca into main Jun 11, 2026
4 checks passed
@alexweininger alexweininger deleted the alex/remove-rails-dead-deps branch June 11, 2026 16:08

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.

Pull request overview

This pull request cleans up the extension’s dependency surface by removing packages that were introduced for the (now-removed) “Copilot on Rails” webviews feature, reducing unused direct and transitive dependencies.

Changes:

  • Remove orphaned webview-related dependencies from package.json (@microsoft/vscode-azext-webview, @types/vscode-webview, mermaid, sass).
  • Reduce overall install footprint by eliminating now-unneeded transitive packages (as stated in the PR description).
Show a summary per file
File Description
package.json Removes unused direct dependencies that were previously required for the removed webviews feature.

Copilot's findings

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 1/2 changed files
  • Comments generated: 1

Comment thread package.json
Comment on lines 922 to +924
"@vscode/vsce": "*",
"esbuild": "*",
"esbuild-plugin-copy": "*",
"mermaid": "^11.15.0",
"sass": "~1.79.6"
"esbuild-plugin-copy": "*"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants