You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -178,7 +178,7 @@ GitLens provides an unobtrusive blame annotation at the end of the current line,
178
178
179
179
- Adds a `Search Commits` command (`gitlens.showCommitSearch`) with a shortcut of `alt+/` to search for commits by message, author, file(s), or commit id
180
180
181
-
- Adds commands to open files, commits, branches, and the repository in the supported remote services, currently **BitBucket, GitHub, GitLab, and Visual Studio Team Services** — only available if a Git upstream service is configured in the repository
181
+
- Adds commands to open files, commits, branches, and the repository in the supported remote services, **BitBucket, GitHub, GitLab, and Visual Studio Team Services** or a [**user-defined** remote services](#custom-remotes-settings) — only available if a Git upstream service is configured in the repository
182
182
- Also supports [remote services with custom domains](#custom-remotes-settings), such as **BitBucket, Bitbucket Server (previously called Stash), GitHub, GitHub Enterprise, GitLab**
183
183
-`Open Branches in Remote` command (`gitlens.openBranchesInRemote`) — opens the branches in the supported remote service
184
184
-`Open Branch in Remote` command (`gitlens.openBranchInRemote`) — opens the current branch commits in the supported remote service
@@ -371,7 +371,7 @@ GitLens is highly customizable and provides many configuration settings to allow
371
371
372
372
|Name | Description
373
373
|-----|------------
374
-
|`gitlens.remotes`|Specifies any custom domains for remote (code-hosting) services<br />Example:```"gitlens.remotes": [{ "domain": "git.corporate-url.com", "type": "GitHub" }]```
Copy file name to clipboardExpand all lines: package.json
+60-2Lines changed: 60 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -498,6 +498,7 @@
498
498
"enum": [
499
499
"Bitbucket",
500
500
"BitbucketServer",
501
+
"Custom",
501
502
"GitHub",
502
503
"GitLab"
503
504
],
@@ -506,11 +507,68 @@
506
507
"domain": {
507
508
"type": "string",
508
509
"description": "Specifies the domain name of the custom remote service"
509
-
}
510
+
},
511
+
"name": {
512
+
"type": "string",
513
+
"description": "Specifies an optional friendly name for the custom remote service"
514
+
},
515
+
"urls": {
516
+
"type": "object",
517
+
"required": [
518
+
"repository",
519
+
"branches",
520
+
"branch",
521
+
"commit",
522
+
"file",
523
+
"fileInCommit",
524
+
"fileInBranch",
525
+
"fileLine",
526
+
"fileRange"
527
+
],
528
+
"properties": {
529
+
"repository": {
530
+
"type": "string",
531
+
"description": "Specifies the format of a respository url for the custom remote service\nAvailable tokens\n ${repo} - repository path"
532
+
},
533
+
"branches": {
534
+
"type": "string",
535
+
"description": "Specifies the format of a branches url for the custom remote service\nAvailable tokens\n ${repo} - repository path\n ${branch} - branch"
536
+
},
537
+
"branch": {
538
+
"type": "string",
539
+
"description": "Specifies the format of a branch url for the custom remote service\nAvailable tokens\n ${repo} - repository path\n ${branch} - branch"
540
+
},
541
+
"commit": {
542
+
"type": "string",
543
+
"description": "Specifies the format of a commit url for the custom remote service\nAvailable tokens\n ${repo} - repository path\n ${id} - commit id"
544
+
},
545
+
"file": {
546
+
"type": "string",
547
+
"description": "Specifies the format of a file url for the custom remote service\nAvailable tokens\n ${repo} - repository path\n ${file} - file name\n ${line} - formatted line information"
548
+
},
549
+
"fileInBranch": {
550
+
"type": "string",
551
+
"description": "Specifies the format of a branch file url for the custom remote service\nAvailable tokens\n ${repo} - repository path\n ${file} - file name\n ${branch} - branch\n ${line} - formatted line information"
552
+
},
553
+
"fileInCommit": {
554
+
"type": "string",
555
+
"description": "Specifies the format of a commit file url for the custom remote service\nAvailable tokens\n ${repo} - repository path\n ${file} - file name\n ${id} - commit id\n ${line} - formatted line information"
556
+
},
557
+
"fileLine": {
558
+
"type": "string",
559
+
"description": "Specifies the format of a line in a file url for the custom remote service\nAvailable tokens\n ${line} - line"
560
+
},
561
+
"fileRange": {
562
+
"type": "string",
563
+
"description": "Specifies the format of a range in a file url for the custom remote service\nAvailable tokens\n ${start} - starting line\n ${end} - ending line"
564
+
}
565
+
}
566
+
},
567
+
"description": "Specifies the url formats of the custom remote service"
510
568
}
511
569
},
512
570
"uniqueItems": true,
513
-
"description": "Specifies any custom domains for remote (code-hosting) services"
571
+
"description": "Specifies user-defined remote (code-hosting) services or custom domains for built-in remote services"
0 commit comments