ignore all args if running inside vscode

This commit is contained in:
Dax T. Games 2019-01-06 17:46:50 -05:00
parent 2a4e9d8301
commit 6d8f7a290a

7
vendor/init.bat vendored
View File

@ -41,6 +41,9 @@ 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
@ -51,9 +54,7 @@ call "%cmder_root%\vendor\lib\lib_profile"
) 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" (
if not defined VSCODE_CWD ( set debug_output=1
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"