Skip to content

Shell Integration is injected before config.fish has been evaluated in fish shell #226554

@aravind-n

Description

@aravind-n

Type: Bug

  • Disable shell integration in vscode
  • Manually add the shell integration in $__fish_config_dir/config.fish
    • string match -q "$TERM_PROGRAM" "vscode"; and . (code --locate-shell-integration-path fish)
  • Paste the following code into config.fish
    • function fish_prompt; echo -n "> "; end
  • Open a new integrated terminal
  • Shell integration will not work
  • Move the manual shell integration line in config.fish after the line where you defined fish_prompt
  • Open a new integrated terminal
  • Shell integration will work

VS Code version: Code 1.92.2 (fee1edb, 2024-08-14T17:29:30.058Z)
OS version: Darwin x64 22.6.0
Modes:

System Info
Item Value
CPUs Intel(R) Core(TM) i7-7920HQ CPU @ 3.10GHz (8 x 3100)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) 2, 2, 2
Memory (System) 16.00GB (1.52GB free)
Process Argv --disable-extensions
Screen Reader no
VM 0%
Extensions disabled

Metadata

Metadata

Labels

feature-requestRequest for new features or functionalityterminal-shell-fishAn issue in the terminal specific to fish, including shell integrationterminal-shell-integrationShell integration infrastructure, command decorations, etc.verification-neededVerification of issue is requestedverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions