summaryrefslogtreecommitdiff
path: root/Completion/X/Command/_code
diff options
context:
space:
mode:
authorAxel Beckert <abe@deuxchevaux.org>2018-04-09 00:42:15 +0200
committerAxel Beckert <abe@deuxchevaux.org>2018-04-09 00:42:15 +0200
commitfe36c1ada77f817dbeeeed5ee70c7ba08eeb1d18 (patch)
tree0229967da5e73bd29a2d6014c847509b361f3631 /Completion/X/Command/_code
parent1521c7d0f7e607b789564e819173e228e9475137 (diff)
parentf9e9dce5443f323b340303596406f9d3ce11d23a (diff)
downloadzsh-fe36c1ada77f817dbeeeed5ee70c7ba08eeb1d18.tar.gz
zsh-fe36c1ada77f817dbeeeed5ee70c7ba08eeb1d18.zip
Merge tag 'zsh-5.5' and hence branch 'upstream' into branch 'debian'
Release 5.5 of zsh
Diffstat (limited to 'Completion/X/Command/_code')
-rw-r--r--Completion/X/Command/_code36
1 files changed, 36 insertions, 0 deletions
diff --git a/Completion/X/Command/_code b/Completion/X/Command/_code
new file mode 100644
index 000000000..089050e26
--- /dev/null
+++ b/Completion/X/Command/_code
@@ -0,0 +1,36 @@
+#compdef code
+
+local arguments
+
+arguments=(
+ '(-d --diff)'{-d,--diff}'[compare two files with each other]:file to compare:_files:file to compare with:_files'
+ \*{-a,--add}'[add specified directory 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}'[open a new window]'
+ '(-n --new-window -r --reuse-window)'{-r,--reuse-window}'[open a file or directory in the last active window]'
+ '(-w --wait)'{-w,--wait}'[wait for the files to be closed before returning]'
+ '--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)'
+ '--user-data-dir[specify the directory that user data is in]:directory:_directories'
+ '(- *)'{-v,--version}'[print version]'
+ '(- *)'{-h,--help}'[print usage]'
+ '--extensions-dir[specify the root path for extensions]:root path:_directories'
+ '--list-extensions[list the installed extensions]'
+ '--show-versions[show versions of installed extensions, when using --list-extension]'
+ '--install-extension[specify extension to install]:id or path:_files -g "*.vsix(-.)"'
+ '--uninstall-extension[specify extension to uninstall]:id or path:_files -g "*.vsix(-.)"'
+ '--enable-proposed-api[enable proposed api features for specified extension]:extension id'
+ '--verbose[print verbose output (implies --wait)]'
+ '--log[specify 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-extensions[disable all installed extensions]'
+ '--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]'
+ '--upload-logs[uploads logs from current session to a secure endpoint]:confirm:(iConfirmLogsUpload)'
+ '--max-memory=[specify max memory size for a window]:size (Mbytes)'
+ '*:filename:_files'
+)
+
+_arguments -s -S $arguments