@github/copilot-language-server 1.544.0 → 1.546.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/README.md CHANGED
@@ -389,6 +389,38 @@ containing the item shown from the `edits` array (note only the first argument i
389
389
  }
390
390
  ```
391
391
 
392
+ Edits with known source attribution include optional `cacheTelemetryContext`.
393
+ Keep this opaque string with cached copies. On each client-cache serve, create a
394
+ fresh opportunity ID and track its lifecycle locally; do not reuse the source ID
395
+ or wait for CLS. Keep the context until that occurrence ends, even after cache
396
+ expiry, then send one `textDocument/reportCachedInlineEdit` notification:
397
+
398
+ ```json
399
+ {
400
+ "opportunityId": "unique-id-for-this-cache-serve",
401
+ "context": "<unchanged cacheTelemetryContext from the source edit>",
402
+ "isShown": true,
403
+ "acceptance": "accepted"
404
+ }
405
+ ```
406
+
407
+ `acceptance` is `accepted`, `rejected`, or `notAccepted`; `disposalReason` is
408
+ optional. Never-rendered results report `isShown: false` and `notAccepted`.
409
+ Do not send ordinary provider feedback for these cache IDs.
410
+
411
+ CLS validates the context and emits the existing `copilot-nes/provideInlineEdit`
412
+ event with `isFromCache=1` and original request/model/ExP attribution. There is no
413
+ source lookup, ACK, or telemetry-triggered model request. The context contains no
414
+ source code, credentials or raw ExP filters/variables. Invalid contexts are
415
+ logged/dropped; recent duplicates are suppressed. Delivery remains best effort,
416
+ and no cache latency/token/ARC measurements are invented.
417
+
418
+ Ordinary provider feedback is unchanged; discarded provider results use
419
+ `github.copilot.didIgnoreNextEditSuggestionItem`. Missing/blank context retains
420
+ legacy client behavior. The corrected reporting ships with the implementing
421
+ CLS/plugin versions, without a separate rollout flag; original model experiment
422
+ assignments are still preserved.
423
+
392
424
  ## Panel Completions
393
425
 
394
426
  Panel completions are used for "Open Copilot" style completions. They are similar to inline completions, but are shown