stylix icon indicating copy to clipboard operation
stylix copied to clipboard

Stylix theme won't apply to vscode after update

Open Arut0ria opened this issue 1 year ago • 6 comments

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 avatar Aug 17 '24 14:08 Arut0ria

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
      ];
    };
  };
}

Arut0ria avatar Aug 17 '24 18:08 Arut0ria

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 https://github.com/danth/stylix/issues/417?

trueNAHO avatar Aug 19 '24 18:08 trueNAHO

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.

Arut0ria avatar Aug 20 '24 11:08 Arut0ria

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 94d70292d0c687ebacb65d00bd516cbefa18d3ca.

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.

trueNAHO avatar Aug 20 '24 12:08 trueNAHO

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

danth avatar Nov 20 '24 22:11 danth

On nixos-darwin, I'm having the same issue where I have to use this option as well:

programs.vscode.mutableExtensionsDir = false;

Not sure what is causing it either. However, I did notice that disabling defining extensions in my config made it work without this option.

GBHU753 avatar Sep 24 '25 06:09 GBHU753