@gitkraken/core-gitlens 0.47.0 → 0.49.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.
Files changed (42) hide show
  1. package/CHANGELOG.md +30 -1
  2. package/dist/git/cache.d.ts +4 -0
  3. package/dist/git/cache.js +12 -0
  4. package/dist/git/cache.js.map +1 -1
  5. package/dist/git/providers/config.d.ts +3 -2
  6. package/dist/git-cli/cliGitProvider.d.ts +2 -0
  7. package/dist/git-cli/cliGitProvider.js +6 -0
  8. package/dist/git-cli/cliGitProvider.js.map +1 -1
  9. package/dist/git-cli/providers/branches.js +8 -4
  10. package/dist/git-cli/providers/branches.js.map +1 -1
  11. package/dist/git-cli/providers/config.d.ts +10 -6
  12. package/dist/git-cli/providers/config.js +48 -13
  13. package/dist/git-cli/providers/config.js.map +1 -1
  14. package/dist/git-cli/providers/pausedOperations.js +2 -2
  15. package/dist/git-cli/providers/pausedOperations.js.map +1 -1
  16. package/dist/git-cli/providers/staging.js +1 -1
  17. package/dist/ipc/discovery.js +1 -1
  18. package/dist/plus/agents/providers/claudeCodeTranscript.js +6 -6
  19. package/dist/plus/agents/providers/claudeCodeTranscript.js.map +1 -1
  20. package/dist/plus/ai/providers/anthropicProvider.js +0 -20
  21. package/dist/plus/ai/providers/anthropicProvider.js.map +1 -1
  22. package/dist/plus/ai/providers/openAICompatibleProviderBase.js +1 -1
  23. package/dist/plus/integrations/models/publicIntegration.d.ts +0 -1
  24. package/dist/plus/integrations/providers/azure/azure.js +1 -1
  25. package/dist/plus/integrations/providers/issueSorts.d.ts +0 -1
  26. package/dist/plus/integrations/reads/drains.d.ts +0 -1
  27. package/dist/utils/date.d.ts +1 -0
  28. package/dist/utils/date.js +10 -1
  29. package/dist/utils/date.js.map +1 -1
  30. package/dist/utils/env/node/exec.js +2 -2
  31. package/dist/utils/keys/keymapDispatcher.d.ts +12 -0
  32. package/dist/utils/keys/keymapDispatcher.js +41 -1
  33. package/dist/utils/keys/keymapDispatcher.js.map +1 -1
  34. package/dist/utils/pausedOperation.js +48 -16
  35. package/dist/utils/pausedOperation.js.map +1 -1
  36. package/dist/utils/plural.d.ts +1 -0
  37. package/dist/utils/plural.js +7 -2
  38. package/dist/utils/plural.js.map +1 -1
  39. package/dist/utils/wheel.d.ts +8 -0
  40. package/dist/utils/wheel.js +12 -0
  41. package/dist/utils/wheel.js.map +1 -0
  42. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -6,6 +6,32 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.49.0] - 2026-11-25
10
+
11
+ ### Fixed
12
+
13
+ - Saves the git dirs `getRepositoryInfo` finds, which it didn't before, skipping the save when a repository at the path read or any of its parents was closed during the lookup. A host that saved them itself can drop that save, which kept the old repository's git dirs for a path re-created as another repository's checkout (git-cli)
14
+ - Drops the git runs in flight for a repository when it is closed, and every run in flight when the cache is reset, so a lookup made after either starts its own run instead of joining one that started before it and getting the old answer. `Cache` now fires `onDidUnregisterRepoPath` and `onDidReset`, which `CliGitProvider` listens to (git, git-cli)
15
+ - Rejects `getGitDir` when its path is closed while the git dir is read, instead of answering the old repository's git dir without caching it. This is a contract change: a caller that awaits it without a catch now sees the rejection (git-cli)
16
+ - Lists each `KeymapDispatcher.sheetEntries` row once when several registrars register the same bindings on one dispatcher (utils)
17
+
18
+ ## [0.48.0] - 2026-11-24
19
+
20
+ ### Added
21
+
22
+ - Adds `createRegistrar` to `KeymapDispatcher`, a handle whose scopes, bindings and overlays live under scope names private to it and are all removed by its `dispose`, and a `root` option that leaves keydowns from outside that element alone (utils)
23
+ - Adds `msUntilFromNowChanges` to `utils/date.js`, the time until `fromNow` reads differently; `getPluralLocale` to `utils/plural.js`; and `utils/wheel.js` with `normalizeWheelDelta` (utils)
24
+
25
+ ### Changed
26
+
27
+ - `pausedOperationStatusStringsByType` translates its labels when they are read instead of at import, so they follow a translator configured after load (utils)
28
+
29
+ ## [0.47.1] - 2026-11-24
30
+
31
+ ### Fixed
32
+
33
+ - Reports absent refs and unrelated histories as typed conflict detection errors when Git cannot run a merge-tree check (git-cli)
34
+
9
35
  ## [0.47.0] - 2026-11-24
10
36
 
11
37
  ### Added
@@ -1428,7 +1454,10 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
1428
1454
 
1429
1455
  - 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.
1430
1456
 
1431
- [unreleased]: https://github.com/gitkraken/vscode-gitlens/compare/releases/core/v0.47.0...HEAD
1457
+ [unreleased]: https://github.com/gitkraken/vscode-gitlens/compare/releases/core/v0.49.0...HEAD
1458
+ [0.49.0]: https://github.com/gitkraken/vscode-gitlens/compare/releases/core/v0.48.0...gitkraken:releases/core/v0.49.0
1459
+ [0.48.0]: https://github.com/gitkraken/vscode-gitlens/compare/releases/core/v0.47.1...gitkraken:releases/core/v0.48.0
1460
+ [0.47.1]: https://github.com/gitkraken/vscode-gitlens/compare/releases/core/v0.47.0...gitkraken:releases/core/v0.47.1
1432
1461
  [0.47.0]: https://github.com/gitkraken/vscode-gitlens/compare/releases/core/v0.46.0...gitkraken:releases/core/v0.47.0
1433
1462
  [0.46.0]: https://github.com/gitkraken/vscode-gitlens/compare/releases/core/v0.45.0...gitkraken:releases/core/v0.46.0
1434
1463
  [0.45.0]: https://github.com/gitkraken/vscode-gitlens/compare/releases/core/v0.44.0...gitkraken:releases/core/v0.45.0
@@ -184,6 +184,8 @@ export declare class Cache implements Disposable {
184
184
  */
185
185
  private _gkConfigSnapshots;
186
186
  private readonly _onDidChangeMergeTargets;
187
+ private readonly _onDidUnregisterRepoPath;
188
+ private readonly _onDidReset;
187
189
  /**
188
190
  * Fires when a `.git/gk/config` write changed a branch's merge-relevant keys — never for a write that only touched
189
191
  * other keys (activity timestamps). Core's own key store fires it once, as the write completes (see
@@ -194,6 +196,8 @@ export declare class Cache implements Disposable {
194
196
  * or it loops.
195
197
  */
196
198
  get onDidChangeMergeTargets(): Event<MergeTargetsChangeEvent>;
199
+ get onDidUnregisterRepoPath(): Event<string>;
200
+ get onDidReset(): Event<void>;
197
201
  /**
198
202
  * Reconciler registered by the CLI config sub-provider (see {@link setGkConfigReconciler}),
199
203
  * invoked on a watcher-observed `'gkConfig'` change instead of the coarse `clearCaches(repoPath,
package/dist/git/cache.js CHANGED
@@ -306,6 +306,8 @@ var Cache = class Cache {
306
306
  */
307
307
  _gkConfigSnapshots = /* @__PURE__ */ new Map();
308
308
  _onDidChangeMergeTargets = new Emitter();
309
+ _onDidUnregisterRepoPath = new Emitter();
310
+ _onDidReset = new Emitter();
309
311
  /**
310
312
  * Fires when a `.git/gk/config` write changed a branch's merge-relevant keys — never for a write that only touched
311
313
  * other keys (activity timestamps). Core's own key store fires it once, as the write completes (see
@@ -318,6 +320,12 @@ var Cache = class Cache {
318
320
  get onDidChangeMergeTargets() {
319
321
  return this._onDidChangeMergeTargets.event;
320
322
  }
323
+ get onDidUnregisterRepoPath() {
324
+ return this._onDidUnregisterRepoPath.event;
325
+ }
326
+ get onDidReset() {
327
+ return this._onDidReset.event;
328
+ }
321
329
  /**
322
330
  * Reconciler registered by the CLI config sub-provider (see {@link setGkConfigReconciler}),
323
331
  * invoked on a watcher-observed `'gkConfig'` change instead of the coarse `clearCaches(repoPath,
@@ -345,6 +353,8 @@ var Cache = class Cache {
345
353
  this._readValidatorUsage = void 0;
346
354
  this._repoPathRegistrar = void 0;
347
355
  this._onDidChangeMergeTargets.dispose();
356
+ this._onDidUnregisterRepoPath.dispose();
357
+ this._onDidReset.dispose();
348
358
  }
349
359
  /**
350
360
  * Registers what runs before each read of the caches that only a change report, core's own writes or an explicit
@@ -1290,6 +1300,7 @@ var Cache = class Cache {
1290
1300
  worktrees.delete(repoPath);
1291
1301
  if (worktrees.size === 0) this._worktreesByCommonPath.delete(commonPath);
1292
1302
  }
1303
+ this._onDidUnregisterRepoPath.fire(repoPath);
1293
1304
  }
1294
1305
  reset() {
1295
1306
  this._resetGeneration++;
@@ -1315,6 +1326,7 @@ var Cache = class Cache {
1315
1326
  this._registrations.clear();
1316
1327
  this._caches = createEmptyCaches();
1317
1328
  this.onDropped(void 0);
1329
+ this._onDidReset.fire(void 0);
1318
1330
  }
1319
1331
  /**
1320
1332
  * Applies a watcher-observed change, sharing reads still in flight (see {@link applyRepositoryChanges}).