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