Skip to content

Commit 92ec6be

Browse files
authored
Disable debugging configuration provider (microsoft#4022)
* Disable debugging configuration provider for now.
1 parent 0ce0cda commit 92ec6be

3 files changed

Lines changed: 16 additions & 5 deletions

File tree

news/1 Enhancements/3321.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/client/debugger/extension/configuration/debugConfigurationService.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,18 @@ export class PythonDebugConfigurationService implements IDebugConfigurationServi
2121
constructor(@inject(IDebugConfigurationResolver) @named('attach') private readonly attachResolver: IDebugConfigurationResolver<AttachRequestArguments>,
2222
@inject(IDebugConfigurationResolver) @named('launch') private readonly launchResolver: IDebugConfigurationResolver<LaunchRequestArguments>,
2323
@inject(IDebugConfigurationProviderFactory) private readonly providerFactory: IDebugConfigurationProviderFactory,
24+
// tslint:disable-next-line:no-unused-variable
2425
@inject(IMultiStepInputFactory) private readonly multiStepFactory: IMultiStepInputFactory,
2526
@inject(IFileSystem) private readonly fs: IFileSystem) {
2627
}
2728
public async provideDebugConfigurations(folder: WorkspaceFolder | undefined, token?: CancellationToken): Promise<DebugConfiguration[] | undefined> {
2829
const config: Partial<DebugConfigurationArguments> = {};
2930
const state = { config, folder, token };
30-
const multiStep = this.multiStepFactory.create<DebugConfigurationState>();
31-
await multiStep.run((input, s) => this.pickDebugConfiguration(input, s), state);
31+
32+
// Disabled until configuration issues are addressed by VS Code. See #4007
33+
// const multiStep = this.multiStepFactory.create<DebugConfigurationState>();
34+
// await multiStep.run((input, s) => this.pickDebugConfiguration(input, s), state);
35+
3236
if (Object.keys(state.config).length === 0) {
3337
return this.getDefaultDebugConfig();
3438
} else {

src/test/debugger/extension/configuration/debugConfigurationService.unit.test.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,12 @@ suite('Debugging - Configuration Service', () => {
114114
multiStepInput.verifyAll();
115115
expect(Object.keys(state.config)).to.be.lengthOf(0);
116116
});
117-
test('Ensure generated config is returned', async () => {
117+
test('Ensure generated config is returned', async function () {
118+
// Disable this test until this is resolved:
119+
// Issue #4007: Disable debugging configuration provider temporarily
120+
// tslint:disable-next-line:no-invalid-this
121+
return this.skip();
122+
118123
const expectedConfig = { yes: 'Updated' };
119124
const multiStepInput = {
120125
run: (_, state) => {
@@ -148,7 +153,10 @@ suite('Debugging - Configuration Service', () => {
148153
when(fs.readFile(jsFile)).thenResolve(JSON.stringify([expectedConfig]));
149154
const config = await configService.provideDebugConfigurations!({} as any);
150155

151-
multiStepFactory.verifyAll();
156+
// Disable this check until this is resolved:
157+
// Issue #4007: Disable debugging configuration provider temporarily
158+
// multiStepFactory.verifyAll();
159+
152160
expect(config).to.deep.equal([expectedConfig]);
153161
});
154162
});

0 commit comments

Comments
 (0)