|
| 1 | +#compdef code |
| 2 | + |
| 3 | +local arguments |
| 4 | + |
| 5 | +arguments=( |
| 6 | + '(-d --diff)'{-d,--diff}'[compare two files with each other]:file to compare:_files:file to compare with:_files' |
| 7 | + \*{-a,--add}'[add specified directory to the last active window.]:directory:_directories' |
| 8 | + '(-g --goto)'{-g,--goto}'[open a file at the path on the specified line and column position]:file\:line[\:column]:_files -r \:' |
| 9 | + '(-n --new-window -r --reuse-window)'{-n,--new-window}'[open a new window]' |
| 10 | + '(-n --new-window -r --reuse-window)'{-r,--reuse-window}'[open a file or directory in the last active window]' |
| 11 | + '(-w --wait)'{-w,--wait}'[wait for the files to be closed before returning]' |
| 12 | + '--locale=[specify the locale to use]:locale (e.g. en-US or zh-TW):(de en en-US es fr it ja ko ru zh-CN zh-TW bg hu pt-br tr bg hu pt-br tr)' |
| 13 | + '--user-data-dir[specify the directory that user data is in]:directory:_directories' |
| 14 | + '(- *)'{-v,--version}'[print version]' |
| 15 | + '(- *)'{-h,--help}'[print usage]' |
| 16 | + '--extensions-dir[specify the root path for extensions]:root path:_directories' |
| 17 | + '--list-extensions[list the installed extensions]' |
| 18 | + '--show-versions[show versions of installed extensions, when using --list-extension]' |
| 19 | + '--install-extension[specify extension to install]:id or path:_files -g "*.vsix(-.)"' |
| 20 | + '--uninstall-extension[specify extension to uninstall]:id or path:_files -g "*.vsix(-.)"' |
| 21 | + '--enable-proposed-api[enable proposed api features for specified extension]:extension id' |
| 22 | + '--verbose[print verbose output (implies --wait)]' |
| 23 | + '--log[specify log level to use]:level [info]:(critical error warn info debug trace off)' |
| 24 | + '(-s --status)'{-s,--status}'[print process usage and diagnostics information]' |
| 25 | + '(-p --performance)'{-p,--performance}'[start with the "Developer: Startup Performance" command enabled]' |
| 26 | + '--prof-startup[run CPU profiler during startup]' |
| 27 | + '--disable-extensions[disable all installed extensions]' |
| 28 | + '--inspect-extensions[allow debugging and profiling of extensions]' |
| 29 | + '--inspect-brk-extensions[allow debugging and profiling of extensions with the extension host being paused after start]' |
| 30 | + '--disable-gpu[disable GPU hardware acceleration]' |
| 31 | + '--upload-logs[uploads logs from current session to a secure endpoint]:confirm:(iConfirmLogsUpload)' |
| 32 | + '--max-memory=[specify max memory size for a window]:size (Mbytes)' |
| 33 | + '*:filename:_files' |
| 34 | +) |
| 35 | + |
| 36 | +_arguments -s -S $arguments |
0 commit comments