chore: allow generating tests for script (#331)

This commit is contained in:
Pavel Feldman
2025-05-02 17:41:58 -07:00
committed by GitHub
parent 292e75d464
commit 927a1280f1
9 changed files with 98 additions and 51 deletions

6
utils/generate-links.js Normal file
View File

@@ -0,0 +1,6 @@
const config = JSON.stringify({ name: 'playwright', command: 'npx', args: ["@playwright/mcp@latest"] });
const urlForWebsites = `vscode:mcp/install?${encodeURIComponent(config)}`;
// Github markdown does not allow linking to `vscode:` directly, so you can use our redirect:
const urlForGithub = `https://insiders.vscode.dev/redirect?url=${encodeURIComponent(urlForWebsites)}`;
console.log(urlForGithub);