Skip to content

Commit

Permalink
My
Browse files Browse the repository at this point in the history
  • Loading branch information
ili101 committed Mar 9, 2024
1 parent 959a835 commit f162310
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 4 deletions.
36 changes: 33 additions & 3 deletions .devcontainer/devcontainer.json
Expand Up @@ -20,7 +20,10 @@
"workspaceFolder": "/srv",

// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},
"features": {
"ghcr.io/devcontainers/features/common-utils:2": {},
"ghcr.io/devcontainers/features/powershell:1": {}
},

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],
Expand All @@ -32,13 +35,40 @@
// "shutdownAction": "none",

// Uncomment the next line to run commands after the container is created.
// "postCreateCommand": ". .devcontainer/install-dev-tools.sh",
"postCreateCommand": ". .devcontainer/install-dev-tools.sh",

// Configure tool-specific properties.
"customizations": {
"vscode": {
"extensions": [
"xdebug.php-debug"
// PHP intellisense by Intelephense.
"bmewburn.vscode-intelephense-client",
"xdebug.php-debug",
"recca0120.vscode-phpunit",

// // PHP intellisense by IntelliSense.
// "xdebug.php-pack",
// "recca0120.vscode-phpunit",

// // PHP intellisense by Devsense.
// "DEVSENSE.phptools-vscode",


// Extra PHP formatter.
"kokororin.vscode-phpfmt",

// Symfony.
"TheNouillet.symfony-vscode",
// Alternativly, to not get this error promped https://github.com/TheNouillet/symfony-vscode/issues/49 comment the above line and install this from the command line:
// wget -O /tmp/symfony-vscode-1.0.3.vsix https://github.com/QISCT/symfony-vscode/releases/download/v1.0.3/symfony-vscode-1.0.3.vsix
// code --install-extension /tmp/symfony-vscode-1.0.3.vsix

// Add extra extra extentions you like here.
"eamodio.gitlens",
"jaguadoromero.vscode-php-create-class",
"ms-vscode.powershell",
"streetsidesoftware.code-spell-checker",
"yzhang.markdown-all-in-one"
]
}
}
Expand Down
8 changes: 8 additions & 0 deletions .devcontainer/install-dev-tools.sh
@@ -0,0 +1,8 @@
# Trust all repositories
git config --global --add safe.directory '*'

# Install PowerShell
## Installed by DevContainer feature
## From APK repository
# apk add --no-cache powershell
## Alternatively get last version from archive https://learn.microsoft.com/en-us/powershell/scripting/install/install-alpine
18 changes: 17 additions & 1 deletion .vscode/launch.json
Expand Up @@ -8,7 +8,23 @@
"name": "Listen for Xdebug",
"type": "php",
"request": "launch",
"port": 9003
"port": 9003,
// "log": true,
// "xdebugSettings": {
// "max_data": -1,
// },
"skipFiles": [
"**/vendor/**",
],
"ignore": [
// "**/vendor/**",
"**/bootstrap.php",
"**/EnvVarProcessor.php",
"**/BaseTestRunner.php",
"**/ReflectionExtractor.php",
"**/AttributeDriver.php",
],
// "stopOnEntry": true,
},
{
"name": "Launch currently open script",
Expand Down
10 changes: 10 additions & 0 deletions .vscode/settings.json
@@ -0,0 +1,10 @@
{
"symfony-vscode.phpExecutablePath": "/usr/local/bin/php",
"phpunit.phpunit": "/srv/api/bin/phpunit",
"phpunit.args": [
"--configuration /srv/api/phpunit.xml.dist"
],
"powershell.powerShellAdditionalExePaths": {
"pwsh": "/opt/microsoft/powershell/7/pwsh"
},
}

0 comments on commit f162310

Please sign in to comment.