Skip to content
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 suggest CDPATH support #241786

Open
3 tasks
Tyriar opened this issue Feb 25, 2025 · 0 comments
Open
3 tasks

Test: Terminal suggest CDPATH support #241786

Tyriar opened this issue Feb 25, 2025 · 0 comments
Assignees
Milestone

Comments

@Tyriar
Copy link
Member

Tyriar commented Feb 25, 2025

Refs: #239401

Complexity: 2

Authors: @meganrogge, @Tyriar

Roles: Developer, Engineering Manager

Create Issue


$CDPATH is a feature in many shells that allows configuring a list of paths to allow navigating to as if relative, regardless of their location. For example the environment variable CDPATH=/dev will allow you to navigate to /dev/vscode by running cd vscode, regardless of whether the shell is currently in /dev/ or not.

VS Code now supports this in its suggest widget. Set "terminal.integrated.suggest.enabled": true and a CDPATH environment variable to test this feature.

Image

Test the following:

  • ctrl+space can force the suggest widget to appear
  • Note that you can export CDPATH=... and expect it to work provided environment reporting is working (terminal.integrated.shellIntegration.environmentReporting), this should be enabled by default in Insiders. If not, you would need to restart VS Code to source a new shell environment.
  • It should work in any shell because of the default "terminal.integrated.suggest.cdPath": "absolute", even shells that don't support CDPATH
  • CDPATH uses a ; path separator on Windows and a : path separator on non-Windows.
  • Test each value of terminal.integrated.suggest.cdPath
  • The completions should typically show up at the bottom of the completions list unless the input is a close match
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants