From f69e53155827a33dc3f688b08fcf1e986fa4b3b3 Mon Sep 17 00:00:00 2001 From: Jack251970 <1160210343@qq.com> Date: Fri, 6 Jun 2025 17:24:42 +0800 Subject: [PATCH 1/2] Add RecordKey --- main.ts | 3 ++- src/flow-api.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/main.ts b/main.ts index 9529e8a..d26d5ea 100644 --- a/main.ts +++ b/main.ts @@ -56,7 +56,8 @@ if (method === "query") { JSON.stringify(w) ] }, - IcoPath: "Images\\app.png" + IcoPath: "Images\\app.png", + RecordKey: `${w.keys.toString()}` // TODO: Use the record key here }; return result; }); diff --git a/src/flow-api.ts b/src/flow-api.ts index c010683..6eb23d5 100644 --- a/src/flow-api.ts +++ b/src/flow-api.ts @@ -32,7 +32,7 @@ export interface Result { SubTitleToolTip?: string; /** Must be int */ Score?: number; - + RecordKey?: string; } export interface JsonRPCAction { method: Methods; From f14d78816d0b3e8e047f797f955886eced6d46de Mon Sep 17 00:00:00 2001 From: Jack251970 <1160210343@qq.com> Date: Fri, 5 Sep 2025 22:00:05 +0800 Subject: [PATCH 2/2] Use workspace id --- main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.ts b/main.ts index d26d5ea..67b36f6 100644 --- a/main.ts +++ b/main.ts @@ -57,7 +57,7 @@ if (method === "query") { ] }, IcoPath: "Images\\app.png", - RecordKey: `${w.keys.toString()}` // TODO: Use the record key here + RecordKey: w.workspace.id }; return result; });