Skip to content

Fix/debug auto decode link - #112169

Merged
Isidor Nikolic (isidorn) merged 4 commits into
microsoft:masterfrom
chenjigeng:fix/debug-auto-decode-link
Jan 22, 2021
Merged

Isidor Nikolic (isidorn) merged 4 commits into
microsoft:masterfrom
chenjigeng:fix/debug-auto-decode-link

Conversation

@chenjigeng

Copy link
Copy Markdown
Contributor

This PR fixes #112032

@isidorn

Isidor Nikolic (isidorn) commented Dec 10, 2020 •

Copy link
Copy Markdown

Logan Ramos (@lramos15) for some reason I can not add you as a reviewier.... Maybe you can add yourself

chenjg88 (@chenjigeng) thanks a lot for the PR. I plan to review it this milestone, I also want to give a chance to Logan Ramos (@lramos15) to review if he wants, thus assigning to December/January

@lramos15

Copy link
Copy Markdown
Member

Isidor Nikolic (@isidorn) It won't let me be a reviewer because I'm not currently employed at Microsoft. I come back January 11th though.
chenjg88 (@chenjigeng) Why are we still decoding within the opener service? Doesn't that mean the URL the user sees in the popup will be different than the URL the user actually gets sent to.

@chenjigeng

Copy link
Copy Markdown
Contributor Author

Logan Ramos (@lramos15) As I mentioned in the issue, this PR is mainly to solve problems 1 and 3.
The change to question 2 is too broad. OpenerService is currently being relied upon in all sorts of places and is based on the current logic. I am afraid that if I change the logic directly this time, it will have too much impact.

@chenjigeng

Copy link
Copy Markdown
Contributor Author

I was going to add a needDecode option inside the URI to determine whether to decode. Because in OpenerService internal, if the incoming object is a URI object, it will not try to parse it.And it looks very good.
However, OpenerService encodes the URI object when it opens the link, this can be a problem and I don't know why here is going to encode. Can you help me take a look at this place Isidor Nikolic (@isidorn) Johannes Rieken (@jrieken)
image

https://github.com/microsoft/vscode/blob/master/src/vs/editor/browser/services/openerService.ts#L203

@isidorn

Copy link
Copy Markdown

Moving to On Deck and Logan Ramos (@lramos15) can review once he finds time and is back at Microsoft. There is no rush here imho.

@lramos15

Copy link
Copy Markdown
Member

Isidor Nikolic (@isidorn) The changes made look good to me and also follow what the terminal does for me. My main worry comes down to chenjg88 (@chenjigeng)'s comment about the opener service still showing a decoded link in the modal that pops up. This means that the text the user sees in the modal might not match the text the user sees in their URL bar which creates a bad UX experience. I also understand their concern that changing the opener service affects a lot of places in our code. If you think the disconnect is ok then this is ok to merge as it not only fixes links but files too.

@isidorn

Copy link
Copy Markdown

Let's go with the current approach as it is less risky so we do not have to change the opener service. Thus merging.
Thanks!

@isidorn
Isidor Nikolic (isidorn) merged commit 7bb55c9 into microsoft:master Jan 22, 2021
@github-actions github-actions Bot locked and limited conversation to collaborators Mar 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

debug Debug viewlet, configurations, breakpoints, adapter issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Debug Console Linker automatically decodes link

4 participants