File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
src/vs/workbench/contrib/terminal/browser/media Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -137,6 +137,9 @@ __vsc_escape_value() {
137
137
# Send the IsWindows property if the environment looks like Windows
138
138
if [[ " $( uname -s) " =~ ^CYGWIN* | MINGW* | MSYS* ]]; then
139
139
builtin printf ' \e]633;P;IsWindows=True\a'
140
+ __vsc_is_windows=1
141
+ else
142
+ __vsc_is_windows=0
140
143
fi
141
144
142
145
# Allow verifying $BASH_COMMAND doesn't have aliases resolved via history when the right HISTCONTROL
@@ -168,7 +171,12 @@ __vsc_prompt_end() {
168
171
}
169
172
170
173
__vsc_update_cwd () {
171
- builtin printf ' \e]633;P;Cwd=%s\a' " $( __vsc_escape_value " $PWD " ) "
174
+ if [ " $__vsc_is_windows " = " 1" ]; then
175
+ __vsc_cwd=" $( cygpath -m " $PWD " ) "
176
+ else
177
+ __vsc_cwd=" $PWD "
178
+ fi
179
+ builtin printf ' \e]633;P;Cwd=%s\a' " $( __vsc_escape_value " $__vsc_cwd " ) "
172
180
}
173
181
174
182
__vsc_command_output_start () {
You can’t perform that action at this time.
0 commit comments