Repository navigation
Inserting file path on the terminal, when dragging a file to it - #24951
Conversation
|
João Portela (@jportela), thanks for your PR! By analyzing the history of the files in this pull request, we identified Daniel Imms (@Tyriar) and Sandeep Somavarapu (@sandy081) to be potential reviewers. |
|
@jportela, It will cover your contributions to all Microsoft-managed open source projects. |
|
João Portela (@jportela), thanks for signing the contribution license agreement. We will now validate the agreement and then the pull request. |
|
Thanks for this João Portela (@jportela), just tested out the code and noticed the following (mac):
The main actions so far are:
|
|
Windows seems to work fine, apart from the path needing the to be wrapped in "" when it contains spaces 👍 |
There was a problem hiding this comment.
Instead of doing this you should use Uri.file(path), you should then be able to extract the path in the correct format from that class. https://github.com/Microsoft/vscode/blob/d02567a2e43203f20d4a1daf1ca7c489be033a4b/src/vs/base/common/uri.ts#L215
c61edae to
b1d30b8
Compare
b1d30b8 to
ea4e0f4
Compare
|
Daniel Imms (@Tyriar) thanks for noticing those cases and showing me the URI utility. I think now they are OK: |
|
João Portela (@jportela) sorry about the delay, bit busy with release stuff atm. I hope to get this in for May 😃 |
|
João Portela (@jportela) sorry about the delay. This is great, thanks a lot 😄 should be included 1.13 🎆 |

This feature was suggested in #11907
I've tested the following scenarios, on a MacOS device:
Let me know if any change is needed