-
Notifications
You must be signed in to change notification settings - Fork 29.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to open file at a line number from the terminal if filename ends with a period #200257
Comments
Hi joyceerhl, The links are present, and highlighted correctly (with the underline), and can be clicked, but they don't seem to function properly.
I've tested this on a clean 1.85.1 install on my Windows machine and Github Codespaces (also 1.85.1), and it does appear to be misbehaving. There is a repro repo here: https://github.com/sparxooo/PoCvscodebug Thanks :) sparxooo |
Interestingly, I think I found why single digit lines still open the correct file, and that's because the replace regex Not a fix, but might be useful info. |
Fix for #200257 plus existing trailing non-numerics regex fix
Fix for microsoft#200257 plus existing trailing non-numerics regex fix
Type: Bug
When opening a file:line number link (ctrl-click) from the terminal that ends with a period, in the format "File.tsx:25", VSCode does not find any results as the period is included with the line number. Removing the period finds the result successfully.
If you remove the period, then the search functions successfully, as expected.
The trailing period should be ignored, as it is not part of the line number.
VS Code version: Code - Insiders 1.85.0-insider (af28b32, 2023-12-06T11:15:22.766Z)
OS version: Windows_NT x64 10.0.22631
Modes:
Remote OS version: Linux x64 5.15.133.1-microsoft-standard-WSL2
System Info
canvas_oop_rasterization: enabled_on
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
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
Extensions (13)
(1 theme extensions excluded)
A/B Experiments
The text was updated successfully, but these errors were encountered: