src/vs/workbench/contrib/debug/browser/linkDetector.ts/LinkDetector/createWebLink
class LinkDetector:	private createWebLink(url: string): Node {
		const link = this.createLink(url);

		const uri = URI.parse(url);
		this.decorateLink(link, uri, async () => {

			if (uri.scheme === Schemas.file) {
				// Just using fsPath here is unsafe: https://github.com/microsoft/vscode/issues/109076
				const fsPath = uri.fsPath;
				const path = await this.pathService.path;
				const fileUrl = osPath.normalize(((path.sep === osPath.posix.sep) && platform.isWindows) ? fsPath.replace(/\\/g, osPath.posix.sep) : fsPath);

				const fileUri = URI.parse(fileUrl);
				const exists = await this.fileService.exists(fileUri);
				if (!exists) {
					return;
				}

				await this.editorService.openEditor({ resource: fileUri, options: { pinned: true } });
				return;
			}

			this.openerService.open(url, { allowTunneling: !!this.environmentService.remoteAuthority });
		});

		return link;
	}