-
Notifications
You must be signed in to change notification settings - Fork 28.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VSCode starts with disabled extensions #82359
Comments
Errors on startup (Disabled extensions) in developer tools:
|
@joaomoreno a more complete stack trace can be found here: #82181 (comment) |
Got a repro: diff --git a/src/vs/workbench/services/extensions/node/extensionPoints.ts b/src/vs/workbench/services/extensions/node/extensionPoints.ts
index 17fdf323c7..15a9cb9889 100644
--- a/src/vs/workbench/services/extensions/node/extensionPoints.ts
+++ b/src/vs/workbench/services/extensions/node/extensionPoints.ts
@@ -50,7 +50,8 @@ class ExtensionManifestParser extends ExtensionManifestHandler {
public parse(): Promise<IExtensionDescription> {
return pfs.readFile(this._absoluteManifestPath).then((manifestContents) => {
const errors: json.ParseError[] = [];
- const manifest = json.parse(manifestContents.toString(), errors);
+ let manifest = json.parse(manifestContents.toString(), errors);
+ manifest = undefined!;
if (errors.length === 0) {
if (manifest.__metadata) {
manifest.uuid = manifest.__metadata.id; |
@aeschli 479563e was a dangerous change because while |
Repro steps:
|
Pushing a fix for this. Next steps to improve stability are #82504 |
Ah I see. The difference is that our parser doesn't emit an error if the content is empty, while JSON.parse does. |
If you are hitting this issue, there's no real workaround for now, somehow you have a corrupted built-in extension manifest file. That should not block all other extensions, of course, so we're pushing a fix for the 1.39.2 recovery release. Until that's released, you can either reinstall VS Code or find the corrupt |
Verified that the issue is resolved with the latest version 1.39.2. |
Issue Type: Bug
I updated VSCode yesterday and now everytime I start VScode it starts with all my extensions disabled. Tried reinstalling VSCode, but did not work.
All my extensions appear in the "Disabled" area. The only solution to make it work is if I "Disable all extensions" and then "Enable all extensions".
If after this I close vscode, it starts again with disabled extensions.
VS Code version: Code 1.39.1 (88f15d1, 2019-10-10T23:31:28.683Z)
OS version: Windows_NT x64 10.0.18362
System Info
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
oop_rasterization: disabled_off
protected_video_decode: enabled
rasterization: enabled
skia_deferred_display_list: disabled_off
skia_renderer: disabled_off
surface_synchronization: enabled_on
video_decode: enabled
viz_display_compositor: disabled_off
webgl: enabled
webgl2: enabled
Extensions (54)
(1 theme extensions excluded)
The text was updated successfully, but these errors were encountered: