Skip to content
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

Support URL specific encodings (query component) #25852

Closed
jeff-woehler opened this issue May 3, 2017 · 20 comments
Closed

Support URL specific encodings (query component) #25852

jeff-woehler opened this issue May 3, 2017 · 20 comments
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s) feature-request Request for new features or functionality uri verification-needed Verification of issue is requested verified Verification succeeded
Milestone

Comments

@jeff-woehler
Copy link

Hello Support,

When clicking a link in VSCode, the URL is incorrectly unescaped prior to handing the request to the browser.

Example URL pasted into VSCode:
http://www.test.com/path/service?authId=CN%3DQ10

Result - the '%3D' is unescaped to '=' when you Ctrl-Click:
GET /path/service?authId=CN=Q10 HTTP/1.1

Please review and correct.

Regards,
Jeff Woehler

  • VSCode Version: Code 1.11.2 (6eaebe3, 2017-04-13T08:03:11.395Z)
  • OS Version: Windows_NT ia32 6.1.7601
  • Extensions:
Extension Author Version
xml DotJoshJohnson 1.7.0
beautify HookyQR 1.0.2
csharp ms-vscode 1.8.1
debugger-for-chrome msjsdiag 3.0.1

Steps to Reproduce:

@humphd

This comment has been minimized.

@jrieken

This comment has been minimized.

@humphd
Copy link

humphd commented Oct 22, 2018

If you decode %2F to / at this point, it's now part of the path and not data in the path, and there's nothing you can do later with toString() that will allow you to recover it.

Anyway, just trying to help. Sounds like that's not wanted, so I'll leave this to you.

@kaleidawave
Copy link

This issue is still present in 1.31.0 and have had this issue many times with the '%2F' string being changed to '/' when forwarded to Google Chrome. This is a big issue for firebase storage as it cannot locate the resource if there is a forward slash. In the mean time is there a way of circumventing this by changing the contents of the logging function.

@StephenWeatherford
Copy link

StephenWeatherford commented Apr 18, 2019

Johannes - We see you merged a change related to this yesterday. Unfortunately, it does not fix the issue for us. This is an actual URL generated by our extension. It should open a new issue in github:

ISSUE 1:
https://github.com/Microsoft/vscode-azurearmtools/issues/new?body=%0A%3C!--%20IMPORTANT%3A%20Please%20be%20sure%20to%20remove%20any%20private%20information%20before%20submitting.%20--%3E%0A%0ARepro%20steps%3A%0A%3C!--%20TODO%3A%20Enter%20steps%20to%20reproduce%20issue%20--%3E%0A%0A1.%0A2.%0A%0AAction%3A%20startArmLanguageClient%0AError%20type%3A%20Error%0AError%20Message%3A%20hi%0A%0AVersion%3A%200.5.1-alpha%0AOS%3A%20win32%0AProduct%3A%20Visual%20Studio%20Code%20-%20Insiders%0AProduct%20Version%3A%201.34.0-insider%0ALanguage%3A%20en%0A%0A%3Cdetails%3E%0A%3Csummary%3ECall%20Stack%3C%2Fsummary%3E%0A%0A%60%60%60%0AObject.vscode_azureextensionui_1.callWithTelemetryAndErrorHandlingSync%20(startArmLanguageServer.js%3A17%3A15)%0AObject.callWithTelemetryAndErrorHandlingSync%20(node_modules%2Fvscode-azureextensionui%2Fout%2Fsrc%2FcallWithTelemetryAndErrorHandling.js%3A46%3A25)%0AObject.startArmLanguageServer%20(startArmLanguageServer.js%3A16%3A31)%0AAzureRMTools.ensureDeploymentTemplateEventsHookedUp%20(out%2Fsrc%2FAzureRMTools.js%3A226%3A34)%0AObject.%5Banonymous%20(out%2Fsrc%2FAzureRMTools.js%3A128%3A24)%0AObject.callWithTelemetryAndErrorHandlingSync%20(node_modules%2Fvscode-azureextensionui%2Fout%2Fsrc%2FcallWithTelemetryAndErrorHandling.js%3A46%3A25)%0AAzureRMTools.updateDeploymentTemplate%20(out%2Fsrc%2FAzureRMTools.js%3A110%3A35)%0Anew%20AzureRMTools%20(out%2Fsrc%2FAzureRMTools.js%3A88%3A18)%0AObject.%5Banonymous%5D%20(out%2Fsrc%2FAzureRMTools.js%3A45%3A44)%0AGenerator.next%20(%5Banonymous%5D)%0A__awaiter%20(out%2Fsrc%2FAzureRMTools.js%3A10%3A71)%0Anew%20Promise%20(%5Banonymous%5D)%0A__awaiter%20(out%2Fsrc%2FAzureRMTools.js%3A6%3A12)%0AObject.%5Banonymous%5D%20(out%2Fsrc%2FAzureRMTools.js%3A41%3A20)%0AObject.%5Banonymous%5D%20(node_modules%2Fvscode-azureextensionui%2Fout%2Fsrc%2FcallWithTelemetryAndErrorHandling.js%3A61%3A51)%0AGenerator.next%20(%5Banonymous%5D)%0A__awaiter%20(node_modules%2Fvscode-azureextensionui%2Fout%2Fsrc%2FcallWithTelemetryAndErrorHandling.js%3A11%3A71)%0Anew%20Promise%20(%5Banonymous%5D)%0A__awaiter%20(node_modules%2Fvscode-azureextensionui%2Fout%2Fsrc%2FcallWithTelemetryAndErrorHandling.js%3A7%3A12)%0AObject.callWithTelemetryAndErrorHandling%20(node_modules%2Fvscode-azureextensionui%2Fout%2Fsrc%2FcallWithTelemetryAndErrorHandling.js%3A58%3A12)%0AObject.%5Banonymous%5D%20(out%2Fsrc%2FAzureRMTools.js%3A40%3A41)%0AGenerator.next%20(%5Banonymous%5D)%0A__awaiter%20(out%2Fsrc%2FAzureRMTools.js%3A10%3A71)%0Anew%20Promise%20(%5Banonymous%5D)%0A__awaiter%20(out%2Fsrc%2FAzureRMTools.js%3A6%3A12)%0AObject.activateInternal%20(out%2Fsrc%2FAzureRMTools.js%3A34%3A12)%0Aactivate%20(main.js%3A24%3A28)%0AFunction._callActivateOptional%20(AppData%2FLocal%2FPrograms%2FMicrosoft%20VS%20Code%20extensionHostProcess.js%3A725%3A689)%0AFunction._callActivate%20(AppData%2FLocal%2FPrograms%2FMicrosoft%20VS%20Code%20extensionHostProcess.js%3A725%3A378)%0Adefine._doActivateExtension.Promise.all.then.e%20(AppData%2FLocal%2FPrograms%2FMicrosoft%20VS%20Code%20extensionHostProcess.js%3A724%3A569)%0A%60%60%60%0A%0A%3C%2Fdetails%3E

Expected result: Working New Issue page
Actual result: Blank page or error 500

Opening this through the "opn" npm module works fine. But if you send this through vscode.open, or if you just enter it into a vscode editor and do CTRL+CLICK, it brings up a blank page in Edge and shows a 500 error in Chrome.

ISSUE 2:
The following shortened URL (without the stack) does bring up the New Issues page, but the newlines are missing:

https://github.com/Microsoft/vscode-azurearmtools/issues/new?body=%0A%3C!--%20IMPORTANT%3A%20Please%20be%20sure%20to%20remove%20any%20private%20information%20before%20submitting.%20--%3E%0A%0ARepro%20steps%3A%0A%3C!--%20TODO%3A%20Enter%20steps%20to%20reproduce%20issue%20--%3E%0A%0A1.%0A2.%0A%0AAction%3A%20startArmLanguageClient%0AError%20type%3A%20Error%0AError%20Message%3A%20hi%0A%0AVersion%3A%200.5.1-alpha%0AOS%3A%20win32%0AProduct%3A%20Visual%20Studio%20Code%20-%20Insiders%0AProduct%20Version%3A%201.34.0-insider%0ALanguage%3A%20en%0A%0A%3Cdetails%3E%0A%3Csummary%3ECall%20

Expected result:
image

Actual result:
image

@jrieken
Copy link
Member

jrieken commented Apr 23, 2019

@StephenWeatherford Both links work for me with latest insiders. With what version did you try?

@jrieken jrieken changed the title Improper URL unescape when clicking link Support URL specific encodings (query component) Apr 24, 2019
@jrieken
Copy link
Member

jrieken commented Apr 24, 2019

URL query string reference: https://en.wikipedia.org/wiki/Query_string

GongT added a commit to kendryte/kendryte-ide that referenced this issue Apr 30, 2019
a30ca29b8b Fix Extension Smoke tests (#73072)
c77ec582b0 - Remove undefined in the aria label - Search extension by id
071a5cf16f Merge pull request #73054 from Microsoft/misolori/colors
70f669ca0c Update theme.ts
76a069d3e0 Fix file system providers from extensions to resolve save conflicts (#72954)
029a4e870a update distro
ca13e25b42 Merge pull request #73031 from Microsoft/joh/72862
437ad83ed4 add test
43061a50fd Revert "fix #43270"
013007a8c1 New colors for host badge (#72929)
1af516bb8e update color names
acf97a576b File picker auto complete shouldn't include trailing slash (#73020)
0200bdd71e Merge branch 'rebornix/commentsupdate'
253809c186 Legacy api should still work.
67fc5ba4e1 Empty Comment Thread Factory works
6a4805546a Bring back empty comment thread factory.
9435d7cc38 support deprecated commentId.
2884d2239b Add active comment thread.
accab2eaa7 Turn Comment to Class.
3d814eb92d Comment Id.
a47406b9c8 Merge pull request #72941 from Microsoft/roblou/updateDistro
f896023a69 Update distro commit
aefc5d3a39 Catch errors from getting document comments
a54ff66d18 new colors for host badge
63d257f78a update distro
0ed813fff1 Handle user input errors in filepicker (#72915)
c1abf7978d update distro
16beb5933f Tweak times (#72920)
08dc05ec66 Tweak times
d0a3dcb40a Merge pull request #72911 from Microsoft/sandy081/fixInstallingWorkspaceRecommendations
e94d34ee88 Update distro commit
2679c92843 fix #72909 (#72913)
1140fe9c15 fix installing workspace recommendations
28c7d9976f debug issues to me
b940e27e70 fix distill profile
82fa5bc857 Merge pull request #72897 from Microsoft/misolori/themes
338f19a4a5 Also update additional HC theme
a66945d1c5 Use alternate color for Monako theme for statusBarItem.hostBackground
6dbfe3f028 Update high contrast theme to hide statusBarItem.hostBackground
3714d64a00 Add theme support for statusBarItem.hostBackground
63655183ba Update distro
2328356959 update distro (#72883)
8f1e30ab88 use statubar.hostForeground color
a918884aa0 Merge pull request #72874 from Microsoft/misolori/remote-badge
c70b7c1baf update distro
07f473161f Center remote badge icon
fffebfd824 update distro
7798336eff continue supporting 'debug/toolbar' old id for one more milestone
8057755374 explorer: extenral dropped resources handling
3ed46ec1ab Preserve cursor position before file name in file picker
9ad8bf662f File name validation fix in picker
487f095ec0 update distro
40365997bf update distro
bb39a47d81 fixes #72830
25528ee164 Support pasting in paths with ~ in file picker
1b1a4cc241 Fix file dialog case for waving without extension
3d4048695f Merge pull request #72501 from jmbockhorst/fixModifiedSort
db7cb13e06 Update C++ grammar to get recent fixes
908cdaf6d2 Add *english-please label action for bots. Fix #72766 (#72767)
4c7fed5523 bug with preventing saving an already open workspsace
146ab7b489 Fix #72829
0fde661917 fixes wobbly progress indicator
6cc34bb4f6 allow cb to be called if task is not cancellable
5f651ee5c3 update distro
a8fe4ffee6 Increase max buffer for `readMacCaCertificates`
6164a77e36 update distro
b16a3a206e Allow to fire onClose
1277f16f5c update distro
cb75ef9d0f Fix #72813
2c5928e606 Make sure we also restrict local resource roots when redirecting
017a497259 spell
236b1a9ddf Merge pull request #72745 from Microsoft/misolori/remote-polish
618bc0a803 don't cache non-local icon themes
02721cde1e update distro
363c8bc1a7 support forceReuseWindow for vscode.openFolder
dbcefa1d91 don't restore non-file empty windows
6af961b7e5 message consistency
001e6087ff enter workspace - result can be null if operation permitted
24b15afde4 Fix layering
259658eb28 Fix leaked interval in dialog
21be97cbfc Fix Microsoft/vscode-remote/issues/1558
87d3f3e77b files - typed etag()
5fe900dd7b Correct multi-root terminal cwd on Windows
00599b2d60 Quick input shouldn't completely break if a ThemeIcon is provided
b748731f4a Increase constant
296fa84d8d Fix Microsoft/vscode-remote/issues/1564
240c3e88b3 update distro
d9d621ee9e Improve overwrite file dialog
d008566db4 Ignore focus out on file overwrite prompt
5dd8318e0c Add trailing filename or extension to file picker
cb724ce90b File picker fix for slow file system
d03738cd4b fix status icons in light themes
1cf51f4f5b Fix Microsoft/vscode-remote/issues/1557
32dc6a831b Fix Microsoft/vscode-remote/issues/1556
c306bf9b1f use Severity.Ignore, not Info when everything is good
d96d30ebf2 Fix Microsoft/vscode-remote/issues/1056
2278b0ab09 files - add tests for readonly provider
cdc279c520 files - protect against null errors
b6e891367b Merge pull request #72779 from xtydev/master
28050c02c4 Remove trailing slash from auto complete
a671ca892c fix tests
8f94e05f85 snippet - uris all the way
11d6bdc785 files - fix issue with etag computation
8a68113061 eng - disable more flaky fs watch tests
63c1ff218e update distro
212f41cd4b Hide the custom file pick box before showing native picker
d1af0c4e4c Fix #72778 - clear settings tree focus when searching
e44a5ce145 Resolved regression in WSL launch script
059a3e1642 Fix #72385
b7f20a8b51 Update js/ts grammar
39bdf95247 Only enable open external for resoruces when environment supports it
5fa4aad3c2 Add ResourceViewerDelegate interface
3a12b7ac2e Set correct scope for file.hotExit setting
dfafad3a00 Use TS 3.4.5 for building VS Code
24ff03f627 Pick up ts 3.4.5
51373ec4b9 files - proper URI usage
ee27818f73 💄 - less usage of URI.fsPath
58b38d5ee5 Fix Microsoft/vscode-remote/issues/1455
3a1f5537b3 Fix Microsoft/vscode-remote/issues/1445
26ca5d3b59 Fix Microsoft/vscode-remote/issues/1325
3081cf9111 Fix Microsoft/vscode-remote/issues/1353
5383f48904 debt - adopt label service in breadcrumbs control
9bd1b18aee Fix Microsoft/vscode-remote/issues/1447
87fd1d4534 Strange console output when using WSL
9904593305 Fix Microsoft/vscode-remote/issues/1456
1cd8c2d9b2 update distro: fix build - 2
4fa5b7104b save - tweak message based on provider capabilities
cb81f1ffd4 update distro - fixing build - 1
d16c3cf07f update distro
19852f1dcc update distro
14f982adbf Update src/vs/workbench/contrib/files/common/explorerService.ts
1d03bec933 Fix Microsoft/vscode-remote/issues/1453
bb0386ed56 eng - update Marked.js to 0.6.2
3af586c97c Fix Microsoft/vscode-remote/issues/1498
35be335c68 Fix Microsoft/vscode-remote/issues/1269
62318fdf6d fix Microsoft/vscode-remote/issues/1442
dcd7b52172 fix #72632
01a5a52ac5 Fix Microsoft/vscode-remote/issues/1449
84a3465549 settings - scope some more to application
e32174d8c6 update distro
32184f4d11 untitled - fully support resources with associated filepath
57fb54fbc6 Fix Microsoft/vscode-remote/issues/1394
faff4f6a82 Merge pull request #72718 from flash-gordon/patch-1
161e7b92eb Center remote icon in extension editor
6b2daa3388 Revert marking markdown extension with explicit kind
aa79df58a4 Center remote icon in badge
293b760d16 Update statusBarItem.host colors
2b87545500 Only show the "open using external" command for file resources
fcfae3b55e Don't use ConPTY on WoW64 Windows
acf33e73da high cpu fix for progress dialog change svg animation to use JS
2ecc8eab04 Enable terminal hasReceivedResponse
f56b18a9f7 Pass validateDefaultNpmLocation to ts 3.4.4
ac8f6b0406 Pick up TS 3.4.4
a538f095af Organize imports should interupt geterr
16944f3c4a Merge pull request #72553 from tony-xia/makeRandomHexString
71e911e96b Merge pull request #72552 from tony-xia/var-and-interface-name
8e81abdf82 Fix #72719
c017469383 Fix typo
a31dcc38f2 Fix #72173 - settings not shown after clearing setting search query
9daf8a693d Fix #72239 - split json editor title
463f104b9f Fix up settings "modified in" label
50c9a782ad fixes #72574
fbbc1aa803 Enable web links in terminal renderers
750680d2f7 Fix #72354
12cb89c82e Make sure Windows bash CLI works with spaces in user name
7d39e805fb explorer: stricter dnd
fae7253b25 explorer: show progres until workspace fully loaded
d1452c3fac 💄
0157b3c155 fix #72558
697c8901a9 Update makeRandomHexString() to remove duplicate character
f89390fcec Fixes # 72551: PlatformOverride is not passed to terminalConfigHelper#mergeDefaultShellPathAndArgs
941b4a9f79 Langauges -> Languages
a039b79971 Update distro
407e266857 fix #72343
fe31e7bfb9 Switch to file service based configuration only after loading it
053a32e2bb tests updates
e5f5bdec11 add comment for #72447
3a6dcb4200 fixes #72447
54c7d51015 Merge branch 'distro/master'
0595b3d76f Improve error handling when opening issue reporter
f446889745 Update distro
1747a57841 Filter Application settings from remote settings GUI
8d962ade3a Add 'product' common property to telemetry events
a0a1bd8da8 update distro
66669f4b08 Introduce ProtocolMessageType.Disconnect
652bf59b22 Disable flaky DiskFileService test
febd0e9f05 Revert "Disable flaky DiskFileService test"
0dc03a8281 code.cmd: don't use call as it substitites vars in arguments
781074f36c Disable flaky DiskFileService test
9d9f90dd58 Merge pull request #72508 from Microsoft/tyriar/72465
3e73167eb1 Consolidate terminal environment setup logic
004894a5b5 Dispose comment thread properly
68b2b6d4eb Revert "disable failing tests (#72465)
4516abbdf1 Fix terminal launch issue
7006626374 Fixed explorer modified sort order not working sometimes
62699d7854 fix tests
105e87186f filter workspace paths contradicting ext development
5a010d8e5d update distro
54e670c960 rename the setting configuring extension kind
0c22d9c001 special treatment for language pack extensions
ef4a806223 allow (much) higher diff limit in compute more minimal and log times, microsoft/vscode#72321
ff9bd99cf1 don't set watcher on /dev or /proc
2a597c7f58 explorer: transition paste to command. Do not open editors when multi paste
39cf41dbf5 files - error 💄
b4cd374954 Merge pull request #72480 from Microsoft/sandy081/fix71752
1d194c87e7 workaround #72404
c72cfe0c65 Provide API to get access to the workspace configuration file (#37421) (#72490)
2335966361 use encodeURI on non-encoded uri when 'leaving' vscode, microsoft/vscode#25852
006078af64 Use flat structure for extension kind setting
0ca60266c9 title control: add and use updateEditorLabels()
ca2204bbc8 files - disable flaky watch test on windows
ee9dafcf74 notifications - tweak title
e18181e5fb Cannot read property 'length' of undefined in toWorkspaceIdentifier
95d8a1aebe set empty context at the end
585f853997 fixes #72361
b0ee38bdd4 notifications - allow to set title
6d5feae579 new window to open in new window
879c3a7dfe Fix #71752
1d3a96edca allow remote fonts to be loaded
d3e1fff776 files - more tests
e7713c9e6a Revert "Merge pull request #72436 from Microsoft/sandy081/fix71752"
83aac26bb8 Merge pull request #72436 from Microsoft/sandy081/fix71752
1b587ae07e workbenchThemeService: move more to common
2a22f1bb5e change default extension views in remote window
7f0f3e4bbb Get latest cpp grammar updates
cb73a8f7a2 files - 💄 decoder stream
648fe9f92a fix compile
5ac6601ab8 disable failing tests (#72465)
7e513ec9a6 files - fix regression with autoguess encoding
29867b558b files - 💄
05fc61ffb1 Remove redundant "settings" label in gui
b3cc51f631 Tidy up terminal env creation
e2d8383e66 Localize terminal starting message
385b3f1d8e Update distro
e22ea3d1fc Fix #71752
513992b8a9 Improvements to extension UI - Fix reload tooltip when extension is running in server which it is not supposed to - Show reload tooltip - Fix disable status warning
672e6769c5 do not check for ui extension while installing
84f3cfab2b Fix terminal workspace shell/args
3e1f5b54c0 update distro
f0e2be9222 fix #72404
6028545f2d textfile - add test for UTF16 without bom
38cad5d4f6 improve error message if ext term app can't be found
5e75c405f8 files - 💄
e7c4167474 files - reuse methods for writeFile
d3a2e0f524 use forceReuseWindow in openNewWindow
48eb3ba4a0 Update cpp grammar and make small themes change
f7b33b613e update distro
3a16d33f22 typos in STATUS_BAR_HOST_NAME_BACKGROUND
983c4f1398 fix workspace.test
fd3136edf7 expose setting to customise extension kind
ea743f51f1 add STATUS_BAR_HOST_NAME_FOREGROUND
3e232d47d2 update distro
23240b6d49 fix workspace.test for windows
eacb2d85df Remote: Preserve BOM in UTF-8 when found (fixes #48826)
7d8d01a61e simplify warning messages
ff6ef95b2b titleControl: update labels once new formater gets registered
b2e79419a2 Fix bug in overwriting files in file picker
a357a44042 show remote badge when extension icon is hidden
eb383430e8 Update quick input message style to match other error messages (#72393)
044c8ed8e1 toWorkspaceFolders takes workspaceConfigPath
e5f694ebf8 Can't open workspace file with absolute paths
9573a1a0bb update distro
e71599d620 update distro
d5e88fa051 files - more cleanup
aa7844513e update distro
3c28234a56 fileservice2 => fileservice
d8b38677bb files2 => files
8744ea02db update distro
a3099d3e10 Merge pull request #72409 from Microsoft/ben/files2-read
91de745985 Merge branch 'master' into ben/files2-read
ca26d1e2ec files2 - fix tests
729b8917e6 files2 - move more text things around
cba19ff191 files2 - more tests
32a0c43176 files2 - remove legacy file service
2f96fa6b8b scale the remote icon in extension editor
43576da45a Merge branch 'joao/build'
31ffdc0eb5 files2 - adopt new methods
6b7c8f3d77 Makefile test case about the bug fix with "@,-,+" colorizing in the recipe (#72265)
96d03958ae files2 - implement read() and readStream()
016921a4d2 cli: reuse window for add
ebf45661bc update distro
b91293eb45 files2 - remove resolveStreamContent()
3963322921 files2 - add more tests
e146527fec win/code.sh: falback when wslpath not present
d9b87e858e update distro
f526e46357 Tweaks
1a377ae732 files2 - implement read with encoding
b85d42c5a9 update distro
be4f8d5736 Clear validation message when arrowing through file picker items
66b2e1816e files2 - first cut ITextFileService.read()
cc7ec60f62 more renames
f9e563c6d0 improve installing message
12e86c5033 💄
2aee87b1b4 Merge branch 'master' into ben/files2-read
daa50ede13 files2 - more use of streams
8b5ebbb1b8 Ignore case when checking _workbench.uiExtensions
cd8260bc94 Use set to check configuredUIExtensions
3dcf232fdb Add new remote agent method
80a2614355 Only try tunneling openExternal when we actually need to
4c3694fd2d Use Map instead of object map
5ae3178c1d Mark markdown as a ui extension
e2b7636879 Move terminal process launching into its own function
1bac855035 improve keybinding handling in dialogs
c61e5d9081 Label terminals as starting while launching
e4b5bccf93 Improve terminal launch
94ba9cfe20 Finalizing webview port mapping api
30ebf0363b fixes #72022
1661aa930e Fix #72224, git extension not sending repository selection event
23fd99b493 Remove default keybindings for resize terminal pane up/down on Linux
d3c8ff7188 Merge pull request #72211 from tony-xia/strict-equality
84b1474d09 Code Insiders latest update break the `code-insiders` commands inisde WSL. Fixes #72260
4be2b91873 Merge pull request #72269 from ljmf00/monokai-tabs-patch
c2290dbfef Change Open Workspace starting folder
d13ee527b6 Merge pull request #72334 from paul-cheung/fix-typos
c78d0ff35c fix typos
6b7b653dae code.sh is broken in WSL after commit "run code wsl in dev ". Fixes #72263
b9725ba609 code.sh is broken in WSL after commit "run code wsl in dev ". Fixes #72263
7ffcfd503d Use file item label in file picker (keep the slash)
283dfa5241 Adjust highlighting in file picker
4f212683c1 update distro
96dc8a0740 Show validation error in file picker when path doesn't exist
6f0aa9ff97 update distro
7a4192d0a7 Add hover text to quick pick button
a7efbb7c13 pipe not supported in remote cli
38ebddbfdf Minor tweaks
47017a8ea9 Add custom button to quick pick for file picker (#72209)
1bcc5e57f5 update distro
fcd35a2d44 Add Terminal All option to terminate task command (#72015)
bfe321b7c1 files2 - first cut buffered read impl
ffe5db3e36 files2 - textfile.read()
dac2e27089 files2 - move encoding out of fileservice
3d67364fbf Merge pull request #72236 from mattacosta/refresh-php-docs
88fca8d6a6 theme-monokai: fix tabs indentation
0ea3056307 💄 remote fs impl
006ec5abc4 history - actually filter some files
09697c4d38 fix #72245
fcca49e414 update distro
e78a0ab37f Open TS Server logs in editor if possible
6401390a1e update remote badge
2ecfd414d5 Size limit should be 10mb
1e5ca39d84 Increase size limit for images displayed in editor
5c538569e6 Allow disabling agent telemetry dynamically
7c63284244 support updating messages in progress dialogs
a82deed32c fixes progress circle clipping
cad3862663 Also include returned result count in completions telemetry
312b09cc6b extract setContent
74103c4c8d Don't change preview when click fails but do show an alert
3b58a011da Only try/catch openTextDocument
c79f1cd8e3 Styling
668068e26f Fix process explorer highest memory calculation
9d958136be Set initial focus on an input field when opening the issue reporter
3aca0f3ef1 Refresh PHP documentation.
ceaa95c0c3 fixes #72203
94f3f55ada update distro
0b4d49b59e Merge pull request #71762 from skprabhanjan/fix-71570
37ab243fd9 setting query should always be string
e5c1c2258e workbench.action.openSettings support args
8c1f6baac2 ext: in setting editor (#72157)
62e3b2e3f6 Update distro
9077e2ccd9 Merge pull request #72194 from LeuisKen/master
416d0d34d1 update distro commit
6f7ffdd575 fixes #72094
f679873933 update distro commit
cb0c7523a2 remove sync extensions support
f73c1139e4 use more ExtensionHostProfiler and less extension service
818d1261b0 Use strict equality in darkenColor()
5f03e0363a update distro
f999a29671 add quality to win/code.sh
bf95ef6e79 minor fixes
b7c5e104a4 update distro again
740295b1a3 Update distro
9166e09efb Comment out getMachineId test (broke the build)
66492d7138 move files around
4baa90bfde simplify extension host profiling
efd5704d8d files2 - avoid 2 fs.exists() when writing a file
e6215b9fc9 extensionHostDebugService: use sessionId instead of passing session root uri
f341515fac update implements according to suggestion
49c5a5bd17 ext management - do not sync
8c0e1b420c Support command links in notifications (fixes #46571)
116434f702 fix #71661
26f1b1f4e3 fix #72187
aca1494c4e align monaco compiler settings
55270a468b 💄
f1f37c212e double log language, only one works. Fixes #72192
10736e07cf Use editbale configuration target while editing. Adopt user remote target
bcb4b3fa78 💄
5ccbc56c75 also make null-lovers happy, #71992
261fa9f939 fix #71992
39012b2463 history - exclude some typical git files from dock/taskbar entries since those are limited to a few
e0bec82a48 Tweak folder path
5e5fbbb67d minimize refilter delay (workaround) #71795
24913a5342 arg help: isPipeSupported
7bd1dd90dd fix #72122
c763eea5c1 files2 - restore more explicit encodings
1cc301c2a5 files2 - strengthen test
62f59cf171 fix #72186
1650cee35a Update vscode-octicons-font (#72159)
1fd2993b54 Fix #72185
67c28b3f03 move vscode.env.uriScheme to stable
b7b9d3321a Add fallback script for ps
222e2798ff Move min versions into jt/ts feature providers
9d43bdac05 Register features with Promise.all instead of sequentially
c6a9536ed7 Add telemetry for how long completions take in js/ts
f635233740 Check in stubbed out smart select support for js/ts
aaee57e128 [email protected]
27c30c8a99 adding overlayService (#72014)
047b47b548 Merge pull request #72134 from tony-xia/update-comments
b84536cb2b Merge pull request #72136 from tony-xia/var-name
ea7e2600d8 Expose vscode.openIssueReporter command that allows passing an extensionId to open the reporter with
b53be6efef Refactor to support ErrorTelemetry in non-browser processes
06dd5823e8 fix mac build
5c3681e27e fix mac build
8a9326fbc1 Add settings GUI tab
9d3683d689 Use some instead of reduce
0ae3ecbf15 Fix multiline jsdoc type highlightingFixes #27777
4151e3e1bb Move convertToPixels into sizeUtils
e7e32aff37 Move getDimension into SizeUtils
64a37d601a Convert SizeUtils to a static class
8becf4731c Merge remote-tracking branch 'origin/joao/build-scripts'
efa670f7b9 fix tests
618052a1f0 Merge branch 'joao/build-scripts'
2adfa4353e debug console:  In order to keep scroll position we need to give a good approximation to the tree
421cf5ba67 files - more encoding tests
9a711944c2 fix windows builds
fc35f68af4 use VSBuffer instead of Buffer
28e0dd8412 less Buffer
0da533b59f fixes #72110
85603fd751 Order of operations in file picker when changing directories
d9bb681c47 fix builds
68d3200c7e Don't try to do a file picker auto-complete when the file picker is busy
f1bb8327bf fix windows build script
e9db393672 Merge branch 'joao/mixin'
cf72b92c4c extract build & publish scripts
bea104db7b Update variable names
0eb0fe9e1a Update comment
371865cce5 Extract startExtensionHostProcess
9e15f2edf8 Minor renames
bef2aaa9c1 debt - remove unused code
d35d835730 files2 - queue up any write
2c8e08987f 💄 save error message
85753fd687 Merge pull request #72132 from Microsoft/ben/files2-save
7b295d53ca Merge remote-tracking branch 'origin/master' into joao/mixin
6730f71074 Merge pull request #72058 from Microsoft/joao/fix-71648
2351ab38ba run mixin before yarn
e05d772824 Fix tests
190044ae55 Show disabled status for local workspace extension even if it exists in remote
7107f74dac Support ~ in simple file picker
a5e86b292f Show disabled status as tooltip
3d83fcf5be improve doc about the two build versions required for the smoketest
e72bf98616 files2 - polish tests
8fc9e3eb2a files2 - fix permission denied issues
0f8d80a7a9 Remove support for Buffer
fd8b829e83 Hold back test extensions
3fc61b1558 Don't ship all html files
722fb0a932 test all encodings
2285e1a4ca Add gulp dev modules
c037e47550 move out require interceptor
ff683d9f4c have IHostUtils
b7b294e119 files2 - add a write queue
4423de898e Fix colorization tests for c languages
61e0bdbfe4 build
1a8afaef39 build
f5061eaea9 build
b56ec0d8e7 Fix CPP grammar and themes
4a95428d8d build
f55aaabd57 automatically sync distro master
5fa1a49962 clean up environment
f9f67997b9 cliserver: add RunCommandPipeArgs
4ff4ed61e2 more tests
056b4ea8d6 files2 - ensure BOM for empty files
b1a61225d3 Run integration tests
251a490430 run code wsl in dev
5441e8475f tweak wording
b7ec5e8e6c Use wsl ext
d4fba1fa26 Warn about installing VS Code in WSL
86fee5f4be move out extHostStorage and extHostMemento
7a1f2e0792 .vcode-workspace: remove remoteAuthority if no longer needed
4cd74aca7e disable tests for now that fail
782fadfefa files2 - implement file writing via provider
7a07992127 Improvements to extension ui, make it consistent.
0bab532a33 Fix #70390, get process information when ps isn't in bin/ps
bb02817e2e Use `as const` instead of multiple assertions
fbf201b2fc Add conditional guards around access to body in webview pre
d81145d3f0 Use proper documentHighlights api for html js intellisense
90c9650399 Handle invalid config file diagnostics from ts server
c48108a773 Fixes #72097
b4bbf10f96 Pick up TS 3.4.3
9d0a845b9e Better comment
2689d1b8b9 Add some pinning tests for indent
0b5d952063 Small tweaks
2559767a05 fix tests
c05ea05186 Installed view: show enabled first and then disabled
f95e96c3d0 Use Schemas
8be2316e9b mark setting deprecated
d587970122 do not set user configuration until initialized
03a9aca859 Add support for injecting node module lookup path
0568a87190 provide a temporary setting to switch between default views in extensions
0b3bfd9598 More arguments for test
d73c1a61b9 Tweaks to test running
31e03b8ffb Update distro
187e723074 Improvements to script running
c15daf0597 Small tweak
61d069cba3 Exploration
6dce972b61 Improve CSS
59cc9a65e2 Merge pull request #71940 from jeanp413/updateMatchCounterBadge
f329277979 - Define Machine Settings: Schema, Environment - Scope machine settings - Make remote settings scoped to machine settings
dc234da073 terminate debug sessions properly
aa094730b6 debt - better separation of extHostMain and extHostProcess
739e8db97a fix tests
0db1201d27 More templating
b740c97e14 More eventing
5582306f98 Improve test running
6c37beb8e5 Add shims for keytar and open
fd5aa72bdc Add shimming for open module
1847b32ac8 fix pending statusbar entry update
bd4130c0db remove unused code
9e1975d985 debt - workaround for #72075
ba4735d7cb debt - don't use Buffer in extHost-protocol
34e305ccd9 Hook up tunnel
f5d85df1ee Implement the socket
7e265314cd Add diagnostics
feacb6dae9 fileEditorInput: use labelService for name computation
7915a1b6d9 fix bad layout on references widget on fresh workspaces
4d718464c4 Rendering improvements
8b034f1027 fixes #71624
cb54db1850 move extHostLogService
9621046b2e fixes #71648
db4c9baa6a Better Keytar shim
139195097b Forces parent node rendering in order to update match counter badge. Fixes #69977
bda2870db9 fix-71570 Fixed localize string issue
10a4ebf006 Merge remote-tracking branch 'upstream/master' into fix-71570
3cef5067be fix-71570 Added logic to handle markdown preview update on file rename and delete
@jrieken jrieken added this to the May 2019 milestone May 16, 2019
@jrieken jrieken removed this from the May 2019 milestone May 24, 2019
@jrieken jrieken added this to the June 2019 milestone Jun 3, 2019
@jrieken
Copy link
Member

jrieken commented Jun 3, 2019

done via #73849 - schemes that use query strings (http, https, and ftp) now won't encode &, =, and ; when occurring inside the query-component.

@jrieken jrieken closed this as completed Jun 3, 2019
@jrieken jrieken removed this from the June 2019 milestone Jul 5, 2019
@jrieken jrieken reopened this Jul 5, 2019
@jrieken
Copy link
Member

jrieken commented Jul 8, 2019

This needed to re-opened because of regressions caused by this. This issue actually talks about two problems

  1. Decoding things that shouldn't be decoded, e.g. %3D inside the query component, tracked in Uri#parse can break path-component #45515
  2. Encoding things that shouldn't be encoded because scheme-specific rules exists, e.g. the generic URI syntax doesn't define query strings but in http/ftp it's a thing. Even tho our URI implementation ignores most of these scheme specific encodings we do a much better job now of picking the right encoding when URIs "leave" VS Code, e.g when opening an external browser.

@generalov
Copy link

generalov commented Jul 9, 2019

There is a similar issue with a fragment component. Browser navigates to a wrong URL if the fragment contains = character:

const url = "https://tfs.server/tfs/collection/_versionControl#path=%24%2Fproject%2Findex.js"
const oUri = vscode.Uri.parse(uri)
//oUri._formatted = url  // uncomment to apply the workaround
vscode.commands.executeCommand("vscode.open", oUri)

Actual: https://tfs.server/tfs/collection/_versionControl#path%3D%24%2Fproject%2Findex.js
Expected: https://tfs.server/tfs/collection/_versionControl#path=%24%2Fproject%2Findex.js

oUri.toString() produces the actual result. It seems the escaping of = character is intended as the unit test expects:

assert.equal(URI.from({ scheme: 'http', authority: 'a-test-site.com', path: '/', query: 'test=true' }).toString(), 'http://a-test-site.com/?test%3Dtrue');
However, such behaviour unexpectedly changes a valid URL and does not allow a TFS server to show the path.

I found a workaround for the issue (and I believe this fixes the escaping issues for all URL components) but it looks a bit awful. :)

@928PJY
Copy link

928PJY commented Oct 22, 2019

Hi @jrieken, is that any update about this issue? is that any workaround about this issue? I notice that you have removed the Bug tag, so just want to know will you take this as a high priority problem or not?

@jrieken
Copy link
Member

jrieken commented Oct 22, 2019

Good timing @928PJY - the issue is very complex but I happen to be looking at this. My current work and progress is in #83060. No promises but the problem is acknowledged and understood but also far from easy to fix.

@jrieken jrieken added this to the October 2019 milestone Oct 24, 2019
@jrieken
Copy link
Member

jrieken commented Oct 24, 2019

Implemented via #83060

@jrieken jrieken closed this as completed Oct 24, 2019
@jrieken jrieken added the verification-needed Verification of issue is requested label Oct 28, 2019
@jrieken
Copy link
Member

jrieken commented Oct 28, 2019

Verifier: Have links like https://github.com/Microsoft/vscode/issues?q=is%3Aopen+assignee%3Ajrieken+milestone%3A%22October+2019%22 and make sure they can be opened as-is, e.g no double encoding etc

@roblourens roblourens added the verified Verification succeeded label Oct 29, 2019
@jrieken
Copy link
Member

jrieken commented Oct 30, 2019

re-open via 58479e8

@jrieken jrieken reopened this Oct 30, 2019
@jrieken
Copy link
Member

jrieken commented Oct 30, 2019

/duplicate of #83645

Closing this as a duplicate of #83645 which is all about finding a way out of the URI nightmare.

@vscodebot vscodebot bot added the *duplicate Issue identified as a duplicate of another issue(s) label Oct 30, 2019
@vscodebot
Copy link

vscodebot bot commented Oct 30, 2019

Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for existing issues here. See also our issue reporting guidelines.

Happy Coding!

@vscodebot vscodebot bot closed this as completed Oct 30, 2019
@microsoft microsoft locked and limited conversation to collaborators Oct 30, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s) feature-request Request for new features or functionality uri verification-needed Verification of issue is requested verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

9 participants