Yin Bin 4 달 전
부모
커밋
2e56a8343c
5개의 변경된 파일103개의 추가작업 그리고 90개의 파일을 삭제
  1. 2 3
      .vscode/extensions.json
  2. 86 86
      .vscode/settings.json
  3. 11 0
      README.md
  4. 3 1
      composer.json
  5. 1 0
      config/app.php

+ 2 - 3
.vscode/extensions.json

@@ -24,7 +24,6 @@
         "mehedidracula.php-namespace-resolver",
         "damms005.devdb",
         "Gruntfuggly.todo-tree",
-        "naumovs.color-highlight",
-        "phpactor.vscode-phpactor",
-    ],
+        "naumovs.color-highlight"
+    ]
 }

+ 86 - 86
.vscode/settings.json

@@ -1,7 +1,57 @@
 {
-    "i18n-ally.localesPaths": [
-        "lang"
+    "ansible.python.interpreterPath": "/bin/python3",
+    "ansible.validation.lint.arguments": "--skip-list=fqcn[action-core,action]",
+    "aws.telemetry": false,
+    "codetogether.virtualCursorJoin": "sharedVirtualCursor",
+    "codetogether.virtualCursorRemember": true,
+    "cSpell.autoFormatConfigFile": true,
+    "cSpell.words": [
+        "Arrayable",
+        "bootable",
+        "Deviable",
+        "initializable",
+        "Jsonable",
+        "Queueable",
+        "setex",
+        "unserialized"
     ],
+    "database-client.autoSync": true,
+    "editor.formatOnPaste": true,
+    "editor.formatOnSave": true,
+    "editor.formatOnType": true,
+    "evenBetterToml.formatter.arrayAutoCollapse": true,
+    "evenBetterToml.formatter.arrayAutoExpand": true,
+    "extensions.experimental.useUtilityProcess": true,
+    "files.autoSaveWhenNoErrors": true,
+    "files.autoSaveWorkspaceFilesOnly": true,
+    "files.eol": "\n",
+    "files.insertFinalNewline": true,
+    "files.trimTrailingWhitespace": true,
+    "git.autofetch": true,
+    "git.autofetchPeriod": 60,
+    "git.autoStash": true,
+    "git.confirmSync": false,
+    "git.enableSmartCommit": true,
+    "git.enableStatusBarSync": true,
+    "git.fetchOnPull": true,
+    "git.pullBeforeCheckout": true,
+    "git.showPushSuccessNotification": true,
+    "git.showUnpublishedCommitsButton": "always",
+    "i18n-ally.displayLanguage": "zh-CN",
+    "i18n-ally.localesPaths": ["lang"],
+    "i18n-ally.sourceLanguage": "zh",
+    "intelephense.diagnostics.undefinedMethods": false,
+    "notebook.lineNumbers": "on",
+    "php.problems.exclude": {
+        "/": [406],
+        "vendor/": true,
+        "_ide_helper.php": true,
+        "_ide_helper_models.php": true,
+        ".phpstorm.meta.php": true,
+        "storage/": true
+    },
+    "php.suggest.basic": false,
+    "redhat.telemetry.enabled": true,
     "rest-client.environmentVariables": {
         "$shared": {
             "version": "v1"
@@ -10,27 +60,38 @@
             "host": "http://127.0.0.1",
             "token": "Bearer 4|61U2jey1KvR4Z1pE7Qr8Sh9ri2G3jn1ClnonXA2J86f61575"
         },
-        "testing": {
-            "host": "http://test-api.example.com",
-            "token": "test-token"
-        },
         "production": {
             "host": "http://api.example.com",
             "token": "prod-token"
+        },
+        "testing": {
+            "host": "http://test-api.example.com",
+            "token": "test-token"
         }
     },
-    "window.zoomLevel": 0.2,
-    "git.autofetch": true,
-    "git.autofetchPeriod": 60,
-    "git.autoStash": true,
-    "git.pullBeforeCheckout": true,
-    "git.showPushSuccessNotification": true,
-    "git.enableStatusBarSync": true,
-    "workbench.colorTheme": "Default Light Modern",
-    "windsurf.autocompleteSpeed": "default",
-    "redhat.telemetry.enabled": true,
-    "ansible.validation.lint.arguments": "--skip-list=fqcn[action-core,action]",
-    "vim.useCtrlKeys": true,
+    "terminal.integrated.copyOnSelection": true,
+    "terminal.integrated.cwd": "${workspaceFolder}",
+    "terminal.integrated.defaultProfile.linux": "zsh",
+    "terminal.integrated.defaultProfile.osx": "zsh",
+    "terminal.integrated.env.osx": {
+        "PATH": "${env:PATH}:${workspaceFolder}/vendor/bin:${workspaceFolder}/script/ansible/bin:${workspaceFolder}/script/bin"
+    },
+    "terminal.integrated.inheritEnv": true,
+    "terminal.integrated.profiles.linux": {
+        "zsh": {
+            "path": "/usr/bin/zsh",
+            "icon": "terminal",
+            "args": ["-l"]
+        }
+    },
+    "terminal.integrated.profiles.osx": {
+        "zsh": {
+            "path": "zsh",
+            "icon": "terminal",
+            "args": ["-l"]
+        }
+    },
+    "vim.easymotion": true,
     "vim.handleKeys": {
         "<C-a>": false,
         "<C-b>": false,
@@ -59,76 +120,15 @@
         "<C-y>": false,
         "<C-z>": false
     },
+    "vim.hlsearch": true,
+    "vim.incsearch": true,
     "vim.showmodename": true,
     "vim.statusBarColorControl": true,
-    "vim.easymotion": true,
-    "vim.incsearch": true,
+    "vim.useCtrlKeys": true,
     "vim.useSystemClipboard": true,
-    "vim.hlsearch": true,
-    "git.enableSmartCommit": true,
-    "i18n-ally.displayLanguage": "zh-CN",
-    "workbench.iconTheme": "vscode-icons",
-    "database-client.autoSync": true,
-    "files.eol": "\n",
-    "files.insertFinalNewline": true,
-    "files.trimTrailingWhitespace": true,
-    "notebook.lineNumbers": "on",
-    "terminal.integrated.cwd": "${workspaceFolder}",
-    "terminal.integrated.defaultProfile.linux": "zsh",
-    "terminal.integrated.profiles.linux": {
-        "zsh": {
-            "path": "/usr/bin/zsh",
-            "icon": "terminal",
-            "args": ["-l",  "-c", "cd ${workspaceFolder} && source .zshrc && exec zsh"],
-        }
-    },
-    "terminal.integrated.inheritEnv": true,
-    "terminal.integrated.defaultProfile.osx": "zsh",
-    "terminal.integrated.profiles.osx": {
-        "zsh": {
-            "path": "zsh",
-            "icon": "terminal",
-            "args": ["-l"]
-        }
-    },
-    "terminal.integrated.env.osx": {
-        "PATH": "${env:PATH}:${workspaceFolder}/vendor/bin:${workspaceFolder}/script/ansible/bin:${workspaceFolder}/script/bin"
-    },
-    "git.confirmSync": false,
-    "git.fetchOnPull": true,
-    "git.showUnpublishedCommitsButton": "always",
-    "aws.telemetry": false,
-    "editor.formatOnPaste": true,
-    "editor.formatOnType": true,
-    "evenBetterToml.formatter.arrayAutoExpand": true,
-    "evenBetterToml.formatter.arrayAutoCollapse": true,
-    "cSpell.autoFormatConfigFile": true,
-    "files.autoSaveWhenNoErrors": true,
-    "files.autoSaveWorkspaceFilesOnly": true,
-    "editor.formatOnSave": true,
-    "extensions.experimental.useUtilityProcess": true,
-    "i18n-ally.sourceLanguage": "zh",
-    "cSpell.words": [
-        "Arrayable",
-        "bootable",
-        "Deviable",
-        "initializable",
-        "Jsonable",
-        "Queueable",
-        "setex",
-        "unserialized"
-    ],
-    "php.problems.exclude": {
-        "/": [406],
-        "vendor/": true,
-        "_ide_helper.php": true,
-        "_ide_helper_models.php": true,
-        ".phpstorm.meta.php": true,
-        "storage/": true
-    },
     "vite.autoStart": false,
-    "codetogether.virtualCursorJoin": "sharedVirtualCursor",
-    "codetogether.virtualCursorRemember": true,
-    "ansible.python.interpreterPath": "/bin/python3",
-    "terminal.integrated.copyOnSelection": true,
+    "window.zoomLevel": 0.2,
+    "windsurf.autocompleteSpeed": "default",
+    "workbench.colorTheme": "Default Light Modern",
+    "workbench.iconTheme": "vscode-icons"
 }

+ 11 - 0
README.md

@@ -84,3 +84,14 @@ xdebug.client_host=127.0.0.1
 ; 添加日志便于排查问题
 xdebug.log=/tmp/xdebug.log
 ```
+
+## 彻底解决 vscode 命令行不好用的问题
+
+```bash
+
+vim ~/.zshrc
+
+在path中增加:你的项目路径/script/bin
+在path中增加:你的项目路径/script/ansible/bin
+
+```

+ 3 - 1
composer.json

@@ -54,7 +54,9 @@
             "@php artisan package:discover --ansi"
         ],
         "post-update-cmd": [
-            "@php artisan vendor:publish --tag=laravel-assets --ansi --force"
+            "Illuminate\\Foundation\\ComposerScripts::postUpdate",
+            "@php artisan ide-helper:generate",
+            "@php artisan ide-helper:meta"
         ],
         "post-root-package-install": [
             "@php -r \"file_exists('.env') || copy('.env.example', '.env');\""

+ 1 - 0
config/app.php

@@ -164,6 +164,7 @@ return [
 
         // Application Service Providers...
         App\Providers\QueryLogServiceProvider::class,
+        Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class,
     ],
 
     /*