ignore all /d arg if running inside vscode

This commit is contained in:
Dax T. Games 2019-01-06 18:09:06 -05:00
parent 6d8f7a290a
commit 760f4e579e

7
vendor/init.bat vendored
View File

@ -41,9 +41,6 @@ call "%cmder_root%\vendor\lib\lib_console"
call "%cmder_root%\vendor\lib\lib_git" call "%cmder_root%\vendor\lib\lib_git"
call "%cmder_root%\vendor\lib\lib_profile" call "%cmder_root%\vendor\lib\lib_profile"
if defined VSCODE_CWD (
goto start
)
:var_loop :var_loop
if "%~1" == "" ( if "%~1" == "" (
goto :start goto :start
@ -54,7 +51,9 @@ if defined VSCODE_CWD (
) else if /i "%1"=="/v" ( ) else if /i "%1"=="/v" (
set verbose_output=1 set verbose_output=1
) else if /i "%1"=="/d" ( ) else if /i "%1"=="/d" (
set debug_output=1 if not defined VSCODE_CWD (
set debug_output=1
)
) else if /i "%1" == "/max_depth" ( ) else if /i "%1" == "/max_depth" (
if "%~2" geq "1" if "%~2" leq "5" ( if "%~2" geq "1" if "%~2" leq "5" (
set "max_depth=%~2" set "max_depth=%~2"