Skip to content

Commit 671d832

Browse files
fix(Wind): Correct userDataSync channel names in IPC stubs
The previous commit used incorrect IPC channel names for the userDataSync stubs: - `userDataSyncService` renamed to `userDataSync` (matches workbench/services/userDataSync/electron-browser/userDataSyncService.ts:13) - `userDataSync` renamed to `userDataSyncAccount` (matches userDataSyncIpc.ts:51) The channel names now align with the actual VS Code IPC registration, ensuring calls route to the correct stub handlers.
1 parent f0d6ccb commit 671d832

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

Source/Service/TauriMainProcessService.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -178,11 +178,11 @@ const StubChannels: Record<string, Record<string, unknown>> = {
178178

179179
// Fix: `IUserDataSyncService._getInitialData` returns a 3-tuple
180180
// `[status, conflicts, lastSyncTime]` that `userDataSyncServiceIpc.ts:165`
181-
// destructures. Missing handler → undefined → the bracket-destructure
182-
// throws `undefined is not an object (evaluating '[status, conflicts, lastSyncTime]')`.
183-
// Return the "Uninitialised" status (0), no conflicts, no sync time
184-
// so the workbench treats sync as disabled.
185-
userDataSyncService: {
181+
// destructures. Channel name is `userDataSync` (registered in
182+
// `workbench/services/userDataSync/electron-browser/userDataSyncService.ts:13`),
183+
// not `userDataSyncService`. Return Uninitialised / no conflicts / never
184+
// synced so the workbench treats sync as disabled.
185+
userDataSync: {
186186
_getInitialData: [0, [], null],
187187
accept: undefined,
188188
resolveContent: null,
@@ -195,10 +195,10 @@ const StubChannels: Record<string, Record<string, unknown>> = {
195195
turnOn: undefined,
196196
turnOff: undefined,
197197
},
198-
// `IUserDataSyncAccount._getInitialData` returns the account or
199-
// `undefined` when no account is signed in - matches the equivalent
200-
// `userDataSyncIpc.ts:51` callsite.
201-
userDataSync: {
198+
// `IUserDataSyncAccountService._getInitialData` returns the account or
199+
// `undefined` when no account is signed in. Channel name is
200+
// `userDataSyncAccount` - matches `userDataSyncIpc.ts:51` callsite.
201+
userDataSyncAccount: {
202202
_getInitialData: undefined,
203203
getAccount: undefined,
204204
},

0 commit comments

Comments
 (0)