@@ -15,34 +15,34 @@ export class CustomService extends RemoteProvider {
15
15
}
16
16
17
17
protected getUrlForRepository ( ) : string {
18
- return Strings . interpolate ( this . config . custom ! . repository , { repo : this . path } ) ;
18
+ return Strings . interpolate ( this . config . urls ! . repository , { repo : this . path } ) ;
19
19
}
20
20
21
21
protected getUrlForBranches ( ) : string {
22
- return Strings . interpolate ( this . config . custom ! . branches , { repo : this . path } ) ;
22
+ return Strings . interpolate ( this . config . urls ! . branches , { repo : this . path } ) ;
23
23
}
24
24
25
25
protected getUrlForBranch ( branch : string ) : string {
26
- return Strings . interpolate ( this . config . custom ! . branch , { repo : this . path , branch : branch } ) ;
26
+ return Strings . interpolate ( this . config . urls ! . branch , { repo : this . path , branch : branch } ) ;
27
27
}
28
28
29
29
protected getUrlForCommit ( sha : string ) : string {
30
- return Strings . interpolate ( this . config . custom ! . commit , { repo : this . path , id : sha } ) ;
30
+ return Strings . interpolate ( this . config . urls ! . commit , { repo : this . path , id : sha } ) ;
31
31
}
32
32
33
33
protected getUrlForFile ( fileName : string , branch ?: string , sha ?: string , range ?: Range ) : string {
34
34
let line = '' ;
35
35
if ( range ) {
36
36
if ( range . start . line === range . end . line ) {
37
- line = Strings . interpolate ( this . config . custom ! . fileLine , { line : range . start . line } ) ;
37
+ line = Strings . interpolate ( this . config . urls ! . fileLine , { line : range . start . line } ) ;
38
38
}
39
39
else {
40
- line = Strings . interpolate ( this . config . custom ! . fileRange , { start : range . start . line , end : range . end . line } ) ;
40
+ line = Strings . interpolate ( this . config . urls ! . fileRange , { start : range . start . line , end : range . end . line } ) ;
41
41
}
42
42
}
43
43
44
- if ( sha ) return Strings . interpolate ( this . config . custom ! . fileInCommit , { repo : this . path , id : sha , file : fileName , line : line } ) ;
45
- if ( branch ) return Strings . interpolate ( this . config . custom ! . fileInBranch , { repo : this . path , branch : branch , file : fileName , line : line } ) ;
46
- return Strings . interpolate ( this . config . custom ! . file , { repo : this . path , file : fileName , line : line } ) ;
44
+ if ( sha ) return Strings . interpolate ( this . config . urls ! . fileInCommit , { repo : this . path , id : sha , file : fileName , line : line } ) ;
45
+ if ( branch ) return Strings . interpolate ( this . config . urls ! . fileInBranch , { repo : this . path , branch : branch , file : fileName , line : line } ) ;
46
+ return Strings . interpolate ( this . config . urls ! . file , { repo : this . path , file : fileName , line : line } ) ;
47
47
}
48
48
}
0 commit comments