You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
URL escaping is changed when using "Loaded Scripts" viewlet #33712
I open test2.js from "loaded scripts" and set a breakpoint in it. VS Code sends setBreakpoints({"source":{"path":"http://localhost:8080/out/client with space/test2.js","name":"test2.js"},"lines":[3],"breakpoints":[{"line":3}],"sourceModified":false}) (with unescaped spaces)
Activity
isidorn commentedon Sep 4, 2017
roblourens can you please put a breakpoint here and check if the
normalizecall is removing escape codes.An alternative would be that our internal
uriimplementation somehow removes escape code.Also assigning to Andre Weinand (@weinand) since he is aware that some loaded scripts paths get incorectly transformed on windows
roblourens commentedon Sep 5, 2017
It's from URI, the 'path' goes through decodeURIComponent https://github.com/Microsoft/vscode/blob/master/src/vs/base/common/uri.ts#L189
I think it's hard to store a URI inside another URI and get the exact same representation out, because it will always be transformed in some way.
isidorn commentedon Sep 6, 2017
True, I do not see a straighforward way to fix this since we use uri everywhere inernally.
I am open for suggestions on how to fix this
weinand commentedon Sep 6, 2017
I'll investigate...
weinand commentedon Sep 16, 2017
duplicate of #23194