TheColorRed / vscode-laravel-artisan

Visual Studio Code Laravel Artisan Extension
https://marketplace.visualstudio.com/items?itemName=ryannaddy.laravel-artisan
68 stars 19 forks source link

Docker Command doesn't change drives #73

Closed sean64 closed 1 year ago

sean64 commented 3 years ago

Quick fix based on your existing code. When you get the chance to review.

--- a/src/Common.ts
+++ b/src/Common.ts
@@ -93,7 +93,11 @@ export default class Common {

     if (dockerEnabled) {
       command = `php artisan ${command}`
-      cmd = `cd ${artisanRoot} && ${dockerCommand} ${command}`
+      cmd = process.platform == 'win32' ?
+                // Windows command
+                `cd /d "${artisanRoot}" && ${dockerCommand} ${command}` :
+                // Unix command
+                `cd ${artisanRoot} && ${dockerCommand} ${command}`;
     } else {
       command = `"${phpLocation}" artisan ${command}`
       cmd = process.platform == 'win32' ?
github-actions[bot] commented 1 year ago

Stale issue message