Skip to content

Commit eabbc95

Browse files
ntottenclaude
andcommitted
Honor requireConfig in untrusted workspaces
When requireConfig is true and the workspace is untrusted, return "disabled" instead of null so formatting is correctly skipped rather than proceeding with VS Code defaults. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 013b6f4 commit eabbc95

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/ModuleResolverNode.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,9 @@ export class ModuleResolver implements ModuleResolverInterface {
409409
// code execution.
410410
if (!workspace.isTrusted) {
411411
this.loggingService.logDebug(UNTRUSTED_WORKSPACE_SKIPPING_CONFIG);
412+
if (vscodeConfig.requireConfig) {
413+
return "disabled";
414+
}
412415
return null;
413416
}
414417

0 commit comments

Comments
 (0)