Skip to content

Commit

Permalink
saveLayout default is true
Browse files Browse the repository at this point in the history
  • Loading branch information
haneefdm committed Jun 9, 2023
1 parent 7bed570 commit 64dbe7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/views/peripheral.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export class PeripheralTreeForSession extends PeripheralBaseNode {
}

private async loadSvdState(context: vscode.ExtensionContext): Promise<NodeSetting[]> {
const saveLayout = vscode.workspace.getConfiguration(manifest.PACKAGE_NAME).get<boolean>(manifest.CONFIG_SAVE_LAYOUT);
const saveLayout = vscode.workspace.getConfiguration(manifest.PACKAGE_NAME).get<boolean>(manifest.CONFIG_SAVE_LAYOUT, true);
if (!saveLayout) {
return [];
}
Expand All @@ -79,7 +79,7 @@ export class PeripheralTreeForSession extends PeripheralBaseNode {
}

private async saveSvdState(state: NodeSetting[], context: vscode.ExtensionContext): Promise<void> {
const saveLayout = vscode.workspace.getConfiguration(manifest.PACKAGE_NAME).get<boolean>(manifest.CONFIG_SAVE_LAYOUT);
const saveLayout = vscode.workspace.getConfiguration(manifest.PACKAGE_NAME).get<boolean>(manifest.CONFIG_SAVE_LAYOUT, true);
if (saveLayout && this.session) {
const propName = PeripheralTreeForSession.getStatePropName(this.session);
context.workspaceState.update(propName, state);
Expand Down

0 comments on commit 64dbe7a

Please sign in to comment.