Archived
1
0

Merge commit 'be3e8236086165e5e45a5a10783823874b3f3ebd' as 'lib/vscode'

This commit is contained in:
Joe Previte
2020-12-15 15:52:33 -07:00
4649 changed files with 1311795 additions and 0 deletions

View File

@ -0,0 +1,61 @@
_@@APPNAME@@()
{
local cur prev words cword split
_init_completion -s || return
_expand || return
case $prev in
-d|--diff)
_filedir
return
;;
-a|--add|--user-data-dir|--extensions-dir)
_filedir -d
return
;;
-g|--goto)
compopt -o nospace
_filedir
return
;;
--locale)
COMPREPLY=( $( compgen -W 'de en en-US es fr it ja ko ru zh-CN zh-TW bg hu pt-br tr' ) )
return
;;
--install-extension|--uninstall-extension)
_filedir vsix
return
;;
--log)
COMPREPLY=( $( compgen -W 'critical error warn info debug trace off' ) )
return
;;
--folder-uri|--disable-extension|--max-memory)
# argument required but no completions available
return 0
;;
--enable-proposed-api)
# argument optional but no completions available
;;
esac
$split && return
if [[ $cur == -* ]]; then
COMPREPLY=( $( compgen -W '-d --diff --folder-uri -a --add -g
--goto -n --new-window -r --reuse-window -w --wait --locale=
--user-data-dir -v --version -h --help --extensions-dir
--list-extensions --show-versions --install-extension
--uninstall-extension --enable-proposed-api --verbose --log -s
--status -p --performance --prof-startup --disable-extensions
--disable-extension --inspect-extensions
--inspect-brk-extensions --disable-gpu
--max-memory=' -- "$cur") )
[[ $COMPREPLY == *= ]] && compopt -o nospace
return
fi
_filedir
} &&
complete -F _@@APPNAME@@ @@APPNAME@@

View File

@ -0,0 +1,39 @@
#compdef @@APPNAME@@
local arguments
arguments=(
'(-d --diff)'{-d,--diff}'[compare two files with each other]:file to compare:_files:file to compare with:_files'
\*'--folder-uri[open a window with given folder uri(s)]:folder uri: '
\*{-a,--add}'[add folder(s) to the last active window]:directory:_directories'
'(-g --goto)'{-g,--goto}'[open a file at the path on the specified line and column position]:file\:line[\:column]:_files -r \:'
'(-n --new-window -r --reuse-window)'{-n,--new-window}'[force to open a new window]'
'(-n --new-window -r --reuse-window)'{-r,--reuse-window}'[force to open a file or folder in an already opened window]'
'(-w --wait)'{-w,--wait}'[wait for the files to be closed before returning]'
'--locale=[the locale to use (e.g. en-US or zh-TW)]: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)'
'--user-data-dir[specify the directory that user data is kept in]:directory:_directories'
'(- *)'{-v,--version}'[print version]'
'(- *)'{-h,--help}'[print usage]'
'--telemetry[show all telemetry events which VS code collects]'
'--extensions-dir[set the root path for extensions]:root path:_directories'
'--list-extensions[list the installed extensions]'
'--category[filters installed extension list by category, when using --list-extension]'
'--show-versions[show versions of installed extensions, when using --list-extension]'
'--install-extension[install an extension]:id or path:_files -g "*.vsix(-.)"'
'--uninstall-extension[uninstall an extension]:id or path:_files -g "*.vsix(-.)"'
'--enable-proposed-api[enables proposed API features for extensions]::extension id: '
'--verbose[print verbose output (implies --wait)]'
'--log[log level to use]:level [info]:(critical error warn info debug trace off)'
'(-s --status)'{-s,--status}'[print process usage and diagnostics information]'
'(-p --performance)'{-p,--performance}'[start with the "Developer: Startup Performance" command enabled]'
'--prof-startup[run CPU profiler during startup]'
'(--disable-extension --disable-extensions)--disable-extensions[disable all installed extensions]'
\*'--disable-extension[disable an extension]:extension id: '
'--inspect-extensions[allow debugging and profiling of extensions]'
'--inspect-brk-extensions[allow debugging and profiling of extensions with the extension host being paused after start]'
'--disable-gpu[disable GPU hardware acceleration]'
'--max-memory=[max memory size for a window (in Mbytes)]:size (Mbytes)'
'*:file or directory:_files'
)
_arguments -s -S $arguments