Skip to content

Commit c7b39b8

Browse files
committed
shellIntegration.fish: nit: rename __vsc_escape_cmd to __vsc_escape_value
1 parent 3a5c642 commit c7b39b8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/vs/workbench/contrib/terminal/browser/media/shellIntegration.fish

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ end
3131
# Marks the beginning of command output.
3232
function __vsc_cmd_executed --on-event fish_preexec
3333
__vsc_esc C
34-
__vsc_esc E (__vsc_escape_cmd "$argv")
34+
__vsc_esc E (__vsc_escape_value "$argv")
3535

3636
# Creates a marker to indicate a command was run.
3737
set --global _vsc_has_cmd
3838
end
3939

4040

41-
# Escapes backslashes, newlines, and semicolons to serialize the command line.
42-
function __vsc_escape_cmd
41+
# Escape a value for use in the 'P' ("Property") or 'E' ("Command Line") sequences.
42+
function __vsc_escape_value
4343
set -l commandline "$argv"
4444
# `string replace` automatically breaks its input apart on any newlines.
4545
# Then `string join` at the end will bring it all back together.

0 commit comments

Comments
 (0)