Repository navigation
Closed
Labels
bugIssue identified by VS Code Team member as probable bugdebugDebug viewlet, configurations, breakpoints, adapter issuesinsiders-releasedPatch has been released in VS Code InsidersverifiedVerification succeeded
Milestone
Description
Issue Type: Bug
When debugging code and a link has a URI encode clinking the link in the debug console will auto decode the URL. This causes issues as some APIs expect the paramaters to be URI encoded. When just logging links to the terminal it doesn't do that.
Try the following code:
const url = "https://www.test.com/?params=CountryCode%3DUSA%26Name%3Dlramos15";
console.log(url);
Steps to reproduce
- Set a breakpoint on
console.log(url); - Start debugging
- Type url into the debug console
- Ctrl+click and navigate to the URL. It will automatically decode to
https://www.test.com/?params=CountryCode=USA&Name=lramos15, with no way to disable this. Runnig the code normally and following the url in the terminal doesn't do this.
VS Code version: Code - Insiders 1.52.0-insider (5e350b1, 2020-12-04T10:15:27.849Z)
OS version: Windows_NT x64 10.0.18363
System Info
| Item | Value |
|---|---|
| CPUs | Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz (8 x 2808) |
| GPU Status | 2d_canvas: enabled flash_3d: enabled flash_stage3d: enabled flash_stage3d_baseline: enabled gpu_compositing: enabled multiple_raster_threads: enabled_on oop_rasterization: disabled_off opengl: enabled_on protected_video_decode: unavailable_off rasterization: enabled skia_renderer: disabled_off_ok video_decode: enabled vulkan: disabled_off webgl: enabled webgl2: enabled |
| Load (avg) | undefined |
| Memory (System) | 15.86GB (6.42GB free) |
| Process Argv | C:\Users\ramosl\Desktop\Fall 2020 - Hw 8 --crash-reporter-id 6835f0a3-d9c6-4053-812a-2c4e35492724 |
| Screen Reader | no |
| VM | 0% |
A/B Experiments
vsliv695:30137379
vsins829:30139715
vsliv368cf:30146710
vsreu685:30147344
openlogontheside:30221882
python763:30178808
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
python504:30227505
vswsl492:30208929
wsl2prompt:30219162
vstry244:30230484
pythonvsdeb440:30224570
unusedpromptcf:30219165
folderexplorer:30219166
openfilemenu:30219168
pythonvsded773:30223139
Metadata
Metadata
Assignees
Labels
bugIssue identified by VS Code Team member as probable bugdebugDebug viewlet, configurations, breakpoints, adapter issuesinsiders-releasedPatch has been released in VS Code InsidersverifiedVerification succeeded
Activity
isidorn commentedon Dec 8, 2020
This is a fair request.
Code pointer
vscode/src/vs/workbench/contrib/debug/browser/linkDetector.ts
Line 36 in cf8ed37
PR's to fix this are welcome.
isidorn commentedon Dec 8, 2020
I put a code pointer...
chenjigeng commentedon Dec 8, 2020
Isidor Nikolic (@isidorn) Do you think terminal's behavior is correct or debug's behavior is correct.
chenjigeng commentedon Dec 8, 2020
I think the reason is uri.parse
lramos15 commentedon Dec 8, 2020
The correct behavior to me would be not to decode the URI. If I wanted the URI decoded I could do
URI.Parsewithin my code or the equivalent of that in whatever language I choose.chenjigeng commentedon Dec 8, 2020
I agree with you Logan Ramos (@lramos15)
chenjigeng commentedon Dec 8, 2020
I think we can just get rid of URI.parse. I tried it locally, and it work. But what are the potential problems without URI.parse
chenjigeng commentedon Dec 8, 2020
Even if we don't use uri.parse here, when we call this.openerService.open(url), the url inside openerService will also be uri.parse, which means that the url shown in the pop-up box is actually decode
42 remaining items
isidorn commentedon Feb 26, 2021
Will not fix it last game of endgame, pushing out to backlog
lramos15 commentedon Feb 26, 2021
I'll investigate this for debt week. I just tested it with my fix commit and it worked so I'll have to bisect and see what broke it nothing pops out to me at the moment.
isidorn commentedon Mar 5, 2021
Logan Ramos (@lramos15) unassigning myself, feel free to assign back to me if help is needed.