Skip to content

Commit

Permalink
feat: Update dependencies, fix vscode material-icon-theme patch
Browse files Browse the repository at this point in the history
  • Loading branch information
sudosubin committed Jul 17, 2024
1 parent c94dfe9 commit d406a7f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 24 deletions.
24 changes: 12 additions & 12 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion modules/shared/programs/vscode/files/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"workbench.colorTheme": "One Dark Pro",
"workbench.iconTheme": "material-icon-theme",
"workbench.productIconTheme": "material-product-icons",
"material-icon-theme.activeIconPack": "react",
"material-icon-theme.hidesExplorerArrows": true,
"material-icon-theme.files.associations": {
"*.gotmpl": "template"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,11 @@ const vscodeConfig = parse(fs.readFileSync(argument));
const extensionConfig = parse(fs.readFileSync("./dist/material-icons.json"));

// vscode settings.json "material-icon-theme.*"
const options = Object.entries(vscodeConfig).reduce((prev, [key, value]) => {
if (!key.startsWith("material-icon-theme.")) {
return prev;
}

const keys = key.replace("material-icon-theme.", "").split(".");
const last = keys.pop();

keys.reduce((o, k) => (o[k] = o[k] || {}), prev)[last] = value;
return prev;
}, extensionConfig.options);
const options = Object.fromEntries(
Object.entries(vscodeConfig)
.filter(([key, _]) => key.startsWith("material-icon-theme."))
.map(([key, value]) => [key.replace("material-icon-theme.", ""), value])
);

// extension material-icons.json
const data = {
Expand Down

0 comments on commit d406a7f

Please sign in to comment.