File tree 3 files changed +8
-3
lines changed
3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 1
1
# CHANGELOG
2
- ## 3.13.23 | 2022.04.21
2
+ ## 3.13.24 | 2022.04.21
3
3
- Fix theme config array merge bug [ #713 ] ( https://github.com/Binaryify/OneDark-Pro/issues/713 )
4
4
5
5
## 3.13.22 | 2022.04.21
Original file line number Diff line number Diff line change 2
2
"name" : " material-theme" ,
3
3
"displayName" : " One Dark Pro" ,
4
4
"description" : " Atom‘s iconic One Dark theme for Visual Studio Code" ,
5
- "version" : " 3.13.23 " ,
5
+ "version" : " 3.13.24 " ,
6
6
"publisher" : " zhuangtongfa" ,
7
7
"license" : " MIT" ,
8
8
"bugs" : {
Original file line number Diff line number Diff line change 1
1
import { Colors , ThemeConfiguration , TokenColor } from '../interface'
2
2
import data from './themeData'
3
- import { uniqBy } from 'lodash'
4
3
async function createEditorTokens ( config : ThemeConfiguration ) {
5
4
return config . editorTheme in data . editorThemes
6
5
? ( await data . editorThemes [ config . editorTheme ] ( ) ) . default
7
6
: ( await data . editorThemes [ 'One Dark Pro' ] ( ) ) . default
8
7
}
8
+ const uniqBy = ( arr , fn , set = new Set ( ) ) =>
9
+ arr . filter ( ( el ) =>
10
+ ( ( v ) => ! set . has ( v ) && set . add ( v ) ) (
11
+ typeof fn === 'function' ? fn ( el ) : el [ fn ]
12
+ )
13
+ )
9
14
10
15
function configFactory ( configuration ) {
11
16
let result : TokenColor [ ] = JSON . parse (
You can’t perform that action at this time.
0 commit comments