-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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
Document Content Providers are being passed URI-unescaped paths when invoked through the DAP #172108
Comments
@roblourens - any update on this? We're getting more issues in our extension because of this. |
This starts to be a very big problem for us. We can not debug the CODE of A/L making it a lot harder to solve our customers problems. |
Are this being worked on? It's been open for months and breaks the Microsoft AL debugger. |
+1 |
Starting to get very annoying.. Can we please have an update |
Sorry, I investigated this a couple months ago and couldn't find a good way to fix it, I will take another look when I'm able |
@jrieken, I was reviewing some of the past issues here, #25852, #83645, #32026, etc. Do you have any suggestions what to do in this case? Here I use @thloke, you also might want to look into whether you can work around this on your end, since this issue of handling escape sequences in URIs has a long history |
I am very sorry for this but it is something we have acknowledged but cannot fix it anymore. #83645 (comment) summarises the problem in more detail and the only path forward is to allow URL (newly'ish standard object) in addition to URI. (Tho, don't assume URL is perfect and identical across browsers...) |
That means that the document content provider would have to support taking a URL? Are we planning on doing this for extension API anywhere yet? |
No plans. It doesn't necessarily mean to accept URL in the document content provider, more like allowing them in DAP. I believe we could create a good URI from this (using |
DAP isn't using URIs, it's using a string, so if there's a way to parse a uri string into components that I can pass to |
Yeah, you could try |
Do you think it would make sense to let an extension opt-into new behavior for the URIs it provides, with a flag like |
Does this issue occur when all extensions are disabled?: Yes
Steps to Reproduce:
We have an implementation of the DAP for our language server, and in response to the
stacktrace
call, we returnstackframes
which contain URI-escaped filenames as thePath
property ofSource
. Something like this:When VSCode handles this response and calls our document content provider, it has un-escaped the URI. This generates an invalid filename.
We'd expect that the
Path
sent to the document content provider is the same as thePath
we sent as part of thestacktrace
call.The text was updated successfully, but these errors were encountered: