Skip to content

Revert "feat: reenable asar support" - #272935

Merged
João Moreno (joaomoreno) merged 1 commit into
mainfrom
revert-272552-robo/enable_asar
Oct 23, 2025
Merged

João Moreno (joaomoreno) merged 1 commit into
mainfrom
revert-272552-robo/enable_asar

Conversation

@joaomoreno

Copy link
Copy Markdown
Contributor

Reverts #272552

Copilot AI review requested due to automatic review settings October 23, 2025 15:38
@joaomoreno
João Moreno (joaomoreno) marked this pull request as ready for review October 23, 2025 15:38
@vs-code-engineering

vs-code-engineering Bot commented Oct 23, 2025 •

Copy link
Copy Markdown
Contributor

📬 CODENOTIFY

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

Benjamin Pasero (@bpasero)

Matched files:

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

TylerLeonhardt

Matched files:

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

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 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

Comment thread src/vs/amdX.ts Resolved
Comment thread build/gulpfile.vscode.js Resolved
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