Skip to content

Commit f20993a

Browse files
committed
Update PhpStormCopilot.php
1 parent d10e433 commit f20993a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/PhpStormCopilot.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,10 @@ public function mcpConfigPath(): string
7979
{
8080
$platform = Platform::current();
8181

82+
$home = getenv('HOME');
83+
8284
return match ($platform) {
83-
Platform::Darwin, Platform::Linux => '~/.config/github-copilot/intellij/mcp.json',
85+
Platform::Darwin, Platform::Linux => $home.'/.config/github-copilot/intellij/mcp.json',
8486
Platform::Windows => '%LOCALAPPDATA%\\github-copilot\\intellij\\mcp.json',
8587
};
8688
}

0 commit comments

Comments
 (0)