Skip to content

Commit

Permalink
Update name
Browse files Browse the repository at this point in the history
  • Loading branch information
paulacamargo25 committed Jul 24, 2023
1 parent 03625bf commit e20f446
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { buildPidAttachConfiguration } from './providers/pidAttach';
import { buildPyramidLaunchConfiguration } from './providers/pyramidLaunch';
import { buildRemoteAttachConfiguration } from './providers/remoteAttach';
import { IDebugConfigurationResolver } from './types';
import { buildFileLaunchWithArgsDebugConfiguration } from './providers/fileLaunchWithArgs';
import { buildFileWithArgsLaunchDebugConfiguration } from './providers/fileLaunchWithArgs';

@injectable()
export class PythonDebugConfigurationService implements IDebugConfigurationService {
Expand Down Expand Up @@ -168,7 +168,7 @@ export class PythonDebugConfigurationService implements IDebugConfigurationServi
debugConfigurations.set(DebugConfigurationType.launchDjango, buildDjangoLaunchDebugConfiguration);
debugConfigurations.set(DebugConfigurationType.launchFastAPI, buildFastAPILaunchDebugConfiguration);
debugConfigurations.set(DebugConfigurationType.launchFile, buildFileLaunchDebugConfiguration);
debugConfigurations.set(DebugConfigurationType.launchFileWithArgs, buildFileLaunchWithArgsDebugConfiguration);
debugConfigurations.set(DebugConfigurationType.launchFileWithArgs, buildFileWithArgsLaunchDebugConfiguration);
debugConfigurations.set(DebugConfigurationType.launchFlask, buildFlaskLaunchDebugConfiguration);
debugConfigurations.set(DebugConfigurationType.launchModule, buildModuleLaunchConfiguration);
debugConfigurations.set(DebugConfigurationType.pidAttach, buildPidAttachConfiguration);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { DebuggerTypeName } from '../../../constants';
import { LaunchRequestArguments } from '../../../types';
import { DebugConfigurationState, DebugConfigurationType } from '../../types';

export async function buildFileLaunchWithArgsDebugConfiguration(
export async function buildFileWithArgsLaunchDebugConfiguration(
_input: MultiStepInput<DebugConfigurationState>,
state: DebugConfigurationState,
): Promise<void> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ import { Uri } from 'vscode';
import { MultiStepInput } from '../../../../extension/common/multiStepInput';
import { DebugConfigStrings } from '../../../../extension/common/utils/localize';
import { DebuggerTypeName } from '../../../../extension/constants';
import { buildFileLaunchWithArgsDebugConfiguration } from '../../../../extension/debugger/configuration/providers/fileLaunchWithArgs';
import { buildFileWithArgsLaunchDebugConfiguration } from '../../../../extension/debugger/configuration/providers/fileLaunchWithArgs';
import { DebugConfigurationState } from '../../../../extension/debugger/types';

suite('Debugging - Configuration Provider File with Arguments', () => {
test('Launch JSON with default config', async () => {
const folder = { uri: Uri.parse(path.join('one', 'two')), name: '1', index: 0 };
const state = { config: {}, folder };

await buildFileLaunchWithArgsDebugConfiguration(undefined as unknown as MultiStepInput<DebugConfigurationState>, state);
await buildFileWithArgsLaunchDebugConfiguration(undefined as unknown as MultiStepInput<DebugConfigurationState>, state);

const config = {
name: DebugConfigStrings.fileWithArgs.snippet.name,
Expand Down

0 comments on commit e20f446

Please sign in to comment.