Skip to content

Commit 66f80ec

Browse files
committed
fix(channels): rename the commentary id resolver parameter and repin the SDK baseline
1 parent f356182 commit 66f80ec

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

‎docs/.generated/plugin-sdk-api-baseline.sha256‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ d645d24bcb7a5f68cc46c692ad0d1fbd19be0a99996f31e9479ce9cffce301c1 module/channel
3434
4a7ada095f0f483525dcbd848fbccab26473749eba87e6a6c6e5074fd04ee1d1 module/channel-ingress-runtime
3535
c97dd36cdf8f83c2893c33e9430a93cd131a03d855725783ca5b545de0cf84f8 module/channel-lifecycle
3636
159d034b431d113f3a6dc41ec0bcadba2d6664051f158330b0e3dd3da8b5d42f module/channel-logging
37-
34868a4532173efb2ae17426bdedb618c56914d0919ba439d5b7c5a7d085fc9d module/channel-message
38-
d80682f483c876dbfdcec023f9a78381de340bef0aae36e0360389d8552e0db5 module/channel-outbound
37+
83297cb5672b5923ad7b288a27c29e265e71584e9a4828a6fa3641d847ce8179 module/channel-message
38+
cb95167f43ad2ebc272ee675df416c2870fd3ff1876a48c5dbeadb5a186422d1 module/channel-outbound
3939
930beff13ed42a138f65164013c82f4f4c96422292c5fc634a5edee1dce71367 module/channel-pairing
4040
ee4292b069d4d48cce4fc2dc26df5b5c87eb1fa4769f1f6be9a10c3e1221e1a9 module/channel-plugin-common
4141
94ef57c8f6087fcaa56e59e493c391a04377ed03f23c681edd8d8f6e2d64e0da module/channel-policy
@@ -46,7 +46,7 @@ bba5540be7cf9613a163663decdb2affe2af9bbd3ad7914989ab186f9c2abec1 module/channel
4646
7c90157a95bc0523fc66b1f78ce140f7ec7dbf809dfa3a480244efc01f972754 module/channel-send-result
4747
fb123c1b557ed2527e335f13c3d6de41ab0c3305151001cf2b1075d1da8034c5 module/channel-setup
4848
8de651a14a46014dc86fb8ccaff819e0854cf6bb2e3b59e642f1e55b37ef43c2 module/channel-status
49-
8269386e8f25e090c7837677b447582cfe301eb7debfb6ac8a4fc83b599ff13f module/channel-streaming
49+
d904e33114f056022ef9fec184edcfe37c30b539b268e28b0ff485f0a02b9c59 module/channel-streaming
5050
14f0103adb14627b662fbe9fdd5ed08596ed702a250853e8beb8bb8dd1361588 module/cli-argv
5151
c89ec1b194b76f67a6f4dd108dccf460da6065646cba31374c8aa748f23a39e4 module/collection-runtime
5252
391e6f0c77da2e17a058fc5aea87fd193830b2a14e12fae77c7f63b0226f0bb5 module/command-auth

‎src/channels/progress-draft-compositor.ts‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -318,27 +318,27 @@ export function createChannelProgressDraftCompositor(params: {
318318
* workspace"), so a snapshot that continues the open line reuses its id and
319319
* updates in place; anything else starts a new line.
320320
*/
321-
const resolveCommentaryLineId = (params: {
321+
const resolveCommentaryLineId = (commentary: {
322322
itemId?: string;
323323
normalized: string;
324324
bareNormalized: string;
325325
}): string => {
326-
if (params.itemId) {
327-
return `commentary:${params.itemId}`;
326+
if (commentary.itemId) {
327+
return `commentary:${commentary.itemId}`;
328328
}
329-
if (!params.normalized) {
329+
if (!commentary.normalized) {
330330
// Sanitized to nothing (directive-only / NO_REPLY): no line to address, so
331331
// it cannot retract the open one. Only an explicit itemId clears a line.
332332
return "";
333333
}
334334
const continuesOpenLine =
335335
Boolean(lastIdLessCommentaryBare) &&
336-
(params.bareNormalized.startsWith(lastIdLessCommentaryBare) ||
337-
lastIdLessCommentaryBare.startsWith(params.bareNormalized));
336+
(commentary.bareNormalized.startsWith(lastIdLessCommentaryBare) ||
337+
lastIdLessCommentaryBare.startsWith(commentary.bareNormalized));
338338
if (continuesOpenLine && lastIdLessCommentaryId) {
339339
return lastIdLessCommentaryId;
340340
}
341-
return `commentary:${params.normalized}`;
341+
return `commentary:${commentary.normalized}`;
342342
};
343343

344344
const clearLine = async (lineId: string) => {

0 commit comments

Comments
 (0)