Skip to content

Commit

Permalink
fix: update the getBuiltInColors method to immutable
Browse files Browse the repository at this point in the history
  • Loading branch information
wewoor committed Sep 10, 2021
1 parent a1feb18 commit b744265
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/services/theme/colorRegistry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -222,13 +222,13 @@ const defaultHc = {
export function getBuiltInColors(theme: IColorTheme) {
switch (theme.uiTheme) {
case 'vs-dark': {
return defaultDark;
return { ...defaultDark };
}
case 'vs': {
return defaultVS;
return { ...defaultVS };
}
default: {
return defaultHc;
return { ...defaultHc };
}
}
}

0 comments on commit b744265

Please sign in to comment.