dsh-vscode-mode 0.19.2 → 0.20.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 +6 -4
- package/lib/client.js +3868 -3486
- package/lib/client.js.map +1 -1
- package/lib/index.js +535 -42
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
- package/src/archiveDb.ts +8 -8
- package/src/capture.ts +2 -2
- package/src/client/state/diffSummary.ts +30 -0
- package/src/client/state/reviewFeed.ts +60 -0
- package/src/client/ui/ConversationDiffDock.ts +9 -10
- package/src/client/ui/DiffBadge.ts +8 -6
- package/src/client/ui/DiffBox.ts +18 -0
- package/src/client/ui/DiffLauncher.ts +21 -5
- package/src/client/ui/EditorView.ts +17 -5
- package/src/client/ui/OfficialReview.ts +93 -0
- package/src/index.ts +3 -0
- package/src/model.ts +7 -3
- package/src/officialCapture.ts +199 -0
- package/src/reviewDb.ts +214 -0
- package/src/reviewRpc.ts +33 -0
- package/src/rpc.ts +14 -18
- package/src/shared/review.ts +91 -0
- package/src/shared/rpc.ts +7 -0
- package/src/store.ts +2 -2
package/src/store.ts
CHANGED
|
@@ -221,10 +221,10 @@ export async function readForCache(ctx: Ctx, session: Session, cache: Map<string
|
|
|
221
221
|
*/
|
|
222
222
|
export async function recordIsStale(ctx: Ctx, session: Session, cache: Map<string, ReadState>, rec: DiffRecord): Promise<boolean> {
|
|
223
223
|
if (rec.superseded === true) return true
|
|
224
|
-
if (!Array.isArray(rec.hunks) || !rec.hunks.length) return
|
|
224
|
+
if (!Array.isArray(rec.hunks) || !rec.hunks.length) { rec.conflict = true; return false }
|
|
225
225
|
const state = await readForCache(ctx, session, cache, rec.path)
|
|
226
226
|
if (state.kind === 'unavailable') return false
|
|
227
|
-
if (state.kind === 'missing') return
|
|
227
|
+
if (state.kind === 'missing') { rec.conflict = true; return false }
|
|
228
228
|
if (rec.create === true) return false
|
|
229
229
|
const pending = rec.hunks.map((_, idx) => ({ idx, hunk: preciseHunk(rec, idx), status: rec.decisions.perHunk[idx] ?? rec.decisions.call }))
|
|
230
230
|
.filter((item) => item.status === 'pending' && item.hunk && !isNoopHunk(item.hunk))
|