Skip to content

Add command line completion in zsh for the "code" command #47101

Closed
@Mellbourn

Description

@Mellbourn

Feature request:

I think it would be nice if vscode included zsh command line completions for the code command. So I've implemented that in this script https://github.com/Mellbourn/dotfiles/blob/master/.zsh-personal-completions/_code.
This implementation gives completion for all documented parameters and has specialized completion for parameters that don't take filenames as parameters, for example --add only take directories as arguments.
I have tested that it works well on macOS and Windows Subsystem for Linux (Ubuntu).

I will gladly submit this file as part of a pull request.

However, this file needs to be in the PATH or fpath environment variable if it is to take effect in zsh. Unfortunately I have no good idea how to implement the deploy mechanism to achieve that.

I am very open to suggestions on how to proceed.

Metadata

Metadata

Assignees

Labels

*out-of-scopePosted issue is not in scope of VS Code

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions