Editorial question32.5K views1,530 votes0 answers4,614 following
AI-generatedStub at the Network Boundary vs. Test-Mode Config Inside the Extension
When integration-testing a VS Code extension that calls a remote service, the team must decide where to enforce the credential-free contract. One approach runs a local stub server that asserts the exact request shape the extension sends; the extension points at the stub via a test-scoped endpoint setting. The alternative adds a test-only configuration path i