mirror of
				https://github.com/cmderdev/cmder.git
				synced 2025-10-31 17:32:27 +08:00 
			
		
		
		
	ignore all /d arg if running inside vscode
This commit is contained in:
		
							
								
								
									
										5
									
								
								vendor/init.bat
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										5
									
								
								vendor/init.bat
									
									
									
									
										vendored
									
									
								
							| @@ -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" ( | ||||||
|  |         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" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user