mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-02-17 02:51:47 -05:00
Apply Review Comments.
This commit is contained in:
committed by
Eric Amodio
parent
6d7f44e091
commit
04ea3b7971
@@ -1,8 +1,8 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
import { Range } from 'vscode';
|
import { Range } from 'vscode';
|
||||||
import { GitHubService } from './github';
|
import { RemoteProvider } from './provider';
|
||||||
|
|
||||||
export class GitLabService extends GitHubService {
|
export class GitLabService extends RemoteProvider {
|
||||||
|
|
||||||
constructor(public domain: string, public path: string, public custom: boolean = false) {
|
constructor(public domain: string, public path: string, public custom: boolean = false) {
|
||||||
super(domain, path);
|
super(domain, path);
|
||||||
@@ -12,6 +12,18 @@ export class GitLabService extends GitHubService {
|
|||||||
return this.formatName('GitLab');
|
return this.formatName('GitLab');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected getUrlForBranches(): string {
|
||||||
|
return `${this.baseUrl}/branches`;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected getUrlForBranch(branch: string): string {
|
||||||
|
return `${this.baseUrl}/commits/${branch}`;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected getUrlForCommit(sha: string): string {
|
||||||
|
return `${this.baseUrl}/commit/${sha}`;
|
||||||
|
}
|
||||||
|
|
||||||
protected getUrlForFile(fileName: string, branch?: string, sha?: string, range?: Range): string {
|
protected getUrlForFile(fileName: string, branch?: string, sha?: string, range?: Range): string {
|
||||||
let line = '';
|
let line = '';
|
||||||
if (range) {
|
if (range) {
|
||||||
|
|||||||
Reference in New Issue
Block a user