Skip to content
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

Stylix theme won't apply to vscode after update #510

Open
Arut0ria opened this issue Aug 17, 2024 · 5 comments
Open

Stylix theme won't apply to vscode after update #510

Arut0ria opened this issue Aug 17, 2024 · 5 comments
Labels
bug Something isn't working properly

Comments

@Arut0ria
Copy link

You can get my nixos config there : https://github.com/Arut0ria/nixos-desktop-config

I can't understand why it broke. I can't see the extension un vscode anymore.

@Arut0ria
Copy link
Author

I found something that sort of fixed it, I removed the extensions.json in ~/.vscode-oss/extensions/ and added this option to my vscode nix config :

{ pkgs, lib, config, ... }: {
  options = {
    vscode-program.enable = lib.mkEnableOption "Enables vscodium.";
  };

  config = lib.mkIf config.vscode-program.enable {
    programs.vscode = {
      enable = true;
      
      /*
        Here
      */
      mutableExtensionsDir = false;
      
      package = pkgs.vscodium;
      extensions = with pkgs.vscode-extensions; [
        jnoortheen.nix-ide
        bierner.emojisense
      ];
    };
  };
}

@trueNAHO trueNAHO added the bug Something isn't working properly label Aug 19, 2024
@trueNAHO
Copy link
Collaborator

You can get my nixos config there : https://github.com/Arut0ria/nixos-desktop-config

I am unable to find a flake.lock file. What is the pinned Stylix version?

I can't understand why it broke. I can't see the extension un vscode anymore.

Is it related to #417?

@Arut0ria
Copy link
Author

Arut0ria commented Aug 20, 2024

I don't think it is related to #417.

Vscode won't load the stylix extension, unless I add this option to my nixos configuration:

programs.vscode.mutableExtensionsDir = false;

I'll upload the flake.lock.

@trueNAHO
Copy link
Collaborator

I can't understand why it broke. I can't see the extension un vscode anymore.

What exactly do you mean by "anymore"? For reference, the vscode directory has been untouched for the last 2 months: https://github.com/danth/stylix/commits/master/modules/vscode.

I'll upload the flake.lock.

Seems to be up-to-date with 94d7029.

Vscode won't load the stylix extension, unless I add this option to my nixos configuration:

programs.vscode.mutableExtensionsDir = false;

Maybe @dafitt or @danth are more familiar with the VS Code setup.

@danth
Copy link
Owner

danth commented Nov 20, 2024

Perhaps the mutable extensions directory allowed the extension to be disabled/deleted somehow?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working properly
Projects
None yet
Development

No branches or pull requests

3 participants