@gitkraken/core-gitlens 0.61.1 → 0.63.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 +22 -1
- package/dist/git/cache.d.ts +1 -0
- package/dist/git/cache.js +11 -0
- package/dist/git/cache.js.map +1 -1
- package/dist/git/errors.d.ts +15 -0
- package/dist/git/errors.js +9 -1
- package/dist/git/errors.js.map +1 -1
- package/dist/git/models/pullRequest.d.ts +3 -0
- package/dist/git/models/pullRequest.js.map +1 -1
- package/dist/git/providers/operations.d.ts +4 -3
- package/dist/git/providers/staging.d.ts +16 -8
- package/dist/git/run.types.d.ts +6 -0
- package/dist/git/service.js +6 -0
- package/dist/git/service.js.map +1 -1
- package/dist/git/utils/hiddenRefs.utils.d.ts +15 -0
- package/dist/git/utils/hiddenRefs.utils.js +68 -2
- package/dist/git/utils/hiddenRefs.utils.js.map +1 -1
- package/dist/git/utils/pullRequest.utils.d.ts +3 -6
- package/dist/git/utils/pullRequest.utils.js +6 -7
- package/dist/git/utils/pullRequest.utils.js.map +1 -1
- package/dist/git/watching/gitIgnoreFilter.d.ts +12 -5
- package/dist/git/watching/gitIgnoreFilter.js +26 -32
- package/dist/git/watching/gitIgnoreFilter.js.map +1 -1
- package/dist/git/watching/provider.d.ts +18 -3
- package/dist/git/watching/watchGroup.d.ts +7 -2
- package/dist/git/watching/watchGroup.js +51 -3
- package/dist/git/watching/watchGroup.js.map +1 -1
- package/dist/git/watching/watchService.d.ts +16 -2
- package/dist/git/watching/watchService.js +210 -88
- package/dist/git/watching/watchService.js.map +1 -1
- package/dist/git/watching/watcherPatterns.d.ts +1 -1
- package/dist/git/watching/watcherPatterns.js +11 -5
- package/dist/git/watching/watcherPatterns.js.map +1 -1
- package/dist/git-cli/cliGitProvider.d.ts +3 -6
- package/dist/git-cli/cliGitProvider.js +144 -38
- package/dist/git-cli/cliGitProvider.js.map +1 -1
- package/dist/git-cli/exec/git.js +4 -4
- package/dist/git-cli/exec/git.js.map +1 -1
- package/dist/git-cli/exec/indexLock.d.ts +7 -5
- package/dist/git-cli/exec/indexLock.js +19 -15
- package/dist/git-cli/exec/indexLock.js.map +1 -1
- package/dist/git-cli/providers/config.d.ts +1 -0
- package/dist/git-cli/providers/config.js +15 -5
- package/dist/git-cli/providers/config.js.map +1 -1
- package/dist/git-cli/providers/pausedOperations.js +2 -2
- package/dist/git-cli/providers/pausedOperations.js.map +1 -1
- package/dist/git-cli/providers/staging.d.ts +8 -8
- package/dist/git-cli/providers/staging.js +120 -25
- package/dist/git-cli/providers/staging.js.map +1 -1
- package/dist/ipc/discovery.js +1 -1
- package/dist/plus/agents/providers/claudeCodeTranscript.js +6 -6
- package/dist/plus/agents/providers/claudeCodeTranscript.js.map +1 -1
- package/dist/plus/ai/providers/openAICompatibleProviderBase.js +1 -1
- package/dist/plus/git-github/api/config.d.ts +5 -0
- package/dist/plus/git-github/api/config.js.map +1 -1
- package/dist/plus/git-github/api/github.js +24 -4
- package/dist/plus/git-github/api/github.js.map +1 -1
- package/dist/plus/git-github/models.d.ts +12 -0
- package/dist/plus/git-github/models.js +8 -3
- package/dist/plus/git-github/models.js.map +1 -1
- package/dist/plus/integrations/context.d.ts +5 -0
- package/dist/plus/integrations/providers/azure/azure.js +1 -1
- package/dist/plus/integrations/providers/github.js +7 -3
- package/dist/plus/integrations/providers/github.js.map +1 -1
- package/dist/plus/integrations/reads/etag.d.ts +5 -0
- package/dist/plus/integrations/reads/etag.js +2 -0
- package/dist/plus/integrations/reads/etag.js.map +1 -1
- package/dist/utils/env/node/exec.d.ts +2 -0
- package/dist/utils/env/node/exec.js +4 -2
- package/dist/utils/env/node/exec.js.map +1 -1
- package/docs/integrations.md +9 -9
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,25 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [0.63.0] - 2026-12-03
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
- Allows a native filesystem watcher to prune ignored files while preserving tracked edits. Providers opt in with `supportsTrackedGitIgnorePaths` and receive checkout-relative `protectedPaths` alongside `protectedDirectories`. Providers observe `configWatchPaths` for changes to system and global Git configuration, including creation of a config file. Providers also report newly discovered nested `.gitignore` files or signal overflow. Core requires live checkout and common metadata watches, verifies delivered ignore matches against the checkout index when a checker is available, delivers potential tracked edits when no checker is available, and rescans when protection changes ([#6454](https://github.com/gitkraken/vscode-gitlens/issues/6454)).
|
|
14
|
+
|
|
15
|
+
- Adds `PullRequestStackInfo.mergedLayers` — how many of a stack's layers have already merged, since GitHub keeps merged layers in the stack's `size` at their positions. `getStackedMergeCount` now subtracts it, so a layer whose lower layers merged counts only what its merge still lands. The repository stacks read always sets it; GitHub.com GraphQL reads set it only for a host that opts in with `getPullRequestReadOptions()` answering `stackMergedLayers: true` (one more connection per pull request read, a rate-limit point per 100 rows), and with it the pull request etag includes the merged layers, so a held row whose lower layers merge reads as changed; otherwise it is `undefined` and counts are as before (git, plus/git-github, plus/integrations)
|
|
16
|
+
- Adds `indexLockWait: 'extended'` to `GitRunOptions` and `GitOperationRunOptions`, which keeps retrying a write that finds `index.lock` held by another process for about 3s instead of 0.7s, for a write the user started and is waiting on. The staging writes (`stageFile`, `stageFiles`, `stageDirectory`, `unstageFile`, `unstageFiles`, `unstageDirectory`, `stageAll`, `unstageAll`) now take run options (git, git-cli) ([#6352](https://github.com/gitkraken/vscode-gitlens/issues/6352))
|
|
17
|
+
|
|
18
|
+
### Changed
|
|
19
|
+
|
|
20
|
+
- **Breaking (git, git-cli)** — The staging writes (`stageFile`, `stageFiles`, `stageDirectory`, `unstageFile`, `unstageFiles`, `unstageDirectory`, `stageAll`, `unstageAll`) reject with a `StageError` (reason `'indexLocked'`, with `action` saying stage or unstage) when another process still held `index.lock` after the wait, where they rejected with git-cli's `GitError`; git's error stays on `.original`. Every other failure rejects as before, and a cancellation or a rejecting `beforeIndexLockRetry` still rejects as thrown ([#6352](https://github.com/gitkraken/vscode-gitlens/issues/6352))
|
|
21
|
+
|
|
22
|
+
## [0.62.0] - 2026-12-03
|
|
23
|
+
|
|
24
|
+
### Fixed
|
|
25
|
+
|
|
26
|
+
- Preserves working-tree change notifications for tracked files that match Git ignore rules. For Git CLI checkouts, watchers keep these paths observable and confirm ignore matches against the index before filtering events ([#6466](https://github.com/gitkraken/vscode-gitlens/issues/6466)).
|
|
27
|
+
|
|
9
28
|
## [0.61.1] - 2026-12-03
|
|
10
29
|
|
|
11
30
|
### Changed
|
|
@@ -1561,7 +1580,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
|
|
|
1561
1580
|
|
|
1562
1581
|
- Initial release. Bundles `@gitlens/utils`, `@gitlens/git`, `@gitlens/git-cli`, `@gitlens/ai`, and `@gitlens/git-github` into a single core npm package with subpath exports.
|
|
1563
1582
|
|
|
1564
|
-
[unreleased]: https://github.com/gitkraken/vscode-gitlens/compare/releases/core/v0.
|
|
1583
|
+
[unreleased]: https://github.com/gitkraken/vscode-gitlens/compare/releases/core/v0.63.0...core
|
|
1584
|
+
[0.63.0]: https://github.com/gitkraken/vscode-gitlens/compare/releases/core/v0.62.0..releases/core/v0.63.0
|
|
1585
|
+
[0.62.0]: https://github.com/gitkraken/vscode-gitlens/compare/releases/core/v0.61.1..releases/core/v0.62.0
|
|
1565
1586
|
[0.61.1]: https://github.com/gitkraken/vscode-gitlens/compare/releases/core/v0.61.0..releases/core/v0.61.1
|
|
1566
1587
|
[0.61.0]: https://github.com/gitkraken/vscode-gitlens/compare/releases/core/v0.60.1..releases/core/v0.61.0
|
|
1567
1588
|
[0.60.1]: https://github.com/gitkraken/vscode-gitlens/compare/releases/core/v0.60.0..releases/core/v0.60.1
|
package/dist/git/cache.d.ts
CHANGED
|
@@ -605,6 +605,7 @@ export declare class Cache implements Disposable {
|
|
|
605
605
|
getConfig(repoPath: string | undefined, key: string, factory: () => PromiseOrValue<string | undefined>): Promise<string | undefined>;
|
|
606
606
|
/** Keyed by `repoPath` itself, as {@link getConfig} is */
|
|
607
607
|
getConfigRegex(repoPath: string | undefined, pattern: string, factory: () => PromiseOrValue<Map<string, string>>): Promise<Map<string, string>>;
|
|
608
|
+
deleteIgnoreConfig(repoPath?: string): void;
|
|
608
609
|
deleteConfig(repoPath: string | undefined, key: string): void;
|
|
609
610
|
/**
|
|
610
611
|
* The whole `.git/gk/config` is read once and cached as a single map per commonPath; per-key and
|
package/dist/git/cache.js
CHANGED
|
@@ -1541,6 +1541,17 @@ var Cache = class Cache {
|
|
|
1541
1541
|
this.configPatterns.set(cacheKey, pattern, factoryPromise);
|
|
1542
1542
|
return factoryPromise;
|
|
1543
1543
|
}
|
|
1544
|
+
deleteIgnoreConfig(repoPath) {
|
|
1545
|
+
if (repoPath == null) {
|
|
1546
|
+
this._caches.ignoreConfigListing?.clear();
|
|
1547
|
+
this._caches.configKeys?.clear();
|
|
1548
|
+
this._caches.configPatterns?.clear();
|
|
1549
|
+
return;
|
|
1550
|
+
}
|
|
1551
|
+
this._caches.ignoreConfigListing?.delete(this.getCommonPath(repoPath));
|
|
1552
|
+
this.deleteConfig(repoPath, "core.excludesFile");
|
|
1553
|
+
this.deleteConfig(repoPath, "core.ignorecase");
|
|
1554
|
+
}
|
|
1544
1555
|
deleteConfig(repoPath, key) {
|
|
1545
1556
|
if (repoPath == null) {
|
|
1546
1557
|
this._caches.configKeys?.delete(Cache.globalConfigKey, key);
|