@gitkraken/core-gitlens 0.11.0 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +41 -1
- package/dist/git/cache.js +2 -0
- package/dist/git/cache.js.map +1 -1
- package/dist/git/models/issue.d.ts +3 -1
- package/dist/git/models/issue.js.map +1 -1
- package/dist/git/providers/branches.d.ts +4 -2
- package/dist/git/utils/issue.utils.d.ts +3 -1
- package/dist/git/utils/issue.utils.js +5 -1
- package/dist/git/utils/issue.utils.js.map +1 -1
- package/dist/git/watching/worktreeSummary.d.ts +20 -9
- package/dist/git/watching/worktreeSummary.js +24 -22
- package/dist/git/watching/worktreeSummary.js.map +1 -1
- package/dist/git-cli/providers/branches.js +26 -4
- package/dist/git-cli/providers/branches.js.map +1 -1
- package/dist/plus/integrations/models/gitHostIntegration.js +3 -1
- package/dist/plus/integrations/models/gitHostIntegration.js.map +1 -1
- package/dist/plus/integrations/models/integration.js +1 -1
- package/dist/plus/integrations/providers/azure/azure.js +3 -2
- package/dist/plus/integrations/providers/azure/azure.js.map +1 -1
- package/dist/plus/integrations/providers/azure/models.d.ts +27 -10
- package/dist/plus/integrations/providers/azure/models.js +39 -19
- package/dist/plus/integrations/providers/azure/models.js.map +1 -1
- package/dist/plus/integrations/providers/azure/workItemStateCategories.d.ts +19 -0
- package/dist/plus/integrations/providers/azure/workItemStateCategories.js +32 -0
- package/dist/plus/integrations/providers/azure/workItemStateCategories.js.map +1 -0
- package/dist/plus/integrations/providers/azureDevOps.js +5 -5
- package/dist/plus/integrations/providers/azureDevOps.js.map +1 -1
- package/dist/plus/integrations/providers/issueSorts.d.ts +0 -1
- package/dist/plus/integrations/providers/jira-server.js +11 -5
- package/dist/plus/integrations/providers/jira-server.js.map +1 -1
- package/dist/plus/integrations/providers/jira.d.ts +5 -2
- package/dist/plus/integrations/providers/jira.js +45 -30
- package/dist/plus/integrations/providers/jira.js.map +1 -1
- package/dist/plus/integrations/providers/jiraIssueByKey.d.ts +3 -4
- package/dist/plus/integrations/providers/jiraIssueByKey.js +3 -4
- package/dist/plus/integrations/providers/jiraIssueByKey.js.map +1 -1
- package/dist/plus/integrations/providers/linearIssuesEtag.d.ts +5 -5
- package/dist/plus/integrations/providers/linearIssuesEtag.js +6 -6
- package/dist/plus/integrations/providers/linearIssuesEtag.js.map +1 -1
- package/dist/plus/integrations/providers/models.d.ts +11 -1
- package/dist/plus/integrations/providers/models.js +9 -9
- package/dist/plus/integrations/providers/models.js.map +1 -1
- package/dist/plus/integrations/providers/providersApi.d.ts +30 -32
- package/dist/plus/integrations/providers/providersApi.js +149 -46
- package/dist/plus/integrations/providers/providersApi.js.map +1 -1
- package/dist/plus/integrations/providers/utils/jiraIssueDrains.d.ts +27 -15
- package/dist/plus/integrations/providers/utils/jiraIssueDrains.js +72 -10
- package/dist/plus/integrations/providers/utils/jiraIssueDrains.js.map +1 -1
- package/dist/plus/integrations/reads/batchEtags.d.ts +5 -2
- package/dist/plus/integrations/reads/batchEtags.js +31 -10
- package/dist/plus/integrations/reads/batchEtags.js.map +1 -1
- package/dist/plus/integrations/reads/cursors.js +1 -1
- package/dist/plus/integrations/reads/drains.d.ts +0 -1
- package/dist/plus/integrations/reads/hierarchy.js +2 -2
- package/dist/plus/integrations/reads/hierarchy.js.map +1 -1
- package/dist/plus/integrations/reads/hierarchy.utils.d.ts +13 -0
- package/dist/plus/integrations/reads/hierarchy.utils.js +26 -1
- package/dist/plus/integrations/reads/hierarchy.utils.js.map +1 -1
- package/dist/plus/integrations/reads/issueTracker.js +4 -4
- package/dist/plus/integrations/reads/issueTracker.js.map +1 -1
- package/dist/plus/integrations/reads/issues.js +1 -1
- package/dist/plus/integrations/reads/pullRequestBranches.js +10 -3
- package/dist/plus/integrations/reads/pullRequestBranches.js.map +1 -1
- package/dist/plus/integrations/results.d.ts +28 -3
- package/dist/plus/integrations/results.js +22 -3
- package/dist/plus/integrations/results.js.map +1 -1
- package/dist/plus/integrations/utils/integration.utils.d.ts +6 -1
- package/dist/plus/integrations/utils/integration.utils.js +8 -1
- package/dist/plus/integrations/utils/integration.utils.js.map +1 -1
- package/docs/integrations.md +54 -19
- package/package.json +2 -2
|
@@ -1001,7 +1001,9 @@ var BranchesGitSubProvider = class {
|
|
|
1001
1001
|
dependsOn: [...dependsOn]
|
|
1002
1002
|
};
|
|
1003
1003
|
const range = createRevisionRange(target, "HEAD", "...");
|
|
1004
|
-
|
|
1004
|
+
const [countsResult, refsResult] = await Promise.allSettled([this.provider.commits.getLeftRightCommitCount(repoPath, range, void 0, cancellation), this.provider.refs.getRefs(repoPath, cancellation)]);
|
|
1005
|
+
if (cancellation?.aborted) throw new CancellationError();
|
|
1006
|
+
let counts = getSettledValue(countsResult);
|
|
1005
1007
|
if (counts == null) try {
|
|
1006
1008
|
counts = await this.getLeftRightCountUncached(repoPath, range, cancellation);
|
|
1007
1009
|
} catch (ex) {
|
|
@@ -1015,7 +1017,8 @@ var BranchesGitSubProvider = class {
|
|
|
1015
1017
|
return {
|
|
1016
1018
|
base: {
|
|
1017
1019
|
ref: target,
|
|
1018
|
-
ahead: counts.right
|
|
1020
|
+
ahead: counts.right,
|
|
1021
|
+
sha: findRefTip(getSettledValue(refsResult, []), target)
|
|
1019
1022
|
},
|
|
1020
1023
|
dependsOn: [...dependsOn]
|
|
1021
1024
|
};
|
|
@@ -1346,14 +1349,33 @@ __decorate([debug()], BranchesGitSubProvider.prototype, "storeBaseBranchName", n
|
|
|
1346
1349
|
__decorate([debug()], BranchesGitSubProvider.prototype, "storeMergeTargetBranchName", null);
|
|
1347
1350
|
__decorate([debug()], BranchesGitSubProvider.prototype, "storeUserMergeTargetBranchName", null);
|
|
1348
1351
|
/**
|
|
1349
|
-
*
|
|
1350
|
-
*
|
|
1352
|
+
* The commit `name` resolves to among `records`, tried in git's own order for a short name (`refs/tags/` before
|
|
1353
|
+
* `refs/heads/` before `refs/remotes/`); annotated tags peel to their commit. `undefined` when no listed ref matches.
|
|
1354
|
+
*/
|
|
1355
|
+
function findRefTip(records, name) {
|
|
1356
|
+
for (const candidate of [
|
|
1357
|
+
name,
|
|
1358
|
+
`refs/${name}`,
|
|
1359
|
+
`refs/tags/${name}`,
|
|
1360
|
+
`refs/heads/${name}`,
|
|
1361
|
+
`refs/remotes/${name}`,
|
|
1362
|
+
`refs/remotes/${name}/HEAD`
|
|
1363
|
+
]) {
|
|
1364
|
+
const record = records.find((r) => r.name === candidate);
|
|
1365
|
+
if (record != null) return record.peeledObjectname || record.objectname;
|
|
1366
|
+
}
|
|
1367
|
+
}
|
|
1368
|
+
/**
|
|
1369
|
+
* Adds the full ref names a `.git/refs` watcher would report for `name`. A short name can't be told tag from local
|
|
1370
|
+
* from remote without a spawn, so it adds every form, including the tag git resolves it to first; a spurious one
|
|
1371
|
+
* only costs a recompute.
|
|
1351
1372
|
*/
|
|
1352
1373
|
function addRefDependencies(dependsOn, name) {
|
|
1353
1374
|
if (name.startsWith("refs/")) {
|
|
1354
1375
|
dependsOn.add(name);
|
|
1355
1376
|
return;
|
|
1356
1377
|
}
|
|
1378
|
+
dependsOn.add(`refs/tags/${name}`);
|
|
1357
1379
|
dependsOn.add(`refs/heads/${name}`);
|
|
1358
1380
|
dependsOn.add(`refs/remotes/${name}`);
|
|
1359
1381
|
}
|