Skip to content

Commit b744265

Browse files
committed
fix: update the getBuiltInColors method to immutable
1 parent a1feb18 commit b744265

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/services/theme/colorRegistry.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -222,13 +222,13 @@ const defaultHc = {
222222
export function getBuiltInColors(theme: IColorTheme) {
223223
switch (theme.uiTheme) {
224224
case 'vs-dark': {
225-
return defaultDark;
225+
return { ...defaultDark };
226226
}
227227
case 'vs': {
228-
return defaultVS;
228+
return { ...defaultVS };
229229
}
230230
default: {
231-
return defaultHc;
231+
return { ...defaultHc };
232232
}
233233
}
234234
}

0 commit comments

Comments
 (0)