Change:
Type: <bBug</bContext I want to use vscode-URLs to directly drop into a debugging session. My script can be found at Expected behavior When cmd-clicking this link from inside VSCode, I would expect to be dropped into the debugging session <img width="1287" alt="Screenshot 2022-08-22 at 10 25 59" src="https://user-"Actual behavior Instead, the link gets opened in VS Code's search bar <img width="904" alt="Screenshot 2022-08-22 at 10 27 17" src="https://user-"Additional information I am sure the link itself is fine, because when I copy it from the console and paste it into Chrome's address bar, then VSCode opens my debugging session as expected. Also see VS Code version: Code 1.70.2 (, 2022-08-16T05:36:37.829Z) OS version: Darwin x64 21.6.0 Modes: Remote OS version: Linux x64 5.15.0-30-generic Remote OS version: Linux x64 5.15.0-30-generic <details<summarySystem Info</summary </details<details<summaryExtensions (7)</summaryExtensionVersion ------ better-cpp-syntax1.15.19 jupyter-keymap1.0.0 remote-ssh0.84.0 remote-ssh-edit0.80.0 llvm0.1.1 vscode-clangd0.1.21 vscode-lldb1.7.4 </details<!-- generated by issue reporter --
since the url would need to open a JS/browser debug session, would the JavaScript Debugger Companion Extension be of help here?
This is debugging with lldb, so it's not in the domain of js-debug
This is a request to essentially hook up the terminal link detector to whatever handles external custom protocol links. We may be able to just add vscode:// and vscode-insiders:// to the uri detection? This may need changes in the editor's link detector

Discussion:
export class TerminalUrlLinkOpener implements ITerminalLinkOpener { constructor( private readonly _isRemote: boolean, <del> @IOpenerService private readonly _openerService: IOpenerService, </del> <ins> @IOpenerService private readonly _openerService: IOpenerService </ins> ) { }

this._openerService.open(link.text, { allowTunneling: this._isRemote, allowContributedOpeners: true, <ins> openExternal: true </ins> }); } }

*  Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ <ins> import { URI } from 'vs/base/common/uri'; </ins> import { IConfigurationService } from 'vs/platform/configuration/common/configuration'; <ins> import { matchesScheme } from 'vs/platform/opener/common/opener'; import { IProductService } from 'vs/platform/product/common/productService'; </ins> import { ITerminalSimpleLink, ITerminalLinkDetector, TerminalBuiltinLinkType } from 'vs/workbench/contrib/terminal/browser/links/links'; import { convertLinkRangeToBuffer, getXtermLineContent } from 'vs/workbench/contrib/terminal/browser/links/terminalLinkHelpers'; import { ITerminalConfiguration, TERMINAL_CONFIG_SECTION } from 'vs/workbench/contrib/terminal/common/terminal';

constructor( readonly xterm: Terminal, @IConfigurationService private readonly _configurationService: IConfigurationService, <ins> @IProductService private readonly _productService: IProductService, </ins> ) { }

}, startLine ); <ins> // Support this product's URL protocol if (matchesScheme(word.text, this._productService.urlProtocol)) { const uri = URI.parse(word.text); if (uri) { links.push({ text: word.text, uri, bufferRange, type: TerminalBuiltinLinkType.Url }); } continue; } // Search links </ins> links.push({ text: word.text, bufferRange,

import { IConfigurationService } from 'vs/platform/configuration/common/configuration'; import { TestConfigurationService } from 'vs/platform/configuration/test/common/testConfigurationService'; import { TestInstantiationService } from 'vs/platform/instantiation/test/common/instantiationServiceMock'; <ins> import { IProductService } from 'vs/platform/product/common/productService'; </ins> import { ITerminalSimpleLink, TerminalBuiltinLinkType } from 'vs/workbench/contrib/terminal/browser/links/links'; import { TerminalWordLinkDetector } from 'vs/workbench/contrib/terminal/browser/links/terminalWordLinkDetector'; import { assertLinkHelper } from 'vs/workbench/contrib/terminal/test/browser/links/linkTestUtils'; <ins> import { TestProductService } from 'vs/workbench/test/common/workbenchTestServices'; </ins> import { Terminal } from 'xterm'; suite('Workbench - TerminalWordLinkDetector', () => {

configurationService = new TestConfigurationService(); instantiationService.stub(IConfigurationService, configurationService); <ins> instantiationService.set(IProductService, TestProductService); </ins> xterm = new Terminal({ allowProposedApi: true, cols: 80, rows: 30 }); detector = instantiationService.createInstance(TerminalWordLinkDetector, xterm);