@gitkraken/core-gitlens 0.70.0 → 0.70.2
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 +15 -1
- package/dist/git/cache.d.ts +9 -0
- package/dist/git/cache.js +14 -0
- package/dist/git/cache.js.map +1 -1
- package/dist/git/providers/status.d.ts +1 -1
- package/dist/git/service.d.ts +2 -2
- package/dist/git/service.js +2 -2
- package/dist/git/service.js.map +1 -1
- package/dist/git/watching/watchService.d.ts +7 -1
- package/dist/git/watching/watchService.js +17 -2
- package/dist/git/watching/watchService.js.map +1 -1
- package/dist/git/watching/worktreeSummary.d.ts +2 -1
- package/dist/git/watching/worktreeSummary.js +1 -1
- package/dist/git/watching/worktreeSummary.js.map +1 -1
- package/dist/git-cli/providers/config.js +2 -2
- 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.js +1 -1
- package/dist/git-cli/providers/status.js +4 -3
- package/dist/git-cli/providers/status.js.map +1 -1
- package/dist/git-cli/service.js +2 -0
- package/dist/git-cli/service.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/integrations/providers/azure/azure.js +1 -1
- package/dist/plus/integrations/providers/github.js +1 -1
- package/dist/utils/env/node/exec.js +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,18 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [0.70.2] - 2026-12-06
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
|
|
13
|
+
- Fixes a subscribed worktree summary with `summaryDirtyFromStatus` reading a full `git status` on every working-tree change, where it used to run `git diff --quiet`, while its working tree isn't reliably watched (a polled or `unreliable` watcher, or one still starting). It can't share the host's status then, so it reads the dirty flag as it does without `summaryDirtyFromStatus` (git)
|
|
14
|
+
|
|
15
|
+
## [0.70.1] - 2026-12-05
|
|
16
|
+
|
|
17
|
+
### Fixed
|
|
18
|
+
|
|
19
|
+
- Fixes `getStatus` with `reuseGeneration` returning an outdated status, possibly forever, for a checkout nothing watches, since nothing advances its status generation. It now reuses a read only while the checkout's working tree and git directory are reliably watched, as answered by the new `Cache.setStatusReuseGate`, which `createCliGitService` sets from the new `WatchService.isWorkingTreeWatched`; with no gate set it always reads. A checkout watched again advances its status generation, so a status read before the gap isn't reused after it: `onDidChangeWorkingTree` also fires as a working tree's watch goes live and reliable (git, git-cli)
|
|
20
|
+
|
|
9
21
|
## [0.70.0] - 2026-12-05
|
|
10
22
|
|
|
11
23
|
### Added
|
|
@@ -1646,7 +1658,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
|
|
|
1646
1658
|
|
|
1647
1659
|
- 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.
|
|
1648
1660
|
|
|
1649
|
-
[unreleased]: https://github.com/gitkraken/vscode-gitlens/compare/releases/core/v0.70.
|
|
1661
|
+
[unreleased]: https://github.com/gitkraken/vscode-gitlens/compare/releases/core/v0.70.2...core
|
|
1662
|
+
[0.70.2]: https://github.com/gitkraken/vscode-gitlens/compare/releases/core/v0.70.1..releases/core/v0.70.2
|
|
1663
|
+
[0.70.1]: https://github.com/gitkraken/vscode-gitlens/compare/releases/core/v0.70.0..releases/core/v0.70.1
|
|
1650
1664
|
[0.70.0]: https://github.com/gitkraken/vscode-gitlens/compare/releases/core/v0.69.0..releases/core/v0.70.0
|
|
1651
1665
|
[0.69.0]: https://github.com/gitkraken/vscode-gitlens/compare/releases/core/v0.68.0..releases/core/v0.69.0
|
|
1652
1666
|
[0.68.0]: https://github.com/gitkraken/vscode-gitlens/compare/releases/core/v0.67.0..releases/core/v0.68.0
|
package/dist/git/cache.d.ts
CHANGED
|
@@ -209,6 +209,7 @@ export declare class Cache implements Disposable {
|
|
|
209
209
|
private _readValidator;
|
|
210
210
|
/** What the read validator reports among {@link getResourceUsage}'s */
|
|
211
211
|
private _readValidatorUsage;
|
|
212
|
+
private _statusReuseGate;
|
|
212
213
|
/** Asked to register a checkout before its first read (see {@link setRepoPathRegistrar}) */
|
|
213
214
|
private _repoPathRegistrar;
|
|
214
215
|
/**
|
|
@@ -231,6 +232,14 @@ export declare class Cache implements Disposable {
|
|
|
231
232
|
* costs among {@link getResourceUsage}'s.
|
|
232
233
|
*/
|
|
233
234
|
setReadValidator(validator: ((repoPath: string) => Promise<void> | undefined) | undefined, getResourceUsage?: () => ResourceUsage): void;
|
|
235
|
+
/**
|
|
236
|
+
* Registers what answers whether a checkout's status clock advances on every change to it, so a `reuseGeneration`
|
|
237
|
+
* status read can be answered from an earlier one (see {@link canReuseStatus}). `undefined` removes it. Kept across
|
|
238
|
+
* {@link reset}: it is host wiring, not cached state.
|
|
239
|
+
*/
|
|
240
|
+
setStatusReuseGate(gate: ((repoPath: string) => boolean) | undefined): void;
|
|
241
|
+
/** Whether a `reuseGeneration` status read of `repoPath` may reuse a settled one; `false` with no gate set */
|
|
242
|
+
canReuseStatus(repoPath: string): boolean;
|
|
234
243
|
/** Whether a read validator is set (see {@link setReadValidator}), so the host keeps the caches it covers current */
|
|
235
244
|
get readsAreValidated(): boolean;
|
|
236
245
|
/**
|
package/dist/git/cache.js
CHANGED
|
@@ -337,6 +337,7 @@ var Cache = class Cache {
|
|
|
337
337
|
_readValidator;
|
|
338
338
|
/** What the read validator reports among {@link getResourceUsage}'s */
|
|
339
339
|
_readValidatorUsage;
|
|
340
|
+
_statusReuseGate;
|
|
340
341
|
/** Asked to register a checkout before its first read (see {@link setRepoPathRegistrar}) */
|
|
341
342
|
_repoPathRegistrar;
|
|
342
343
|
/**
|
|
@@ -351,6 +352,7 @@ var Cache = class Cache {
|
|
|
351
352
|
this.reset();
|
|
352
353
|
this._readValidator = void 0;
|
|
353
354
|
this._readValidatorUsage = void 0;
|
|
355
|
+
this._statusReuseGate = void 0;
|
|
354
356
|
this._repoPathRegistrar = void 0;
|
|
355
357
|
this._onDidChangeMergeTargets.dispose();
|
|
356
358
|
this._onDidUnregisterRepoPath.dispose();
|
|
@@ -372,6 +374,18 @@ var Cache = class Cache {
|
|
|
372
374
|
this._readValidator = validator;
|
|
373
375
|
this._readValidatorUsage = validator != null ? getResourceUsage : void 0;
|
|
374
376
|
}
|
|
377
|
+
/**
|
|
378
|
+
* Registers what answers whether a checkout's status clock advances on every change to it, so a `reuseGeneration`
|
|
379
|
+
* status read can be answered from an earlier one (see {@link canReuseStatus}). `undefined` removes it. Kept across
|
|
380
|
+
* {@link reset}: it is host wiring, not cached state.
|
|
381
|
+
*/
|
|
382
|
+
setStatusReuseGate(gate) {
|
|
383
|
+
this._statusReuseGate = gate;
|
|
384
|
+
}
|
|
385
|
+
/** Whether a `reuseGeneration` status read of `repoPath` may reuse a settled one; `false` with no gate set */
|
|
386
|
+
canReuseStatus(repoPath) {
|
|
387
|
+
return this._statusReuseGate?.(repoPath) ?? false;
|
|
388
|
+
}
|
|
375
389
|
/** Whether a read validator is set (see {@link setReadValidator}), so the host keeps the caches it covers current */
|
|
376
390
|
get readsAreValidated() {
|
|
377
391
|
return this._readValidator != null;
|