Repository: vscode
Issue: Clicking an OSC 8 hyperlink to a folder in the terminal will open the native file explorer instead of VS Code's explorer
Labels: bug,help wanted,terminal-links

Context: https://github.com/pnpm/pnpm/issues/8513

Relevant part of log:

```
  �]8;;file:///Users/k/p/archive-webpage-browser-extension/node_modules/.pnpm_patches/prettier@3.3.3��[34m/Users/k/p/archive-webpage-browser-extension/node_modules/.pnpm_patches/prettier@3.3.3�[39m�]8;;�
```

Trace log:

```
2024-09-09 21:19:54.968 [trace] [RPC Request] PtyService#setTerminalLayoutInfo({"workspaceId":"e06f3c1d35667b267a8dfe016d2f8457","tabs":[{"isActive":true,"activePersistentProcessId":17,"terminals":[{"relativeSize":1,"terminal":17}]}]})
2024-09-09 21:19:54.969 [trace] [RPC Response] PtyService#setTerminalLayoutInfo undefined
2024-09-09 21:19:56.697 [trace] [RPC Request] PtyService#input(17, "\u001bOA")
2024-09-09 21:19:56.698 [trace] node-pty.IPty#write �OA
2024-09-09 21:19:56.698 [trace] [RPC Response] PtyService#input undefined
2024-09-09 21:19:56.699 [trace] node-pty.IPty#onData pnpm patch prettier
2024-09-09 21:19:56.706 [trace] [RPC Event] PtyService#_onProcessData.fire({"id":17,"event":"pnpm patch prettier"})
2024-09-09 21:19:56.707 [trace] PromptInputModel#_sync: |
2024-09-09 21:19:56.707 [trace] PromptInputModel#onDidChangeInput pnpm patch prettier|
2024-09-09 21:19:56.707 [trace] PromptInputModel#_sync: pnpm patch prettier|
2024-09-09 21:19:57.276 [trace] [RPC Request] PtyService#input(17, "\r")
2024-09-09 21:19:57.276 [trace] node-pty.IPty#write 
2024-09-09 21:19:57.277 [trace] [RPC Response] PtyService#input undefined
2024-09-09 21:19:57.277 [trace] node-pty.IPty#onData �[?1l�>
2024-09-09 21:19:57.277 [trace] node-pty.IPty#onData �[?2004l


2024-09-09 21:19:57.280 [trace] node-pty.IPty#onData �]0;🚀 ~/p/archive-webpage-browser-extension pnpm patch prettier 🚀�
2024-09-09 21:19:57.282 [trace] [RPC Event] PtyService#_onProcessData.fire({"id":17,"event":"\u001b[?1l\u001b>\u001b[?2004l\r\r\n\u001b]0;🚀 ~/p/archive-webpage-browser-extension pnpm patch prettier 🚀\u0007"})
2024-09-09 21:19:57.282 [trace] PromptInputModel#_sync: pnpm patch prettier|
2024-09-09 21:19:57.283 [trace] PromptInputModel#_sync: pnpm patch prettier|
2024-09-09 21:19:57.283 [trace] node-pty.IPty#onData �]633;E;pnpm patch prettier;63e24406-e8af-4468-9b3c-16883b312790��]633;C�
2024-09-09 21:19:57.289 [trace] [RPC Event] PtyService#_onProcessData.fire({"id":17,"event":"\u001b]633;E;pnpm patch prettier;63e24406-e8af-4468-9b3c-16883b312790\u0007\u001b]633;C\u0007"})
2024-09-09 21:19:57.290 [trace] [RPC Event] PtyService#_onDidChangeProperty.fire({"id":17,"property":{"type":"title","value":"node"}})
2024-09-09 21:19:57.290 [trace] [RPC Event] PtyService#_onDidChangeProperty.fire({"id":17,"property":{"type":"shellType"}})
2024-09-09 21:19:57.290 [debug] CommandDetectionCapability#setCommandLine pnpm patch prettier true
2024-09-09 21:19:57.291 [debug] CommandDetectionCapability#handleCommandExecuted 0 18
2024-09-09 21:19:57.291 [trace] PromptInputModel#onDidFinishInput pnpm patch prettier
2024-09-09 21:19:57.291 [trace] PromptInputModel#onDidChangeInput pnpm patch prettier
2024-09-09 21:19:57.638 [trace] node-pty.IPty#onData Patch: You can now edit the package at:

  �]8;;file:///Users/k/p/archive-webpage-browser-extension/node_modules/.pnpm_patches/prettier@3.3.3��[34m/Users/k/p/archive-webpage-browser-extension/node_modules/.pnpm_patches/prettier@3.3.3�[39m�]8;;�

To commit your changes, run:

  �[32mpnpm patch-commit '/Users/k/p/archive-webpage-browser-extension/node_modules/.pnpm_patches/prettier@3.3.3'�[39m


2024-09-09 21:19:57.643 [trace] [RPC Event] PtyService#_onProcessData.fire({"id":17,"event":"Patch: You can now edit the package at:\r\n\r\n  \u001b]8;;file:///Users/k/p/archive-webpage-browser-extension/node_modules/.pnpm_patches/prettier@3.3.3\u0007\u001b[34m/Users/k/p/archive-webpage-browser-extension/node_modules/.pnpm_patches/prettier@3.3.3\u001b[39m\u001b]8;;\u0007\r\n\r\nTo commit your changes, run:\r\n\r\n  \u001b[32mpnpm patch-commit '/Users/k/p/archive-webpage-browser-extension/node_modules/.pnpm_patches/prettier@3.3.3'\u001b[39m\r\n\r\n"})
2024-09-09 21:19:57.646 [trace] node-pty.IPty#onData �[1m�[7m%�[27m�[1m�[0m                                                                                                                                                                
 
2024-09-09 21:19:57.647 [trace] node-pty.IPty#onData �]0;~/p/archive-webpage-browser-extension�
2024-09-09 21:19:57.647 [trace] node-pty.IPty#onData �]633;D;0�
2024-09-09 21:19:57.648 [trace] node-pty.IPty#onData �]633;P;Cwd=/Users/k/p/archive-webpage-browser-extension�
2024-09-09 21:19:57.652 [trace] [RPC Event] PtyService#_onProcessData.fire({"id":17,"event":"\u001b[1m\u001b[7m%\u001b[27m\u001b[1m\u001b[0m                                                                                                                                                                \r \r\u001b]0;~/p/archive-webpage-browser-extension\u0007\u001b]633;D;0\u0007\u001b]633;P;Cwd=/Users/k/p/archive-webpage-browser-extension\u0007"})
2024-09-09 21:19:57.654 [debug] CommandDetectionCapability#handleCommandFinished 0 undefined pnpm patch prettier [object Object]
2024-09-09 21:19:57.684 [trace] node-pty.IPty#onData 
�[0m�[27m�[24m�[J�]633;A��[01;32m➜  �[36marchive-webpage-browser-extension�[00m �[01;34mgit:(�[31mmain�[34m)�[00m �]633;B��[K
2024-09-09 21:19:57.684 [trace] node-pty.IPty#onData �[?1h�=�[?2004h
2024-09-09 21:19:57.689 [trace] [RPC Event] PtyService#_onProcessData.fire({"id":17,"event":"\r\u001b[0m\u001b[27m\u001b[24m\u001b[J\u001b]633;A\u0007\u001b[01;32m➜  \u001b[36marchive-webpage-browser-extension\u001b[00m \u001b[01;34mgit:(\u001b[31mmain\u001b[34m)\u001b[00m \u001b]633;B\u0007\u001b[K\u001b[?1h\u001b=\u001b[?2004h"})
2024-09-09 21:19:57.691 [debug] CommandDetectionCapability#handlePromptStart 0 26
2024-09-09 21:19:57.691 [debug] CommandDetectionCapability#onCommandFinished [object Object]
2024-09-09 21:19:57.691 [trace] PromptInputModel#onDidStartInput |
2024-09-09 21:19:57.691 [trace] PromptInputModel#onDidChangeInput |
2024-09-09 21:19:57.691 [debug] CommandDetectionCapability#handleCommandStart 48 26
2024-09-09 21:19:57.691 [trace] PromptInputModel#_sync: |
2024-09-09 21:19:57.691 [trace] PromptInputModel#_sync: |
2024-09-09 21:19:57.697 [trace] [RPC Event] PtyService#_onDidChangeProperty.fire({"id":17,"property":{"type":"title","value":"zsh"}})
2024-09-09 21:19:57.697 [trace] [RPC Event] PtyService#_onDidChangeProperty.fire({"id":17,"property":{"type":"shellType","value":"zsh"}})
2024-09-09 21:19:58.201 [trace] [RPC Request] PtyService#updateTitle(17, "zsh", 1)
2024-09-09 21:19:58.201 [trace] [RPC Response] PtyService#updateTitle undefined
```