Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 15, 2025

Summary of the Pull Request

Addresses naming inconsistencies in WSLAContainerLauncher.h and WSLAContainerLauncher.cpp. Constructor parameters now consistently use PascalCase throughout the file.

PR Checklist

  • Closes: Implement container network mode #13886 (stacked PR addressing review feedback)
  • Communication: I've discussed this with core contributors already. If work hasn't been agreed, this work might be rejected
  • Tests: Added/updated if needed and all pass
  • Localization: All end user facing strings can be localized
  • Dev docs: Added/updated if needed
  • Documentation updated: If checked, please file a pull request on our docs repo and link it here: #xxx

Detailed Description of the Pull Request / Additional comments

Renamed parameters in both header and implementation files to maintain PascalCase consistency:

1. WSLAContainerLauncher Constructor

  • WSLAContainerLauncher.h: Parameter declaration and default value
  • WSLAContainerLauncher.cpp: Parameter declaration and constructor initializer list

Before:

WSLAContainerLauncher(
    const std::string& Image,
    const std::string& Name,
    WSLA_CONTAINER_NETWORK_TYPE containerNetworkType = ...,
    ProcessFlags Flags = ...);

After:

WSLAContainerLauncher(
    const std::string& Image,
    const std::string& Name,
    WSLA_CONTAINER_NETWORK_TYPE ContainerNetworkType = ...,
    ProcessFlags Flags = ...);

2. RunningWSLAContainer Constructor

  • WSLAContainerLauncher.h: Parameter declaration
  • WSLAContainerLauncher.cpp: Parameter declaration and constructor initializer list

Before:

RunningWSLAContainer(wil::com_ptr<IWSLAContainer>&& Container, std::vector<WSLA_PROCESS_FD>&& fds);

After:

RunningWSLAContainer(wil::com_ptr<IWSLAContainer>&& Container, std::vector<WSLA_PROCESS_FD>&& Fds);

Member variables (m_fds, m_containerNetworkType) retain camelCase per project convention.

Validation Steps Performed

  • Verified clang-format compliance
  • Confirmed all parameter names now use PascalCase consistently
  • Code review passed with no issues

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI changed the title [WIP] Update container network mode implementation based on feedback Rename containerNetworkType parameter to ContainerNetworkType for naming consistency Dec 15, 2025
Copilot AI requested a review from ptrivedi December 15, 2025 15:38
@benhillis
Copy link
Member

@copilot - are there other naming inconsistencies in this file?

Copy link
Contributor Author

Copilot AI commented Dec 15, 2025

@copilot - are there other naming inconsistencies in this file?

Yes, there's one more: the fds parameter in RunningWSLAContainer constructor (line 25 in the header) uses camelCase instead of PascalCase. It should be Fds to match the convention used for other parameters like Container, HostPath, ContainerPath, WindowsPort, etc.

@benhillis
Copy link
Member

@copilot - are there other naming inconsistencies in this file?

Yes, there's one more: the fds parameter in RunningWSLAContainer constructor (line 25 in the header) uses camelCase instead of PascalCase. It should be Fds to match the convention used for other parameters like Container, HostPath, ContainerPath, WindowsPort, etc.

@copilot - ok fix that one too.

Copy link
Contributor Author

Copilot AI commented Dec 15, 2025

@copilot - are there other naming inconsistencies in this file?

Yes, there's one more: the fds parameter in RunningWSLAContainer constructor (line 25 in the header) uses camelCase inste...

Done in commit 2256d08. The fds parameter in RunningWSLAContainer constructor is now Fds to match the PascalCase convention.

Copilot AI changed the title Rename containerNetworkType parameter to ContainerNetworkType for naming consistency Fix parameter naming inconsistencies in WSLAContainerLauncher Dec 15, 2025
@benhillis benhillis marked this pull request as ready for review December 15, 2025 16:54
@benhillis benhillis requested a review from a team as a code owner December 15, 2025 16:54
@ptrivedi ptrivedi force-pushed the user/ptrivedi/cont-network-mode branch 3 times, most recently from 87b7671 to 606dc8d Compare December 15, 2025 20:08
@ptrivedi ptrivedi merged commit 01ccb08 into user/ptrivedi/cont-network-mode Dec 15, 2025
1 check passed
@ptrivedi ptrivedi deleted the copilot/sub-pr-13886 branch December 15, 2025 22:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants