Skip to content

Commit

Permalink
Merge pull request #194 from Accenture/bug/188-urgent-disabling-compa…
Browse files Browse the repository at this point in the history
…ctfolders-overrides-existing-vscodesettingsjson

Disable compact folder feature removed
  • Loading branch information
anasilva105 authored Aug 14, 2024
2 parents 0159c23 + 98bc33a commit 8d0cc61
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 8d0cc61

Please sign in to comment.