-
Notifications
You must be signed in to change notification settings - Fork 30.5k
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
terminal.goToRecentDirectory
is not shell-aware
#178994
Comments
Good idea 👍. I guess we would also want to consider whether |
cc @zadjii-msft |
I think |
Ha, yes, this just came up in a review I was doing too. link.
If you do end up doing something like this with a custom property, we can try and follow suite. I'm pretty sure there's an edge case somewhere out there where one shell will accept paths wrapped in single-quotes, and others in double quotes. I'm also personally not planning on sending the |
@zadjii-msft we have a pattern where we don't send the \r if you hold alt fyi: |
Oh that's neat, I'll have to keep that in mind |
The shell integration feature can be used by arbitrary REPL-like programs. This includes
cwd
detection. Unfortunately, the current implementation ofworkbench.action.terminal.goToRecentDirectory
can't handle that gracefully, since it seems to always send something likecd $dir\n
to the terminal.This is the status quo in Julia (switching to shell mode makes the command work, but is cumbersome):
![Peek 2023-04-03 13-16](https://user-images.githubusercontent.com/6735977/229494175-8de563b5-9e87-44f7-8e43-ed0483eb44f7.gif)
It would be awesome if REPL-likes could register a template string at startup, which VS Code would then send instead of
cd $dir
. E.g.The text was updated successfully, but these errors were encountered: