diff --git a/vscode-wpilib/README.md b/vscode-wpilib/README.md index 2b3a48ab..ed8340b2 100644 --- a/vscode-wpilib/README.md +++ b/vscode-wpilib/README.md @@ -2,7 +2,7 @@ ## Features -This extension is not supported from the VS Code Marketplace. Please use the WPILib Installer +This extension is not supported from the VS Code Marketplace. Please use the WPILib Installer from the [WPILib Releases page](https://github.com/wpilibsuite/allwpilib/releases). This extension provides the WPILib support for FRC teams in VS Code. For documentation on how to program FRC robots using the WPILib libraries, see the [WPILib documentation website](https://docs.wpilib.org/en/stable/). diff --git a/vscode-wpilib/src/extension.ts b/vscode-wpilib/src/extension.ts index 1658d904..23880e42 100644 --- a/vscode-wpilib/src/extension.ts +++ b/vscode-wpilib/src/extension.ts @@ -11,7 +11,13 @@ import * as vscode from 'vscode'; // this method is called when your extension is activated // your extension is activated the very first time the command is executed export async function activate(_context: vscode.ExtensionContext) { - vscode.window.showErrorMessage('This extension is not supported from the VS Code Marketplace. Please use the WPILib Installer', { + const openReleasesPage = "Visit WPILib Releases Page" + vscode.window.showErrorMessage('The WPILib extension is not supported from the VS Code Marketplace. Please use the WPILib Installer from the WPILib Releases page.', { modal: true + }, + openReleasesPage).then(choice=>{ + if (choice === openReleasesPage) { + vscode.env.openExternal("https://github.com/wpilibsuite/allwpilib/releases"); + } }); }