-
Notifications
You must be signed in to change notification settings - Fork 30.8k
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
workspaceFolderBasename variable is not resolving immediately after window load #115560
Comments
Were you able to find a solution for this? I have this in settings.json: "terminal.integrated.profiles.linux": {
"tmux ws-session": {
"path": "tmux",
"args": [
"new-session",
"-A",
"-s",
"vscode-${workspaceFolderBasename}"
]
},
} and the "osx" version works correctly locally (it's identical), but whenever I use Remote-SSH my tmux session is named |
This is impacting me too, but I was able to come up with this work-around (but it isn't pretty...) In your remote config, replace the other config with this line (Replace path as appropriate): {
"terminal.integrated.shell.linux": "/path/to/home/bin/code-tmux"
} And #!/bin/bash
exec tmux new-session -A -s vscode-$(basename $PWD) Hope it helps for now until config variables work again here. |
@zix99 works a treat, nice one! |
Related: #126066 |
In my case it is not resolving at all, not even after reload. Tried it on the current vs code and with the insiders edition, running on Mac OS. Tried using it within user setting and within workspace setting, as part of the clangd configuration |
When I work with julia extension with tmux persistent mode. It's really weird on start REPL the |
/duplicate #81231 |
Issue Type: Bug
In order to avoid multiple remote tmux sessions, I set in settings.json the following
"terminal.integrated.shell.linux": "/usr/bin/tmux",
"terminal.integrated.shellArgs.linux": [
"new-session",
"-A",
"-s",
"${workspaceFolderBasename}"
],
I expect that workspaceFolderBasename variable contains valid value. However, initally or after window reload this variable is not set. It is only set correctly after I switch source code tabs or open a file.
This is a problem when using remote sessions, because this happens every time I reconnect to the remote session and VSCode tells me to reload window.
VS Code version: Code 1.52.1 (ea3859d, 2020-12-16T16:34:46.910Z)
OS version: Windows_NT x64 10.0.18363
Remote OS version: Linux x64 4.15.0-45-generic
Remote OS version: Linux x64 4.15.0-45-generic
System Info
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
opengl: enabled_on
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Extensions (13)
A/B Experiments
The text was updated successfully, but these errors were encountered: