Skip to content

Commit

Permalink
Disable compact folder feature removed
Browse files Browse the repository at this point in the history
  • Loading branch information
anasilva105 committed Aug 13, 2024
1 parent 0159c23 commit 98bc33a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
2 changes: 0 additions & 2 deletions src/devtools/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ async function handleDevToolsRequirements(/*isDevToolsProject: boolean*/): Promi
}
log("info", "SFMC DevTools is installed.");

// Deactivates Compact folders for command right execution
editorDependencies.deactivateCompactFolders();
// init DevTools Commands
DevToolsCommands.init();
return;
Expand Down
12 changes: 1 addition & 11 deletions src/editor/dependencies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,8 @@ async function activateExtensionDependencies(dependencies: string | string[]) {
}
}

function deactivateCompactFolders() {
const workspaceConfiguration = editorWorkspace.handleWorkspaceConfiguration("explorer", "Workspace");
const isCompactFoldersEnabled: boolean = Boolean(workspaceConfiguration.get("compactFolders", true));
if (isCompactFoldersEnabled) {
// Disable Compact Folders
workspaceConfiguration.set("compactFolders", false);
}
}

const editorDependencies = {
activateExtensionDependencies,
deactivateCompactFolders
activateExtensionDependencies
};

export { editorDependencies };

0 comments on commit 98bc33a

Please sign in to comment.