feat: native WSL support, PHP executable auto-detector, and full Vitest test suite#233
Draft
ILDaviz wants to merge 11 commits into
Draft
feat: native WSL support, PHP executable auto-detector, and full Vitest test suite#233ILDaviz wants to merge 11 commits into
ILDaviz wants to merge 11 commits into
Conversation
Member
Author
|
Compatibility & Testing Checklist
|
There was a problem hiding this comment.
Pull request overview
Adds Windows Subsystem for Linux (WSL) support and improves local PHP tooling ergonomics, while introducing a Vitest-based unit test suite for main-process/client code paths.
Changes:
- Adds PHP executable auto-detection (including WSL UNC path support) and a renderer UI to trigger detection.
- Adds WSL-aware local execution path translation and command construction for the Local client.
- Introduces a Vitest test suite covering settings, IPC routing, and multiple client implementations.
Reviewed changes
Copilot reviewed 20 out of 21 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| src/renderer/views/settings/GeneralSettings.vue | Adds “Detect” UI for PHP path and displays detected paths. |
| src/renderer/views/NewProjectView.vue | Normalizes path basename extraction to handle / and \. |
| src/renderer/stores/tabs.ts | Normalizes tab naming from paths across platforms. |
| src/renderer/components/Editor.vue | Avoids stopping LSP client unless it’s running. |
| src/main/tools/code-history.ts | Minor TypeScript type formatting adjustments. |
| src/main/tools/code-history.test.ts | Adds Vitest coverage for code history IPC handlers. |
| src/main/tools/ai-completion.test.ts | Adds Vitest coverage for AI completion behaviors. |
| src/main/settings.ts | Adds PHP path detection + IPC handler; gates LSP init by platform. |
| src/main/settings.test.ts | Adds Vitest coverage for settings and PHP path detection (incl. WSL). |
| src/main/client/vapor.test.ts | Adds Vitest coverage for Vapor client behaviors. |
| src/main/client/ssh.test.ts | Adds Vitest coverage for SSH client behaviors. |
| src/main/client/local.ts | Adds WSL support for local execution/info/version detection. |
| src/main/client/local.test.ts | Adds Vitest coverage for Local client WSL support. |
| src/main/client/kubectl.test.ts | Adds Vitest coverage for Kubectl client behaviors. |
| src/main/client/index.test.ts | Adds Vitest coverage for IPC router and client factory mappings. |
| src/main/client/docker.test.ts | Adds Vitest coverage for Docker client behaviors. |
| src/main/client/client.remote.test.ts | Adds Vitest coverage for RemoteClient shared logic. |
| src/main/client/client.base.test.ts | Adds Vitest coverage for BaseClient defaults/action dispatch. |
| package.json | Adds test script and Vitest dependency. |
| mise.toml | Pins Node toolchain version for development. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This was referenced Jul 12, 2026
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.