fix(ui): preserve VS Code themes during settings broadcasts
This commit is contained in:
@@ -130,6 +130,10 @@ export const createVSCodeGitAPI = (): GitAPI => ({
|
||||
return sendBridgeMessage<GitBranch>('api:git/branches', { directory, method: 'GET' });
|
||||
},
|
||||
|
||||
getGitUnpushedBranchCounts: async (directory: string, branches: string[]) => {
|
||||
return sendBridgeMessage('api:git/branch-push-status', { directory, branches });
|
||||
},
|
||||
|
||||
deleteGitBranch: async (directory: string, payload: GitDeleteBranchPayload): Promise<{ success: boolean }> => {
|
||||
return sendBridgeMessage<{ success: boolean }>('api:git/branches', {
|
||||
directory,
|
||||
|
||||
@@ -1859,7 +1859,7 @@ window.addEventListener('openchamber:vscode-notification-event', (event) => {
|
||||
// Listen for settings sync command from extension (broadcast to all VS Code webviews)
|
||||
onCommand('settingsSynced', () => {
|
||||
import('@openchamber/ui/lib/persistence').then(({ syncDesktopSettings }) => {
|
||||
void syncDesktopSettings();
|
||||
void syncDesktopSettings({ adoptTheme: false });
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user