Microsoft/vscode

Dragging-n-dropping a file with tilde in the name into terminal

Open

#276.999 aberto em 12 de nov. de 2025

Ver no GitHub
 (6 comments) (1 reaction) (1 assignee)TypeScript (10.221 forks)batch import
bughelp wantedterminal-input

Métricas do repositório

Stars
 (74.848 stars)
Métricas de merge de PR
 (Mesclagem média 11h 43m) (1.000 fundiu PRs em 30d)

Description

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.105.1
  • OS Version: Arch Linux

Steps to Reproduce:

  1. Create a file with one or more tilde ("~") character(s) in its name
  2. In the EXPLORER view navigate to that file
  3. Open TERMINAL tab
  4. Drag and drop the file with tilde in its name from the EXPLORER to the TERMINAL

Expected behavior: File path should appear copied into the terminal

Actual behavior: Tilde character(s) gets silently dropped in the copied/pasted path. This results into an invalid path pointing to a non-existent file.

EDIT.

Tilde turns out to be not the only character that gets silently dropped this way. This issue is reproducible whenever at least one of the following characters is present in the file name:

~ - Tilde
` - Backtick
! - Exclamation
# - Hash / Number Sign
$ - Dollar Sign
^ - Caret or Circumflex
& - Ampersand
* - Asterisk
| - Vertical Bar or Pipe
; - Semicolon
< - Less-Than Sign
> - Greater-Than Sign

Guia do colaborador