Remove unused VS Code telemetry and azext dependencies - #20202
Open
Shenglong Li (shenglol) wants to merge 4 commits into
Open
Remove unused VS Code telemetry and azext dependencies#20202Shenglong Li (shenglol) wants to merge 4 commits into
Shenglong Li (shenglol) wants to merge 4 commits into
Conversation
Contributor
|
Test this change out locally with the following install scripts (Action run 32211670799) VSCode
Azure CLI
|
Replace Azure extension helpers with local authentication, subscription, UI, command, logging, and deployment implementations. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: ef00c51d-2326-446a-b862-8f55ddf5c0d0
Use explicit error handling, prompts, command services, and logging dependencies instead of shared action contexts. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: ef00c51d-2326-446a-b862-8f55ddf5c0d0
Remove the telemetry reporter, dependency, activation and command events, and language-server telemetry forwarding while preserving logging and error handling. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: ef00c51d-2326-446a-b862-8f55ddf5c0d0
Shenglong Li (shenglol)
force-pushed
the
shenglol/remove-bicep-telemetry
branch
from
August 19, 2026 03:09
e2f8685 to
c2a9b7b
Compare
Use Node's built-in filesystem APIs instead of fs-extra and rimraf, and remove the corresponding direct dependencies and type package. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: ef00c51d-2326-446a-b862-8f55ddf5c0d0
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.
Summary
Remove unused telemetry and broad utility dependencies from the Bicep VS Code extension.
fs-extraandrimrafwith Node's built-in filesystem APIs.Telemetry removed
The extension collected the following Bicep-specific telemetry. None of these events is monitored or used to make product or operational decisions.
closedreasonThe language server still emits its existing telemetry notifications. This PR only removes collection and forwarding by the VS Code extension; language-server telemetry can be evaluated separately.
Dependency reduction
The production dependency footprint drops by 84 packages (58%):
@azure/identityremains through@vscode/vsceDirect dependencies removed:
@azure/identity@microsoft/vscode-azext-azureauth@microsoft/vscode-azext-azureutils@microsoft/vscode-azext-utilsfs-extra@types/fs-extrarimraf@azure/core-authis added as a focused replacement, resulting in a net reduction of 6 direct dependencies.The azext packages share much of their dependency graph, and several Azure SDK packages remain required by the ARM clients. This is why removing the direct dependencies does not remove independent copies of every transitive package.
Bundle size
Production webpack builds were compared by summing all root-level JavaScript assets loaded by the extension runtime. Separately copied deploy-pane and visual-designer assets are excluded.
02a54d985)mainCompared with current
main, this PR reduces runtime JavaScript by 1,495,278 bytes (62.0%) raw and 323,698 bytes (60.5%) gzip. The primaryextension.jsfile decreases from 1,364,040 bytes to 704,355 bytes (48.4%).The pre-Vitest and current-main bundles are effectively the same size, confirming that the reduction comes from removing runtime dependencies and telemetry rather than from changing the test framework.
Validation
npm run cleannpm run test:unit- 66 tests passednpm run buildnpm run build:e2enpm run lint