-
Notifications
You must be signed in to change notification settings - Fork 29.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test: terminal completions on bash/zsh
#235021
Comments
bash/zsh
bash/zsh
I plan on doing some testing on Windows tomorrow and investigate why it doesn't work |
Couldn't make it work on My settings: {
"terminal.integrated.suggest.enabled": true,
"terminal.integrated.suggest.enableExtensionCompletions": true,
"terminal.integrated.enablePersistentSessions": false
} Started vscode with the I also accidently tested on |
Investigated the Windows issue and it should be fixed with #235276 |
Added follow up issue for Unix machines here: #235331 |
Refs #226562
Complexity: 5
Authors: @meganrogge, @Tyriar
Roles: Developer, Engineering Manager
Create Issue
Background
In prior iterations, terminal completions were added for
pwsh
via our shell integration script. This iteration, we've added support forbash
andzsh
(alsofish
, which is currently blocked by #233799). This was accomplished by adding a built-interminal-suggest
extension, which provides completions via new proposed API.vscode/src/vscode-dts/vscode.proposed.terminalCompletionProvider.d.ts
Lines 5 to 119 in 226f700
Testing
To test terminal completions, you will need to enable
terminal.integrated.suggest.enabled
andterminal.integrated.suggest.enableExtensionCompletions
.Note that reconnected terminals do not have their
cwd
set, which breaks folder/file completion functionality. While testing, to avoid this issue, I suggest disabling persistence withterminal.integrated.enablePersistentSessions: false
. This issue is tracked here #234672.Completions are provided under these circumstances:
/
has been added to the terminalctrl+space
There are several types of completions:
$PATH
or built-in in per shell type)We have added three
specs
for now, with plans to add many more in future iterations. These include:code
code-insiders
cd
When you type after using any of these specs, you should be provided with options, arguments, and files/folders as expected.
For example:
code-insiders --locale e
should prompt you with justlocale
options ofen
andes
.code-insiders --
should provide you with a list of all options.cd
and requesting completions should provide you with only folder completions.File/folder completions are provided as a fallback when there are no specific options/arguments to provide.
The text was updated successfully, but these errors were encountered: