Skip to content

Revert "feat: reenable asar support"#272935

Merged
joaomoreno merged 1 commit intomainfrom
revert-272552-robo/enable_asar
Oct 23, 2025
Merged

Revert "feat: reenable asar support"#272935
joaomoreno merged 1 commit intomainfrom
revert-272552-robo/enable_asar

Conversation

@joaomoreno
Copy link
Member

Reverts #272552

Copilot AI review requested due to automatic review settings October 23, 2025 15:38
@joaomoreno joaomoreno marked this pull request as ready for review October 23, 2025 15:38
@joaomoreno joaomoreno enabled auto-merge (squash) October 23, 2025 15:38
@vs-code-engineering
Copy link

vs-code-engineering bot commented Oct 23, 2025

📬 CODENOTIFY

The following users are being notified based on files changed in this PR:

@bpasero

Matched files:

  • src/bootstrap-esm.ts
  • src/bootstrap-node.ts

@TylerLeonhardt

Matched files:

  • src/vs/workbench/services/languageDetection/browser/languageDetectionWorkerServiceImpl.ts

@joaomoreno joaomoreno self-assigned this Oct 23, 2025
@joaomoreno joaomoreno added this to the October 2025 milestone Oct 23, 2025
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 PR reverts the ASAR (Electron Archive) support that was previously enabled in PR #272552. The changes disable ASAR packaging functionality across the codebase by introducing a canASAR flag set to false and removing ASAR-specific implementation code.

Key Changes:

  • Introduces canASAR = false flag to disable ASAR support throughout the codebase
  • Removes ASAR-specific module resolution hooks from bootstrap code
  • Simplifies node_modules path handling by reverting to non-ASAR paths
  • Updates build scripts to work with standard node_modules structure instead of ASAR archives

Reviewed Changes

Copilot reviewed 14 out of 14 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/vs/amdX.ts Added canASAR flag and updated module loading logic to check it
src/vs/base/common/platform.ts Removed hasElectronUserAgent export
src/vs/base/common/network.ts Reverted ASAR path constants to simpler structure
src/vs/workbench/services/treeSitter/browser/treeSitterLibraryService.ts Updated to check canASAR flag for path resolution
src/vs/workbench/services/textMate/browser/textMateTokenizationFeatureImpl.ts Updated to check canASAR flag for WASM file loading
src/vs/workbench/services/textMate/browser/backgroundTokenization/threadedBackgroundTokenizerFactory.ts Updated to check canASAR flag for module location
src/vs/workbench/services/languageDetection/browser/languageDetectionWorkerServiceImpl.ts Updated to check canASAR flag for worker initialization
src/bootstrap-node.ts Removed ASAR support helper function
src/bootstrap-esm.ts Removed ASAR-specific module resolution hooks, simplified to only map 'fs' to 'original-fs'
build/linux/dependencies-generator.ts Added canAsar flag to conditionally use ASAR paths
build/linux/dependencies-generator.js Compiled JavaScript version of dependencies-generator changes
build/lib/asar.ts Restructured file duplication logic for non-ASAR packaging
build/lib/asar.js Compiled JavaScript version of asar.ts changes
build/gulpfile.vscode.js Updated ASAR creation to use node_modules subdirectory and adjusted vsda handling comments

@joaomoreno joaomoreno merged commit 5e4cf38 into main Oct 23, 2025
28 checks passed
@joaomoreno joaomoreno deleted the revert-272552-robo/enable_asar branch October 23, 2025 15:50
deepak1556 added a commit that referenced this pull request Oct 23, 2025
deepak1556 added a commit that referenced this pull request Oct 30, 2025
deepak1556 added a commit that referenced this pull request Nov 3, 2025
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Dec 7, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants