File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change 11'use strict' ;
22import { Range } from 'vscode' ;
3- import { GitHubService } from './github ' ;
3+ import { RemoteProvider } from './provider ' ;
44
5- export class GitLabService extends GitHubService {
5+ export class GitLabService extends RemoteProvider {
66
77 constructor ( public domain : string , public path : string , public custom : boolean = false ) {
88 super ( domain , path ) ;
@@ -12,6 +12,18 @@ export class GitLabService extends GitHubService {
1212 return this . formatName ( 'GitLab' ) ;
1313 }
1414
15+ protected getUrlForBranches ( ) : string {
16+ return `${ this . baseUrl } /branches` ;
17+ }
18+
19+ protected getUrlForBranch ( branch : string ) : string {
20+ return `${ this . baseUrl } /commits/${ branch } ` ;
21+ }
22+
23+ protected getUrlForCommit ( sha : string ) : string {
24+ return `${ this . baseUrl } /commit/${ sha } ` ;
25+ }
26+
1527 protected getUrlForFile ( fileName : string , branch ?: string , sha ?: string , range ?: Range ) : string {
1628 let line = '' ;
1729 if ( range ) {
You can’t perform that action at this time.
0 commit comments