Quellcode durchsuchen

chore: Updated vscode configs

Edgard vor 3 Jahren
Ursprung
Commit
bd01b9c045
5 geänderte Dateien mit 115 neuen und 49 gelöschten Zeilen
  1. 3 3
      .vscode/extensions.json
  2. 17 0
      .vscode/launch.json
  3. 21 9
      .vscode/settings.json
  4. 37 0
      .vscode/tasks.json
  5. 37 37
      providers.json

+ 3 - 3
.vscode/extensions.json

@@ -1,7 +1,7 @@
 {
     "recommendations": [
         "bmewburn.vscode-intelephense-client",
-        "felixfbecker.php-debug",
-        "valeryanm.vscode-phpsab"
+        "valeryanm.vscode-phpsab",
+        "xdebug.php-debug"
     ]
-}
+}

+ 17 - 0
.vscode/launch.json

@@ -0,0 +1,17 @@
+{
+    // Use o IntelliSense para aprender sobre possíveis atributos.
+    // Passe o mouse para ver as descrições dos atributos existentes.
+    // Para obter mais informações, visite: https://go.microsoft.com/fwlink/?linkid=830387
+    "version": "0.2.0",
+    "configurations": [
+        {
+            "name": "Listen for XDebug",
+            "type": "php",
+            "request": "launch",
+            "port": 9000,
+            "ignore": [
+                "**/vendor/**/*.php"
+            ]
+        }
+    ]
+}

+ 21 - 9
.vscode/settings.json

@@ -1,10 +1,22 @@
 {
-  "phpsab.snifferEnable": true,
-  "phpsab.standard": ".phpcs.xml",
-  "phpsab.composerJsonPath": "composer.json",
-  "intelephense.environment.includePaths": ["../../"],
-  "intelephense.format.braces": "k&r",
-  "[php]": {
-    "editor.defaultFormatter": "bmewburn.vscode-intelephense-client"
-  }
-}
+    "phpsab.snifferEnable": true,
+    "phpsab.standard": ".phpcs.xml",
+    "phpsab.composerJsonPath": "composer.json",
+    "intelephense.environment.includePaths": [
+        "../../"
+    ],
+    "intelephense.format.braces": "k&r",
+    "[json]": {
+        "editor.defaultFormatter": "vscode.json-language-features",
+        "editor.detectIndentation": false,
+        "editor.tabSize": 4
+    },
+    "[jsonc]": {
+        "editor.defaultFormatter": "vscode.json-language-features",
+        "editor.detectIndentation": false,
+        "editor.tabSize": 4
+    },
+    "[php]": {
+        "editor.defaultFormatter": "bmewburn.vscode-intelephense-client"
+    }
+}

+ 37 - 0
.vscode/tasks.json

@@ -0,0 +1,37 @@
+{
+    // See https://go.microsoft.com/fwlink/?LinkId=733558
+    // for the documentation about the tasks.json format
+    "version": "2.0.0",
+    "tasks": [
+        {
+            "label": "Run PHP Server",
+            "type": "shell",
+            "command": "php",
+            "isBackground": true,
+            "group": "build",
+            "args": [
+                "-S",
+                "localhost:8000",
+                "-t",
+                "../.."
+            ],
+            "problemMatcher": [
+                {
+                    "pattern": [
+                        {
+                            "regexp": ".",
+                            "file": 1,
+                            "location": 2,
+                            "message": 3
+                        }
+                    ],
+                    "background": {
+                        "activeOnStart": true,
+                        "beginsPattern": ".",
+                        "endsPattern": "."
+                    }
+                }
+            ]
+        }
+    ]
+}

+ 37 - 37
providers.json

@@ -1,38 +1,38 @@
 {
-   "azure": {
-      "url_authorize": "https://login.microsoftonline.com/common/oauth2/v2.0/authorize",
-      "url_access_token": "https://login.microsoftonline.com/common/oauth2/v2.0/token",
-      "url_resource_owner_details": "https://graph.microsoft.com/v1.0/me",
-      "scope": "User.Read"
-   },
-   "facebook": {
-      "url_authorize": "https://www.facebook.com/v9.0/dialog/oauth",
-      "url_access_token": "https://graph.facebook.com/v9.0/oauth/access_token",
-      "url_resource_owner_details": "https://graph.facebook.com/v9.0/me?fields=id,email&access_token=<access_token>&appsecret_proof=<appsecret_proof>",
-      "scope": "public_profile,email"
-   },
-   "github": {
-      "url_authorize": "https://github.com/login/oauth/authorize",
-      "url_access_token": "https://github.com/login/oauth/access_token",
-      "url_resource_owner_details": "https://api.github.com/user",
-      "scope": "user:email"
-   },
-   "google": {
-      "url_authorize": "https://accounts.google.com/o/oauth2/v2/auth",
-      "url_access_token": "https://www.googleapis.com/oauth2/v4/token",
-      "url_resource_owner_details": "https://openidconnect.googleapis.com/v1/userinfo",
-      "scope": "openid email profile"
-   },
-   "instagram": {
-      "url_authorize": "https://api.instagram.com/oauth/authorize",
-      "url_access_token": "https://api.instagram.com/oauth/access_token",
-      "url_resource_owner_details": "https://api.instagram.com/v1/users/self?access_token=<access_token>",
-      "scope": "basic"
-   },
-   "linkedin": {
-      "url_authorize": "https://www.linkedin.com/oauth/v2/authorization",
-      "url_access_token": "https://www.linkedin.com/oauth/v2/accessToken",
-      "url_resource_owner_details": "https://api.linkedin.com/v2/me",
-      "scope": "r_liteprofile r_emailaddress"
-   }
-}
+    "azure": {
+        "url_authorize": "https://login.microsoftonline.com/common/oauth2/v2.0/authorize",
+        "url_access_token": "https://login.microsoftonline.com/common/oauth2/v2.0/token",
+        "url_resource_owner_details": "https://graph.microsoft.com/v1.0/me",
+        "scope": "User.Read"
+    },
+    "facebook": {
+        "url_authorize": "https://www.facebook.com/v9.0/dialog/oauth",
+        "url_access_token": "https://graph.facebook.com/v9.0/oauth/access_token",
+        "url_resource_owner_details": "https://graph.facebook.com/v9.0/me?fields=id,email&access_token=<access_token>&appsecret_proof=<appsecret_proof>",
+        "scope": "public_profile,email"
+    },
+    "github": {
+        "url_authorize": "https://github.com/login/oauth/authorize",
+        "url_access_token": "https://github.com/login/oauth/access_token",
+        "url_resource_owner_details": "https://api.github.com/user",
+        "scope": "user:email"
+    },
+    "google": {
+        "url_authorize": "https://accounts.google.com/o/oauth2/v2/auth",
+        "url_access_token": "https://www.googleapis.com/oauth2/v4/token",
+        "url_resource_owner_details": "https://openidconnect.googleapis.com/v1/userinfo",
+        "scope": "openid email profile"
+    },
+    "instagram": {
+        "url_authorize": "https://api.instagram.com/oauth/authorize",
+        "url_access_token": "https://api.instagram.com/oauth/access_token",
+        "url_resource_owner_details": "https://api.instagram.com/v1/users/self?access_token=<access_token>",
+        "scope": "basic"
+    },
+    "linkedin": {
+        "url_authorize": "https://www.linkedin.com/oauth/v2/authorization",
+        "url_access_token": "https://www.linkedin.com/oauth/v2/accessToken",
+        "url_resource_owner_details": "https://api.linkedin.com/v2/me",
+        "scope": "r_liteprofile r_emailaddress"
+    }
+}