Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -1652,7 +1652,7 @@
},
"deepnote.snapshots.enabled": {
"type": "boolean",
"default": false,
"default": true,
"description": "When enabled, outputs are saved to separate snapshot files in a 'snapshots' folder instead of the main .deepnote file.",
"scope": "resource"
},
Expand Down
2 changes: 1 addition & 1 deletion src/notebooks/deepnote/deepnoteActivationService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export class DeepnoteActivationService implements IExtensionSyncActivationServic

const config = workspace.getConfiguration('deepnote');

return config.get<boolean>('snapshots.enabled', false);
return config.get<boolean>('snapshots.enabled', true);
}

private promptReloadForSnapshots(): void {
Expand Down
2 changes: 1 addition & 1 deletion src/notebooks/deepnote/snapshots/snapshotService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ export class SnapshotService implements ISnapshotMetadataService, IExtensionSync
isSnapshotsEnabled(): boolean {
const config = workspace.getConfiguration('deepnote');

return config.get<boolean>('snapshots.enabled', false);
return config.get<boolean>('snapshots.enabled', true);
}

mergeOutputsIntoBlocks(blocks: DeepnoteBlock[], outputs: Map<string, DeepnoteOutput[]>): DeepnoteBlock[] {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ suite('SnapshotService', () => {
suite('isSnapshotsEnabled', () => {
test('should return true when snapshots.enabled is true', () => {
const mockConfig = mock<WorkspaceConfiguration>();
when(mockConfig.get<boolean>('snapshots.enabled', false)).thenReturn(true);
when(mockConfig.get<boolean>('snapshots.enabled', true)).thenReturn(true);
when(mockedVSCodeNamespaces.workspace.getConfiguration('deepnote')).thenReturn(instance(mockConfig));

const result = service.isSnapshotsEnabled();
Expand All @@ -448,7 +448,7 @@ suite('SnapshotService', () => {

test('should return false when snapshots.enabled is false', () => {
const mockConfig = mock<WorkspaceConfiguration>();
when(mockConfig.get<boolean>('snapshots.enabled', false)).thenReturn(false);
when(mockConfig.get<boolean>('snapshots.enabled', true)).thenReturn(false);
when(mockedVSCodeNamespaces.workspace.getConfiguration('deepnote')).thenReturn(instance(mockConfig));

const result = service.isSnapshotsEnabled();
Expand Down Expand Up @@ -1007,7 +1007,7 @@ project:
test('should detect Run All when all code cells are executed', async () => {
// Set up mocks
const mockConfig = mock<WorkspaceConfiguration>();
when(mockConfig.get<boolean>('snapshots.enabled', false)).thenReturn(true);
when(mockConfig.get<boolean>('snapshots.enabled', true)).thenReturn(true);
when(mockedVSCodeNamespaces.workspace.getConfiguration('deepnote')).thenReturn(instance(mockConfig));

const projectId = 'test-project-id';
Expand Down
Loading