mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-15 02:48:30 -05:00
Merge from vscode 0a7364f00514c46c9caceece15e1f82f82e3712f
This commit is contained in:
@@ -18,7 +18,13 @@ const settings = getSettings();
|
||||
|
||||
const vscode = acquireVsCodeApi();
|
||||
|
||||
const state = { ...vscode.getState(), ...getData<any>('data-state') };
|
||||
const originalState = vscode.getState();
|
||||
|
||||
const state = {
|
||||
...(typeof originalState === 'object' ? originalState : {}),
|
||||
...getData<any>('data-state')
|
||||
};
|
||||
|
||||
// Make sure to sync VS Code state here
|
||||
vscode.setState(state);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user