Ignore workspace settings for untrusted folders (#6606)

This commit is contained in:
shrutip90
2025-08-19 21:20:41 -07:00
committed by GitHub
parent 179f1414da
commit d250293c2e
16 changed files with 386 additions and 122 deletions

View File

@@ -1270,6 +1270,7 @@ describe('Settings Loading and Merging', () => {
expect(loadedSettings.workspace.settings.contextFileName).toBe(
'MY_AGENTS.md',
);
// This test assumes a trusted workspace, so the workspace setting should apply.
expect(loadedSettings.merged.contextFileName).toBe('MY_AGENTS.md');
expect(loadedSettings.merged.theme).toBe('matrix'); // User setting should still be there
expect(fs.writeFileSync).toHaveBeenCalledWith(