Skip to content

VS Code server no longer installs extensions upon launch #245917

@joshspicer

Description

@joshspicer

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.99
  • OS Version: mac

Expectation

When launching a VS Code server with the --install-extension flag, extensions should immediately be installed from the marketplace.

Actual

Extensions are not installed until a workbench attaches to the server.

Why

I believe due to this change - maybe:

override async getExtensionGalleryManifest(): Promise<IExtensionGalleryManifest | null> {
await this.barrier.wait();
return this.extensionGalleryManifest ?? null;
}

, the extension installation is blocked until this barrier is opened by setExtensionGalleryManifest. This won't happen until the workbench is available.

Steps to Reproduce:

  1. Start code-server with ./code-server --accept-server-license-terms --start-server --host 127.0.0.1 --install-extension joshspicer.touchbarcommandshortcuts
  2. 🐛 joshspicer.touchbarcommandshortcuts does not install immediately

Image

See full video demo for more info:

Screen.Recording.2025-04-07.at.4.19.54.PM.mov

Metadata

Metadata

Assignees

Labels

extensionsIssues concerning extensionsremoteRemote system operations issuesunder-discussionIssue is under discussion for relevance, priority, approach

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions