File tree Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -28,9 +28,11 @@ export class ColorTheme {
28
28
static fromRules ( rules : TextMateRule [ ] ) : ColorTheme {
29
29
const res = new ColorTheme ( ) ;
30
30
for ( const rule of rules ) {
31
- const scopes = typeof rule . scope === 'string'
32
- ? [ rule . scope ]
33
- : rule . scope ;
31
+ const scopes = typeof rule . scope === 'undefined'
32
+ ? [ ]
33
+ : typeof rule . scope === 'string'
34
+ ? [ rule . scope ]
35
+ : rule . scope ;
34
36
for ( const scope of scopes ) {
35
37
res . rules . set ( scope , rule . settings ) ;
36
38
}
Original file line number Diff line number Diff line change 1
1
import * as vscode from 'vscode' ;
2
2
import * as lc from 'vscode-languageclient' ;
3
- import * as seedrandom_ from 'seedrandom' ;
4
- const seedrandom = seedrandom_ ; // https://github.com/jvandemo/generator-angular2-library/issues/221#issuecomment-355945207
3
+ import seedrandom from 'seedrandom' ;
5
4
6
5
import { ColorTheme , TextMateRuleSettings } from './color_theme' ;
7
6
Original file line number Diff line number Diff line change 13
13
"noUnusedParameters" : true ,
14
14
"noImplicitReturns" : true ,
15
15
"noFallthroughCasesInSwitch" : true ,
16
- "newLine" : " LF"
16
+ "newLine" : " LF" ,
17
+ "esModuleInterop" : true ,
17
18
},
18
19
"exclude" : [
19
20
" node_modules"
You can’t perform that action at this time.
0 commit comments