microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
163.64k stars 29.04k forks source link

When using the built-in file simple dialog box, the path cannot contain the ~ symbol #135375

Closed huye closed 2 years ago

huye commented 3 years ago

Issue Type: Bug

This problem has been fed back for at least one year, but now the problem remains. When you press Ctrl + O and enter the ~ symbol anywhere in the path box, the path in the box will be changed to the home directory.

VS Code version: Code 1.60.2 (7f6ab5485bbc008386c4386d08766667e155244e, 2021-09-22T12:01:43.795Z) OS version: Linux x64 5.4.0-88-generic Restricted Mode: No

System Info |Item|Value| |---|---| |CPUs|AMD Ryzen 7 3750H with Radeon Vega Mobile Gfx (8 x 1518)| |GPU Status|2d_canvas: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
opengl: enabled_on
rasterization: disabled_software
skia_renderer: enabled_on
video_decode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled| |Load (avg)|1, 1, 2| |Memory (System)|14.65GB (2.84GB free)| |Process Argv|--unity-launch --crash-reporter-id 14391a16-897d-41f8-af87-c27038b34956| |Screen Reader|no| |VM|0%| |DESKTOP_SESSION|plasma| |XDG_CURRENT_DESKTOP|KDE| |XDG_SESSION_DESKTOP|KDE| |XDG_SESSION_TYPE|x11|
Extensions (9) Extension|Author (truncated)|Version ---|---|--- vscode-intelephense-client|bme|1.7.1 vscode-test-explorer|hbe|2.21.1 php-cs-fixer|jun|0.2.8 php-server-vars-snippets|Mih|0.0.3 vscode-language-pack-zh-hans|MS-|1.60.4 jupyter-keymap|ms-|1.0.0 test-adapter-converter|ms-|0.1.3 php-docblocker|nei|2.6.1 code-settings-sync|Sha|3.4.3
A/B Experiments ``` vsliv368cf:30146710 vsreu685:30147344 python383cf:30185419 pythonvspyt602:30300191 vspor879:30202332 vspor708:30202333 vspor363:30204092 vswsl492cf:30256860 pythonvspyt639:30300192 pythontb:30283811 pythonptprofiler:30281270 vsdfh931cf:30280410 vshan820:30294714 vstes263cf:30335440 pythondataviewer:30285071 pythonvsuse255:30340121 vscod805cf:30301675 pythonvspyt200:30340761 binariesv615:30325510 vsccppwtct:30378365 pythonvssor306:30344512 bridge0708:30335490 pygetstartedt2:30371810 dockerwalkthru:30377721 bridge0723:30353136 pythonrunftest32:30373476 pythonf5test824:30373475 javagetstartedt:30364666 pythonvspyt187:30373474 pydsgst2:30361792 vsqsis200:30374795 vsaa593:30376534 vssld246:30379911 ```
huye commented 3 years ago

I gave feedback before, and the following people replied that it was designed like this. But I don't think I can understand if it is the first letter input ~ symbol, but what about the ~ symbol in the path?

For example: My home directory is: /home/myhome The path I want to enter is: /data/mycode/file~bak.cpp When I have entered /data/mycode/file, now I want to enter the ~ symbol. But when I press the ~ key, and the whole input box becomes /home/myhome. Do you think this is reasonable?

Originally posted by @alexr00 in https://github.com/microsoft/vscode/issues/98431#issuecomment-633865748

gjsjohnmurray commented 3 years ago

/assign @alexr00